@3dwayfinder/wayfinder-vue-components 1.0.72 → 1.0.76
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.
- package/dist/wayfinder-vue-components.esm.js +30 -12
- package/dist/wayfinder-vue-components.min.js +3 -3
- package/dist/wayfinder-vue-components.ssr.js +39 -21
- package/package.json +1 -1
- package/src/lib-components/AZMenu.vue +1 -1
- package/src/lib-components/GroupsMenu.vue +12 -4
- package/src/lib-components/Tabs.vue +1 -1
|
@@ -1637,7 +1637,7 @@ var script$e = {
|
|
|
1637
1637
|
default: null
|
|
1638
1638
|
}
|
|
1639
1639
|
},
|
|
1640
|
-
computed: { ...mapState(['pois', 'language'
|
|
1640
|
+
computed: { ...mapState(['pois', 'language']),
|
|
1641
1641
|
|
|
1642
1642
|
sortedPOIs() {
|
|
1643
1643
|
let arr = this.pois.slice().filter(poi => {
|
|
@@ -1724,7 +1724,7 @@ var __vue_staticRenderFns__$e = [];
|
|
|
1724
1724
|
const __vue_inject_styles__$e = undefined;
|
|
1725
1725
|
/* scoped */
|
|
1726
1726
|
|
|
1727
|
-
const __vue_scope_id__$e = "data-v-
|
|
1727
|
+
const __vue_scope_id__$e = "data-v-2e32f9f2";
|
|
1728
1728
|
/* module identifier */
|
|
1729
1729
|
|
|
1730
1730
|
const __vue_module_identifier__$e = undefined;
|
|
@@ -1920,6 +1920,12 @@ var script$c = {
|
|
|
1920
1920
|
};
|
|
1921
1921
|
},
|
|
1922
1922
|
|
|
1923
|
+
onPOICLick(poi) {
|
|
1924
|
+
return () => {
|
|
1925
|
+
this.$emit('poiClicked', poi);
|
|
1926
|
+
};
|
|
1927
|
+
},
|
|
1928
|
+
|
|
1923
1929
|
reset() {
|
|
1924
1930
|
this.$store.dispatch('SET_CURRENT_GROUP', false);
|
|
1925
1931
|
},
|
|
@@ -1970,6 +1976,8 @@ var __vue_render__$c = function () {
|
|
|
1970
1976
|
class: {
|
|
1971
1977
|
"active": _vm.currentGroup && topic.id == _vm.currentGroup.id
|
|
1972
1978
|
}
|
|
1979
|
+
}, [_c('div', {
|
|
1980
|
+
staticClass: "item-content"
|
|
1973
1981
|
}, [_c('label', {
|
|
1974
1982
|
staticClass: "name",
|
|
1975
1983
|
domProps: {
|
|
@@ -1977,7 +1985,7 @@ var __vue_render__$c = function () {
|
|
|
1977
1985
|
}
|
|
1978
1986
|
}), _vm._v(" "), _vm.showPOICount ? _c('label', {
|
|
1979
1987
|
staticClass: "count"
|
|
1980
|
-
}, [_vm._v(_vm._s(topic.pois.length))]) : _vm._e(), _vm._v(" "), topic.childGroups.length > 0 && _vm.showSubGroups ? _c('ul', {
|
|
1988
|
+
}, [_vm._v(_vm._s(topic.pois.length))]) : _vm._e()]), _vm._v(" "), topic.childGroups.length > 0 && _vm.showSubGroups ? _c('ul', {
|
|
1981
1989
|
directives: [{
|
|
1982
1990
|
name: "show",
|
|
1983
1991
|
rawName: "v-show",
|
|
@@ -2001,10 +2009,19 @@ var __vue_render__$c = function () {
|
|
|
2001
2009
|
rawName: "v-show",
|
|
2002
2010
|
value: _vm.currentGroup && topic.id == _vm.currentGroup.id,
|
|
2003
2011
|
expression: "currentGroup && topic.id == currentGroup.id"
|
|
2004
|
-
}]
|
|
2012
|
+
}],
|
|
2013
|
+
staticClass: "list sublist"
|
|
2005
2014
|
}, _vm._l(topic.pois, function (poi) {
|
|
2006
2015
|
return _c('li', {
|
|
2007
|
-
|
|
2016
|
+
directives: [{
|
|
2017
|
+
name: "touch",
|
|
2018
|
+
rawName: "v-touch:tap",
|
|
2019
|
+
value: _vm.onPOICLick(poi),
|
|
2020
|
+
expression: "onPOICLick(poi)",
|
|
2021
|
+
arg: "tap"
|
|
2022
|
+
}],
|
|
2023
|
+
key: poi.id,
|
|
2024
|
+
staticClass: "item list-item"
|
|
2008
2025
|
}, [_c('label', {
|
|
2009
2026
|
staticClass: "name",
|
|
2010
2027
|
domProps: {
|
|
@@ -2020,8 +2037,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
2020
2037
|
|
|
2021
2038
|
const __vue_inject_styles__$c = function (inject) {
|
|
2022
2039
|
if (!inject) return;
|
|
2023
|
-
inject("data-v-
|
|
2024
|
-
source: ".az-menu[data-v-
|
|
2040
|
+
inject("data-v-6c5ea2fc_0", {
|
|
2041
|
+
source: ".az-menu[data-v-6c5ea2fc]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-6c5ea2fc]{list-style:none}.az-menu ul[data-v-6c5ea2fc]{margin:0;padding:0}",
|
|
2025
2042
|
map: undefined,
|
|
2026
2043
|
media: undefined
|
|
2027
2044
|
});
|
|
@@ -2029,7 +2046,7 @@ const __vue_inject_styles__$c = function (inject) {
|
|
|
2029
2046
|
/* scoped */
|
|
2030
2047
|
|
|
2031
2048
|
|
|
2032
|
-
const __vue_scope_id__$c = "data-v-
|
|
2049
|
+
const __vue_scope_id__$c = "data-v-6c5ea2fc";
|
|
2033
2050
|
/* module identifier */
|
|
2034
2051
|
|
|
2035
2052
|
const __vue_module_identifier__$c = undefined;
|
|
@@ -6089,7 +6106,8 @@ var __vue_render__$4 = function () {
|
|
|
6089
6106
|
|
|
6090
6107
|
return _c('div', {
|
|
6091
6108
|
ref: "tabs",
|
|
6092
|
-
staticClass: "tabs"
|
|
6109
|
+
staticClass: "tabs",
|
|
6110
|
+
class: ['tabs-' + _vm.activeTab]
|
|
6093
6111
|
}, [_vm._t("default")], 2);
|
|
6094
6112
|
};
|
|
6095
6113
|
|
|
@@ -6098,8 +6116,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
6098
6116
|
|
|
6099
6117
|
const __vue_inject_styles__$4 = function (inject) {
|
|
6100
6118
|
if (!inject) return;
|
|
6101
|
-
inject("data-v-
|
|
6102
|
-
source: ".tabs[data-v-
|
|
6119
|
+
inject("data-v-69629074_0", {
|
|
6120
|
+
source: ".tabs[data-v-69629074]{overflow:hidden}",
|
|
6103
6121
|
map: undefined,
|
|
6104
6122
|
media: undefined
|
|
6105
6123
|
});
|
|
@@ -6107,7 +6125,7 @@ const __vue_inject_styles__$4 = function (inject) {
|
|
|
6107
6125
|
/* scoped */
|
|
6108
6126
|
|
|
6109
6127
|
|
|
6110
|
-
const __vue_scope_id__$4 = "data-v-
|
|
6128
|
+
const __vue_scope_id__$4 = "data-v-69629074";
|
|
6111
6129
|
/* module identifier */
|
|
6112
6130
|
|
|
6113
6131
|
const __vue_module_identifier__$4 = undefined;
|
|
@@ -3,12 +3,12 @@ var WayfinderVueComponents=function(t){"use strict";function e(t){return t&&"obj
|
|
|
3
3
|
* vuex v3.6.2
|
|
4
4
|
* (c) 2021 Evan You
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}var l=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function h(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var o,i=(o=function(e){return e.original===t},e.filter(o)[0]);if(i)return i.copy;var n=Array.isArray(t)?[]:{};return e.push({original:t,copy:n}),Object.keys(t).forEach((function(o){n[o]=h(t[o],e)})),n}function u(t,e){Object.keys(t).forEach((function(o){return e(t[o],o)}))}function d(t){return null!==t&&"object"==typeof t}var p=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var o=t.state;this.state=("function"==typeof o?o():o)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(t,e){this._children[t]=e},p.prototype.removeChild=function(t){delete this._children[t]},p.prototype.getChild=function(t){return this._children[t]},p.prototype.hasChild=function(t){return t in this._children},p.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},p.prototype.forEachChild=function(t){u(this._children,t)},p.prototype.forEachGetter=function(t){this._rawModule.getters&&u(this._rawModule.getters,t)},p.prototype.forEachAction=function(t){this._rawModule.actions&&u(this._rawModule.actions,t)},p.prototype.forEachMutation=function(t){this._rawModule.mutations&&u(this._rawModule.mutations,t)},Object.defineProperties(p.prototype,f);var m,v=function(t){this.register([],t,!1)};function g(t,e,o){if(e.update(o),o.modules)for(var i in o.modules){if(!e.getChild(i))return;g(t.concat(i),e.getChild(i),o.modules[i])}}v.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},v.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,o){return t+((e=e.getChild(o)).namespaced?o+"/":"")}),"")},v.prototype.update=function(t){g([],this.root,t)},v.prototype.register=function(t,e,o){var i=this;void 0===o&&(o=!0);var n=new p(e,o);0===t.length?this.root=n:this.get(t.slice(0,-1)).addChild(t[t.length-1],n);e.modules&&u(e.modules,(function(e,n){i.register(t.concat(n),e,o)}))},v.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),o=t[t.length-1],i=e.getChild(o);i&&i.runtime&&e.removeChild(o)},v.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),o=t[t.length-1];return!!e&&e.hasChild(o)};var y=function(t){var e=this;void 0===t&&(t={}),!m&&"undefined"!=typeof window&&window.Vue&&P(window.Vue);var o=t.plugins;void 0===o&&(o=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new v(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var n=this,r=this.dispatch,s=this.commit;this.dispatch=function(t,e){return r.call(n,t,e)},this.commit=function(t,e,o){return s.call(n,t,e,o)},this.strict=i;var a=this._modules.root.state;_(this,a,[],this._modules.root),T(this,a),o.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:m.config.devtools)&&function(t){l&&(t._devtoolHook=l,l.emit("vuex:init",t),l.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){l.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){l.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},b={state:{configurable:!0}};function w(t,e,o){return e.indexOf(t)<0&&(o&&o.prepend?e.unshift(t):e.push(t)),function(){var o=e.indexOf(t);o>-1&&e.splice(o,1)}}function k(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var o=t.state;_(t,o,[],t._modules.root,!0),T(t,o,e)}function T(t,e,o){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var n=t._wrappedGetters,r={};u(n,(function(e,o){r[o]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,o,{get:function(){return t._vm[o]},enumerable:!0})}));var s=m.config.silent;m.config.silent=!0,t._vm=new m({data:{$$state:e},computed:r}),m.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(t),i&&(o&&t._withCommit((function(){i._data.$$state=null})),m.nextTick((function(){return i.$destroy()})))}function _(t,e,o,i,n){var r=!o.length,s=t._modules.getNamespace(o);if(i.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=i),!r&&!n){var a=E(e,o.slice(0,-1)),c=o[o.length-1];t._withCommit((function(){m.set(a,c,i.state)}))}var l=i.context=function(t,e,o){var i=""===e,n={dispatch:i?t.dispatch:function(o,i,n){var r=S(o,i,n),s=r.payload,a=r.options,c=r.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:i?t.commit:function(o,i,n){var r=S(o,i,n),s=r.payload,a=r.options,c=r.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(n,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var o={},i=e.length;Object.keys(t.getters).forEach((function(n){if(n.slice(0,i)===e){var r=n.slice(i);Object.defineProperty(o,r,{get:function(){return t.getters[n]},enumerable:!0})}})),t._makeLocalGettersCache[e]=o}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return E(t.state,o)}}}),n}(t,s,o);i.forEachMutation((function(e,o){!function(t,e,o,i){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){o.call(t,i.state,e)}))}(t,s+o,e,l)})),i.forEachAction((function(e,o){var i=e.root?o:s+o,n=e.handler||e;!function(t,e,o,i){(t._actions[e]||(t._actions[e]=[])).push((function(e){var n,r=o.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(n=r)&&"function"==typeof n.then||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))}(t,i,n,l)})),i.forEachGetter((function(e,o){!function(t,e,o,i){if(t._wrappedGetters[e])return;t._wrappedGetters[e]=function(t){return o(i.state,i.getters,t.state,t.getters)}}(t,s+o,e,l)})),i.forEachChild((function(i,r){_(t,e,o.concat(r),i,n)}))}function E(t,e){return e.reduce((function(t,e){return t[e]}),t)}function S(t,e,o){return d(t)&&t.type&&(o=e,e=t,t=t.type),{type:t,payload:e,options:o}}function P(t){m&&t===m||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:o});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[o].concat(t.init):o,e.call(this,t)}}function o(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(m=t)}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(t){},y.prototype.commit=function(t,e,o){var i=this,n=S(t,e,o),r=n.type,s=n.payload,a={type:r,payload:s},c=this._mutations[r];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,i.state)})))},y.prototype.dispatch=function(t,e){var o=this,i=S(t,e),n=i.type,r=i.payload,s={type:n,payload:r},a=this._actions[n];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,o.state)}))}catch(t){}var c=a.length>1?Promise.all(a.map((function(t){return t(r)}))):a[0](r);return new Promise((function(t,e){c.then((function(e){try{o._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,o.state)}))}catch(t){}t(e)}),(function(t){try{o._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,o.state,t)}))}catch(t){}e(t)}))}))}},y.prototype.subscribe=function(t,e){return w(t,this._subscribers,e)},y.prototype.subscribeAction=function(t,e){return w("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},y.prototype.watch=function(t,e,o){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,o)},y.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},y.prototype.registerModule=function(t,e,o){void 0===o&&(o={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),_(this,this.state,t,this._modules.get(t),o.preserveState),T(this,this.state)},y.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var o=E(e.state,t.slice(0,-1));m.delete(o,t[t.length-1])})),k(this)},y.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},y.prototype.hotUpdate=function(t){this._modules.update(t),k(this,!0)},y.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(y.prototype,b);var x=I((function(t,e){var o={};return D(e).forEach((function(e){var i=e.key,n=e.val;o[i]=function(){var e=this.$store.state,o=this.$store.getters;if(t){var i=F(this.$store,"mapState",t);if(!i)return;e=i.context.state,o=i.context.getters}return"function"==typeof n?n.call(this,e,o):e[n]},o[i].vuex=!0})),o})),C=I((function(t,e){var o={};return D(e).forEach((function(e){var i=e.key,n=e.val;o[i]=function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];var i=this.$store.commit;if(t){var r=F(this.$store,"mapMutations",t);if(!r)return;i=r.context.commit}return"function"==typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}})),o})),O=I((function(t,e){var o={};return D(e).forEach((function(e){var i=e.key,n=e.val;n=t+n,o[i]=function(){if(!t||F(this.$store,"mapGetters",t))return this.$store.getters[n]},o[i].vuex=!0})),o})),M=I((function(t,e){var o={};return D(e).forEach((function(e){var i=e.key,n=e.val;o[i]=function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];var i=this.$store.dispatch;if(t){var r=F(this.$store,"mapActions",t);if(!r)return;i=r.context.dispatch}return"function"==typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}})),o}));function D(t){return function(t){return Array.isArray(t)||d(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function I(t){return function(e,o){return"string"!=typeof e?(o=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,o)}}function F(t,e,o){return t._modulesNamespaceMap[o]}function B(t,e,o){var i=o?t.groupCollapsed:t.group;try{i.call(t,e)}catch(o){t.log(e)}}function L(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function $(){var t=new Date;return" @ "+A(t.getHours(),2)+":"+A(t.getMinutes(),2)+":"+A(t.getSeconds(),2)+"."+A(t.getMilliseconds(),3)}function A(t,e){return o="0",i=e-t.toString().length,new Array(i+1).join(o)+t;var o,i}var N,R={Store:y,install:P,version:"3.6.2",mapState:x,mapMutations:C,mapGetters:O,mapActions:M,createNamespacedHelpers:function(t){return{mapState:x.bind(null,t),mapGetters:O.bind(null,t),mapMutations:C.bind(null,t),mapActions:M.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var o=t.filter;void 0===o&&(o=function(t,e,o){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var n=t.mutationTransformer;void 0===n&&(n=function(t){return t});var r=t.actionFilter;void 0===r&&(r=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var a=t.logMutations;void 0===a&&(a=!0);var c=t.logActions;void 0===c&&(c=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var u=h(t.state);void 0!==l&&(a&&t.subscribe((function(t,r){var s=h(r);if(o(t,u,s)){var a=$(),c=n(t),d="mutation "+t.type+a;B(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",i(u)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),L(l)}u=s})),c&&t.subscribeAction((function(t,o){if(r(t,o)){var i=$(),n=s(t),a="action "+t.type+i;B(l,a,e),l.log("%c action","color: #03A9F4; font-weight: bold",n),L(l)}})))}}},z={name:"Map",props:{project:String},computed:n({},x(["currentFloor"])),mounted:function(){this.load()},methods:n(n({},M(["updateData","setWayfinder"])),{},{load:function(){var t=this;console.log("load2","undefined"==typeof Wayfinder2D?"undefined":r(Wayfinder2D),"undefined"==typeof Wayfinder2D?"undefined":r(Wayfinder2D)),N="undefined"!=typeof WF_MAP_TYPE&&"2d"==WF_MAP_TYPE?new Wayfinder2D:new Wayfinder3D,o.default.prototype.$wayfinder=N,o.default.directive("wf-translate",{bind:function(t,e,o){if(N){var i="string"==typeof e.value?e.value:e.expression;t.setAttribute("data-translation-element",i),N.translator.translateElement(i,t)}}}),N.options.assetsLocation="//static.3dwayfinder.com/shared/",N.options.project=this.project||"demo",N.open();var e=this,i=1e3*N.settings.getInt("path.message.duration",5);N.events.on("data-loaded",(function(){console.log("data-loaded",e.loaded),e.loaded||(e.$store.dispatch("SET_CURRENT_FLOOR",N.getCurrentFloor()),e.$store.dispatch("SET_INACTIVITY_TIME",N.settings.getInt("kiosk.max-inactivity",30)),e.update(N),e.$store.dispatch("SET_INACTIVITY_TIME",N.settings.getInt("kiosk.max-inactivity",30)),e.$emit("loaded"))})),N.events.on("map-ready",(function(){N.resize()})),N.events.on("language-change",(function(){t.update(N)})),N.events.on("floor-change-before",(function(e,o,i){t.pathText=N.translator.get("go_to_floor",[e.getName(N.getLanguage()),i.getName(N.getLanguage()),o.getName(N.getLanguage())]),t.showPathText=!0})),N.events.on("floor-change",(function(e){e&&(t.$store.dispatch("SET_CURRENT_FLOOR",e),t.$emit("onTouch")),t.showPathText&&setTimeout((function(){t.showPathText=!1}),i)})),N.events.on("map-click",(function(e){e&&(t.$emit("poiClicked",e,!0),N.statistics.onClick(e.id,"map"))})),N.events.on("map-touch",(function(){t.$emit("onTouch")})),window.addEventListener("resize",(function(){N&&N.resize()}))},update:function(){for(var t in this.$store._wrappedGetters)this.$store._wrappedGetters[t](this.$store.state);o.default.prototype.$wayfinder.update(),o.default.prototype.$wayfinder.resize(),o.default.prototype.$wayfinder.translator.translate()},reset:function(){N.restoreDefaultState()},start:function(){N.run(),N.statistics.onSessionStart()},pause:function(){N.pause(),N.statistics.onSessionEnd()},run:function(){N.run()},visibilityChanged:function(t){o.default.prototype.$wayfinder.resize()}}),data:function(){return{loaded:!1,showPathText:!1,pathText:""}}};function j(t,e,o,i,n,r,s,a,c,l){"boolean"!=typeof s&&(c=a,a=s,s=!1);const h="function"==typeof o?o.options:o;let u;if(t&&t.render&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0,n&&(h.functional=!0)),i&&(h._scopeId=i),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},h._ssrRegister=u):e&&(u=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),u)if(h.functional){const t=h.render;h.render=function(e,o){return u.call(o),t(e,o)}}else{const t=h.beforeCreate;h.beforeCreate=t?[].concat(t,u):[u]}return o}const H="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function Y(t){return(t,e)=>function(t,e){const o=H?e.media||"default":t,i=X[o]||(X[o]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let o=e.source;if(e.map&&(o+="\n/*# sourceURL="+e.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===W&&(W=document.head||document.getElementsByTagName("head")[0]),W.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(o),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(o),n=i.element.childNodes;n[t]&&i.element.removeChild(n[t]),n.length?i.element.insertBefore(e,n[t]):i.element.appendChild(e)}}}(t,e)}let W;const X={};var G=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.visibilityChanged,expression:"visibilityChanged"}],staticClass:"map-container"},[o("canvas",{attrs:{id:"map"}}),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.showPathText,expression:"showPathText"}],staticClass:"map-path-text"},[t._v(t._s(t.pathText))])])},staticRenderFns:[]},(function(t){t&&t("data-v-03b6737b_0",{source:".map-container[data-v-03b6737b]{position:relative;width:100%;height:100%}.map-container canvas[data-v-03b6737b]{width:100%;height:100%}.map-container .map-path-text[data-v-03b6737b]{margin-top:50%;width:20rem;text-align:center;background-color:#fff;position:absolute;bottom:15%;margin:auto;left:50%;margin-left:-10rem;padding:.5rem;font-size:2rem;font-weight:600;text-transform:uppercase}.map-container .map-shadow[data-v-03b6737b]{position:absolute;bottom:-1px;width:100%;height:9rem}.currentFloor[data-v-03b6737b]{color:#fff;font-size:9rem;position:absolute;font-weight:800;text-shadow:.1rem .1rem .3rem #666;text-align:center;width:8rem;top:0;right:1rem}",map:void 0,media:void 0})}),z,"data-v-03b6737b",false,undefined,!1,Y,void 0,void 0),V=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.poi?o("div",{staticClass:"poi"},[t.showLogo?o("div",{staticClass:"poi-image",class:[t.isImage()],style:{"background-image":t.getImage()}}):t._e(),t._v(" "),t.showName?o("div",{staticClass:"poi-name",domProps:{innerHTML:t._s(t.poi.getName(t.language)||"POI")}}):t._e(),t._v(" "),t.showPathButton?o("div",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.showPath,expression:"showPath",arg:"tap"}],staticClass:"show-path"},[o("button",{staticClass:"button secondary round button-small"},[o("span",{attrs:{"data-translation-element":"show_path"}},[t._v(t._s(t.show_path))]),t._v(" "),o("i",{staticClass:"icon icon-pin"})])]):t._e(),t._v(" "),t.showDescription?o("div",{staticClass:"poi-description",domProps:{innerHTML:t._s(t.poi.getDescription(t.language)||"")}}):t._e(),t._v(" "),t.showRoomID?o("div",{staticClass:"poi-description",domProps:{innerHTML:t._s(t.poi.room_id||"")}}):t._e(),t._v(" "),t.showFloor&&t.poi.getFloor()?o("div",{staticClass:"poi-floor",domProps:{innerHTML:t._s(t.poi.getFloor().getName(t.language)||"")}}):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-12662bbb_0",{source:".layout-view[data-v-12662bbb]{display:flex;flex-direction:column;justify-content:space-between;height:100%}.poi-info[data-v-12662bbb]{padding:1rem}.poi-info h2[data-v-12662bbb]{text-align:center;margin-top:1.5rem;margin-bottom:1.5rem}.poi-body[data-v-12662bbb]{box-shadow:0 -2px 1px 0 rgba(0,0,0,.05);padding:1rem;flex-grow:1}.poi-image[data-v-12662bbb]{height:14rem;width:100%;background-position:50% 50%;background-size:contain;background-repeat:no-repeat}.poi-image.image-background[data-v-12662bbb]{background-size:cover}.show-path[data-v-12662bbb]{bottom:1rem;right:1rem;text-transform:uppercase;z-index:10;line-height:2.8rem;margin-bottom:1.5rem}.show-path button[data-v-12662bbb]{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-12662bbb]{line-height:1.2}.poi-contact .address[data-v-12662bbb]{font-weight:600;margin-bottom:.5rem}.poi-contact .address span[data-v-12662bbb]{padding-top:4px;vertical-align:top;display:inline-block}.poi-contact .address a[data-v-12662bbb]{text-decoration:none;display:block;line-height:1.5}.poi-contact .address .icon[data-v-12662bbb]:before{mix-blend-mode:initial;color:#fff}",map:void 0,media:void 0})}),{name:"POI",computed:n({},x(["language"])),props:{poi:{type:Object,default:null},showLogo:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},showPathButton:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1},showRoomID:{type:Boolean,default:!1},showFloor:{type:Boolean,default:!1}},watch:{language:function(){wayfinder&&(this.show_path=this.$wayfinder.translator.get("show_path"))}},methods:{update:function(t){if(wayfinder.pois[t]&&(this.poi=Object.freeze(wayfinder.pois[t]),this.language=wayfinder.getLanguage(),this.$emit("titleChanged",this.poi.getName(wayfinder.getLanguage())),this.description=this.poi.getDescription(wayfinder.getLanguage())?this.poi.getDescription(wayfinder.getLanguage()):"",this.poi.shop_logo)){var e=this;window.requestAnimationFrame((function(){e.$app.getImage(e.poi.shop_logo).then((function(t){e.logo=t.url}))}))}},showPath:function(){this.poi&&this.$emit("showPath",this.poi)},open:function(t){t&&this.poi[t]&&("shop_email"===t?window.open("mailto:"+this.poi[t],"_system"):"shop_phone"===t?window.open("tel:"+this.poi[t],"_system"):window.open(this.poi[t],"_system"))},getImage:function(){return this.poi.getBackgroundUrl()?'url("'+this.poi.getBackgroundUrl()+'")':!!this.poi.getIconUrl()&&'url("'+this.poi.getIconUrl()+'")'},isImage:function(){return this.poi.getBackgroundUrl()?"image-background":this.poi.getIconUrl()?"image-logo":"image-none"},truncate:function(t,e){return t&&t.length>e?t.substring(0,e)+"...":t}},data:function(){return{show_path:"Show Path"}}},"data-v-12662bbb",false,undefined,!1,Y,void 0,void 0),U=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"az-menu"},[o("ul",{staticClass:"list"},t._l(t.sortedPOIs,(function(e){return o("li",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.onClick(e),expression:"onClick(poiitem)",arg:"tap"}],key:e.id,staticClass:"item list-item",class:{active:t.currentPOI&&e.id==t.currentPOI.id},on:{click:function(o){return t.onClick(e)}}},[t._t("default",(function(){return[o("POI",{attrs:{poi:e,showLogo:t.showLogo,showName:t.showName,showPathButton:t.showPathButton,showDescription:t.showDescription,showRoomID:t.showRoomID,showFloor:t.showFloor}})]}),{poi:e})],2)})),0)])},staticRenderFns:[]},undefined,{name:"AZMenu",components:{POI:V},props:{showLogo:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},showPathButton:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1},showRoomID:{type:Boolean,default:!1},showFloor:{type:Boolean,default:!1},currentPOI:{type:Object,default:null}},computed:n(n({},x(["pois","language","currentPOI"])),{},{sortedPOIs:function(){var t=this,e=this.pois.slice().filter((function(t){return t&&t.getShowInMenu()}));return e=e.sort((function(e,o){return e.getName(t.language)&&o.getName(t.language)?e.getName(t.language).localeCompare(o.getName(t.language)):0}))}}),methods:{onClick:function(t){var e=this;return function(){e.$emit("clicked",t),e.$wayfinder.statistics.onClick(t.id,"menu")}}}},"data-v-014db12a",false,undefined,!1,void 0,void 0,void 0),K=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"languages-container",class:{active:t.active}},[t.showTitle?o("div",{staticClass:"languages-container-select"},[t._v("Select language")]):t._e(),t._v(" "),o("div",{staticClass:"list"},t._l(t.languages,(function(e,i){return o("div",{key:i,class:["item","language","lang-"+e.getName(),{active:e.getName()==t.language,display:t.active}],on:{click:function(o){return t.changeLanguage(e)}}},[t.showFlag?o("div",{staticClass:"flag",style:{backgroundImage:"url("+t.getFlagImage(e.flagImage)+")"}}):t._e(),t._v(" "),"code"==t.labelType?o("label",[t._v(t._s(e.getName()))]):t._e(),t._v(" "),"native"==t.labelType?o("label",[t._v(t._s(e.getNativeName()))]):t._e()])})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-7fd08900_0",{source:".languages-container.active[data-v-7fd08900]{height:fit-content;z-index:10}.languages-container.active .languages-container-select[data-v-7fd08900]{visibility:initial;opacity:1}.languages-container .languages-container-select[data-v-7fd08900]{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-7fd08900]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.languages-container .language .active[data-v-7fd08900]{height:3.5rem;margin-bottom:1rem}.languages-container .language .display[data-v-7fd08900]{height:3.5rem;margin-bottom:1.5rem}",map:void 0,media:void 0})}),{name:"FlagsMenu",computed:n({},x(["languages","language","reset"])),props:{showTitle:{type:Boolean,default:!0},showFlag:{type:Boolean,default:!0},labelType:{type:String,default:"none"}},data:function(){return{active:!1}},methods:{changeLanguage:function(t){this.$wayfinder.setLanguage(t.name)},getFlagImage:function(t){return WayfinderAPI.getURL("images","thumbnail",[t])}},watch:{reset:function(){this.active=!1}}},"data-v-7fd08900",false,undefined,!1,Y,void 0,void 0),q=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"topics-menu"},[o("ul",{staticClass:"list"},t._l(t.sortedGroups,(function(e){return o("li",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.onClick(e),expression:"onClick(topic)",arg:"tap"}],key:e.id,staticClass:"item list-item",class:{active:t.currentGroup&&e.id==t.currentGroup.id}},[o("label",{staticClass:"name",domProps:{innerHTML:t._s(e.getName(t.language))}}),t._v(" "),t.showPOICount?o("label",{staticClass:"count"},[t._v(t._s(e.pois.length))]):t._e(),t._v(" "),e.childGroups.length>0&&t.showSubGroups?o("ul",{directives:[{name:"show",rawName:"v-show",value:t.currentGroup&&e.id==t.currentGroup.id,expression:"currentGroup && topic.id == currentGroup.id"}]},t._l(t.subGroups(e.childGroups),(function(e){return o("li",{key:e.id},[o("label",{staticClass:"name",domProps:{innerHTML:t._s(e.getName(t.language))}}),t._v(" "),t.showPOICount?o("label",{staticClass:"count"},[t._v(t._s(e.pois.length))]):t._e()])})),0):t._e(),t._v(" "),e.pois.length>0&&t.showPOIs?o("ul",{directives:[{name:"show",rawName:"v-show",value:t.currentGroup&&e.id==t.currentGroup.id,expression:"currentGroup && topic.id == currentGroup.id"}]},t._l(e.pois,(function(e){return o("li",{key:e.id},[o("label",{staticClass:"name",domProps:{innerHTML:t._s(e.getName(t.language))}})])})),0):t._e()])})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-18bd3fba_0",{source:".az-menu[data-v-18bd3fba]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-18bd3fba]{list-style:none}.az-menu ul[data-v-18bd3fba]{margin:0;padding:0}",map:void 0,media:void 0})}),{name:"GroupsMenu",props:{showPOICount:{type:Boolean,default:!1},az:{type:Boolean,default:!1},showSubGroups:{type:Boolean,default:!0},showPOIs:{type:Boolean,default:!1}},data:function(){return{}},computed:n(n({},x(["poiGroups","currentGroup","language"])),{},{sortedGroups:function(){var t,e=this,o=[];for(var i in this.poiGroups)(t=this.poiGroups[i])&&t.getShowInMenu()&&t.getName(this.language)&&o.push(t);return this.az?o.sort((function(t,o){return t&&t.getName(e.language)&&o&&o.getName(e.language)?t.getName(e.language).localeCompare(o.getName(e.language),e.language,{sensitivity:"accent"}):0})):o}}),methods:{onClick:function(t){var e=this;return function(){e.$emit("clicked",t)}},reset:function(){this.$store.dispatch("SET_CURRENT_GROUP",!1)},subGroups:function(t){if(t){var e=[];for(var o in t)e.push(this.poiGroups[o]);return e}return[]}}},"data-v-18bd3fba",false,undefined,!1,Y,void 0,void 0),Z=j({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"building-logo",style:{"background-image":t.getLogo()}})},staticRenderFns:[]},(function(t){t&&t("data-v-992e7498_0",{source:".building-logo[data-v-992e7498]{background-size:contain;background-repeat:no-repeat;background-position:50%}",map:void 0,media:void 0})}),{name:"BuildingLogo",computed:n({},x(["building"])),methods:{getLogo:function(){if(this.building&&this.building.logoID)return"url("+WayfinderAPI.getURL("images","get",this.building.logoID)+")"}}},"data-v-992e7498",false,undefined,!1,Y,void 0,void 0),Q=j({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"yah-logo",style:{"background-image":t.yahLogo},attrs:{"data-translation-element":"yah"},on:{click:function(e){return t.onClicked()}}},[t._v("\n\tYAH\n")])},staticRenderFns:[]},(function(t){t&&t("data-v-727b50d6_0",{source:".yah-logo[data-v-727b50d6]{background-repeat:no-repeat;font-weight:600;text-align:center;margin-right:.5rem;text-transform:uppercase;border:none;outline:0}",map:void 0,media:void 0})}),{name:"YAH",computed:n({},x(["yahLogo","language"])),methods:{onClicked:function(){this.$wayfinder.showKiosk()}}},"data-v-727b50d6",false,undefined,!1,Y,void 0,void 0),J=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"shortcuts-container"},t._l(t.sortedShortcuts,(function(e,i){return o("div",{key:i,staticClass:"item shortcut",class:["shortcut-"+e.getID()],style:{backgroundImage:"url("+t.getImage(e.imageID)+")"},on:{click:function(o){return t.showShortcut(e)}}},[t.showLabel?o("label",[t._v(t._s(e.getName(t.language)))]):t._e()])})),0)},staticRenderFns:[]},(function(t){t&&t("data-v-0f461fc8_0",{source:".shortcuts-container[data-v-0f461fc8]{display:flex;flex-wrap:wrap-reverse;align-content:stretch;justify-content:space-between;margin-bottom:.1rem;flex-direction:row}.shortcuts-container.map-shortcuts[data-v-0f461fc8]{position:absolute;left:.5rem;bottom:15%;top:15%;flex-direction:column;justify-content:center}",map:void 0,media:void 0})}),{name:"ShortcutsMenu",components:{YAH:Q},props:{showLabel:{type:Boolean,default:!0},showPath:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},dehighlightOverlay:{type:Boolean,default:!1}},computed:n(n({},x(["shortcuts","language","landscape","mobile"])),{},{sortedShortcuts:function(){var t=this.shortcuts.sort((function(t,e){return 1}));return t}}),methods:{showShortcut:function(t){var e=this.$wayfinder.getNearestPOI(this.$wayfinder.getKiosk(),t.pois);this.showPath&&"object"===r(e)&&null!=e&&this.$wayfinder.showPath(e.node,e),this.highlight&&(this.$wayfinder.clearDisplaying(),this.$wayfinder.setDisplaying(t.pois)),this.dehighlightOverlay&&this.$wayfinder.setDehighlightOverlay&&this.$wayfinder.setDehighlightOverlay(!0),this.$wayfinder.update(),this.$emit("clicked",e,t)},clear:function(){this.dehighlightOverlay&&this.$wayfinder.setDehighlightOverlay&&this.$wayfinder.setDehighlightOverlay(!1),this.highlight&&this.$wayfinder.clearHighlights(),this.$wayfinder.update()},getImage:function(t){return WayfinderAPI.getURL("images","thumbnail",[t])}}},"data-v-0f461fc8",false,undefined,!1,Y,void 0,void 0),tt=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"wf-zoommenu"},[o("div",{staticClass:"item in",on:{click:function(e){return t.zoomIn()}}},[t._v("+")]),t._v(" "),o("div",{staticClass:"item out",on:{click:function(e){return t.zoomOut()}}},[t._v("-")])])},staticRenderFns:[]},undefined,{methods:{zoomIn:function(){this.$wayfinder.zoomIn()},zoomOut:function(){this.$wayfinder.zoomOut()}}},undefined,false,undefined,!1,void 0,void 0,void 0),et=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"map-floors-container"},[o("div",{staticClass:"map-floors list"},t._l(t.floors,(function(e){return e.showInMenu?o("div",{key:e.id,staticClass:"item list-item",class:["lang-"+t.language,"floor-"+e.index,{active:e==t.currentFloor}],on:{click:function(o){return t.changeFloor(e)}}},[o("label",{staticClass:"title"},[t._v(t._s(e.getName(t.language)))]),t._v(" "),t.showPOICount?o("label",{staticClass:"count"},[t._v(t._s(e.pois.length))]):t._e()]):t._e()})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-59428f73_0",{source:".map-floors[data-v-59428f73]{display:flex;flex-direction:column;justify-content:flex-end}.map-floors .item[data-v-59428f73]{border:none;text-overflow:ellipsis;position:relative;text-align:center;margin-left:auto;overflow:hidden}",map:void 0,media:void 0})}),{name:"MapFloors",props:{showPOICount:{type:Boolean,default:!1},currentFloor:{type:Object,default:!1}},computed:n({},x(["floors","language"])),methods:{changeFloor:function(t){this.$emit("clicked",t)}}},"data-v-59428f73",false,undefined,!1,Y,void 0,void 0),ot=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"filteredmenu"},[o("ul",{staticClass:"list"},t._l(t.sortedPOIs,(function(e){return o("li",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.onClick(e),expression:"onClick(poiitem)",arg:"tap"}],key:e.id,staticClass:"item list-item",class:{active:t.currentPOI&&e.id==t.currentPOI.id},on:{click:function(o){return t.onClick(e)}}},[t._t("default",(function(){return[o("POI",{attrs:{poi:e,showLogo:t.showLogo,showName:t.showName,showPathButton:t.showPathButton,showDescription:t.showDescription,showRoomID:t.showRoomID,showFloor:t.showFloor}})]}),{poi:e})],2)})),0)])},staticRenderFns:[]},undefined,{name:"FilteredMenu",components:{POI:V},data:function(){return{sortedPOIs:[]}},props:{showLogo:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},showPathButton:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1},showRoomID:{type:Boolean,default:!1},showFloor:{type:Boolean,default:!1},currentPOI:{type:Object,default:null}},computed:n({},x(["filteredPOIs","language"])),watch:{filteredPOIs:function(t){var e=this,o=t.slice().filter((function(t){return t&&t.getShowInMenu()}));o=o.sort((function(t,o){return t.getName(e.language)&&o.getName(e.language)?t.getName(e.language).localeCompare(o.getName(e.language)):0})),this.sortedPOIs=o}},methods:{onClick:function(t){var e=this;return function(){e.$emit("clicked",t),e.$wayfinder.statistics.onClick(t.id,"menu")}}}},"data-v-6aea7e57",false,undefined,!1,void 0,void 0,void 0);var it,nt,rt=(function(t){t.exports=function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){o.r(e);class i{constructor(t){this.keyboard=t,this.actions={backspace:function(t,e){e.selectionStart>0&&e.selectionStart==e.selectionEnd?(e.selectionStart--,e.changeValue("")):e.changeValue("")},change_keyset:function(t,e){void 0!==t.action[1]&&(e.keyset=t.action[1],e.clear(),e.construct())},change_layout:function(t,e){void 0!==t.action[1]&&(e.layoutName=t.action[1],e.clear(),e.construct())},submit:function(t,e){void 0!==t.action[1]&&(e.pushtoOutput(),e.clear())}}}activate(t){"function"==typeof this.actions[t.action[0]]&&this.actions[t.action[0]](t,this.keyboard)}addAction(t,e){this.actions[t]=e}}class n{constructor(t,e,o){this.layouts={},this.layoutName=void 0===o?"en":o,this.keyset="default",this.container=!1,this.containerListenerAdded=!1,this.setContainer(e),this.selectionStart=0,this.selectionEnd=0,this.output=!1,this.outputIsInputField=!0,this.value="",this.events={change:[],layout:[],ready:[]},this.actions=new i(this),this.cbOnChange=!1,this.setOutput(t),this.setDefaultLayout(),this.construct()}on(t,e){"object"!=typeof this.events[t]&&(this.events[t]=[]),this.events[t].push(e)}trigger(){let t=Array.prototype.slice.call(arguments);if(t.length>0){let e=t[0];if(t.shift(),this.events[e]){let o;for(let i=0,n=this.events[e].length;i<n;i++)"function"==typeof(o=this.events[e][i])&&o.apply(this,t)}}}addLayout(t,e){this.layouts[t]=e}changeLayout(t,e){this.layoutName=t,this.keyset=e||"default",this.clear(),this.construct(),this.trigger("layout",this.layoutName,this.keyset)}setContainer(t){switch(typeof t){case"undefined":this.container=document.createElement("div"),this.container.classList.add("keyboard"),document.body.appendChild(this.container);break;case"string":this.container=document.getElementById(t);break;default:this.container=t}}setOutput(t){if("string"==typeof t){if(this.output=document.getElementById(t),!this.output)return void console.warn("Input field not found",t);"input"!==this.output.tagName.toLowerCase()&&(this.outputIsInputField=!1)}else this.output=t;this.output&&(this.output.addEventListener("focus",(()=>{this.updateFromOutput()})),this.output.addEventListener("keyup",(()=>{this.updateFromOutput(),this.trigger("change",this.value)})),this.output.addEventListener("mouseup",(()=>{this.updateFromOutput()})),this.output.addEventListener("input",(()=>{this.updateFromOutput()})))}updateFromOutput(){this.outputIsInputField?this.value=this.output.value:this.value=this.output.innerText,this.getCaretPosition()}clear(){for(;this.container.firstChild;)this.container.removeChild(this.container.firstChild)}clearValue(){this.value="",this.selectionStart=0,this.selectionEnd=0}getCurrentKeyset(){try{return this.layouts[this.layoutName].keys[this.keyset]}catch(t){return console.warn("Error! Probably no keyboard layout added!"),this.layouts.en.keys.default}}construct(){this.clear();let t="",e=this.getCurrentKeyset();for(let o in e){t+="<div class='keyboard-row keyboard-row-"+o+"'>";for(let i in e[o]){let n=e[o][i];switch(typeof n){case"string":t+="<div class='keyboard-key "+n+"' row='"+o+"' index='"+i+"'>"+n+"</div>";break;case"object":let e="";n.cls&&(e=n.cls),t+="<div class='keyboard-key keyboard-"+e+" "+n.key+"' object='' row='"+o+"' index='"+i+"'>"+n.key+"</div>"}}t+="</div>"}this.container.insertAdjacentHTML("beforeend",t),this.containerListenerAdded||(this.container.addEventListener("mousedown",(t=>{this.getCaretPosition(),this.keyPressed(t.target),t.stopPropagation(),t.preventDefault()})),this.container.addEventListener("mouseup",(t=>{this.keyReleased(t.target),t.stopPropagation()})),this.containerListenerAdded=!0,this.container.onselectstart=function(){return!1},this.container.onmousedown=function(){return!1}),this.rescale()}rescale(){let t,e,o=0;for(let i=0;i<this.container.children.length;i++){let n=(t=this.container.children[i]).offsetHeight-t.clientHeight,r=t.offsetWidth-t.clientWidth;for(let o=0;o<t.children.length;o++)r+=((e=t.children[o]).offsetWidth<this.container.offsetWidth?e.offsetWidth:this.container.offsetWidth)+1,n=Math.max(n,this.container.offsetHeight);t.width=r,t.height=n,o+=n}this.container.height=o,this.trigger("ready")}keyPressed(t){t.classList.add("keyboard-key-pressed");let e=this.getCurrentKeyset()[t.getAttribute("row")];if(!e)return;let o=e[t.getAttribute("index")];switch(typeof o){case"string":this.changeValue(o);break;case"object":void 0===o.action?this.changeValue(o.key):this.actions.activate(o)}this.pushtoOutput()}changeValue(t){let e=this.value.substring(0,this.selectionStart),o=this.value.substring(this.selectionEnd,this.value.length);this.value=""+e+t+o,this.selectionStart+=t.length,this.selectionEnd=this.selectionStart}pushtoOutput(){if(this.output){this.outputIsInputField?(this.output.value=this.value,this.output.selectionStart=this.selectionStart,this.output.selectionEnd=this.selectionEnd):this.output.innerHTML=this.value;let t=new Event("change"),e=new Event("keyup");this.output.dispatchEvent(t),this.output.dispatchEvent(e),this.trigger("change",this.value)}}getCaretPosition(){this.output&&this.outputIsInputField&&(this.selectionStart=this.output.selectionStart,this.selectionEnd=this.output.selectionEnd)}keyReleased(t){t.classList.remove("keyboard-key-pressed")}width(){return-1}height(){return-1}setDefaultLayout(){this.layouts.en={name:"English",keyboard:"US International",local_name:"English",lang:"en",keys:{default:[["1","2","3","4","5","6","7","8","9","0",{key:"« Bksp",action:["backspace"],cls:"key2x"}],["q","w","e","r","t","y","u","i","o","p","\\"],["a","s","d","f","g","h","j","k","l",{key:"Enter",action:["submit"],cls:"key3x"}],[{key:"Shift",action:["change_keyset","shift"],cls:"key2x"},"z","x","c","v","b","n","m"],[{key:" ",cls:"key_spacebar"}]],shift:[["~","!","@","#","$","%","^","&","*","(",")",{key:"« Bksp",action:"backspace",cls:"key2x"}],["Q","W","E","R","T","Y","U","I","O","P","{","}"],["A","S","D","F","G","H","J","K","L",{key:"Enter",action:["submit"],cls:"key3x"}],[{key:"Shift",action:["change_keyset","default"],cls:"key2x active"},"Z","X","C","V","B","N","M","<",">","?"],[{key:" ",cls:"key_spacebar"}]]}}}}o.d(e,"OSK",(function(){return n})),o.d(e,"OSKActions",(function(){return i}))}]).OSK}(nt={path:it,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&nt.path)}},nt.exports),nt.exports),st=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"search"},[t.showCloseButton?o("div",{staticClass:"tab-button close",attrs:{"data-translation-element":"close"},on:{click:function(e){return t.close(e)}}},[t._v("Close")]):t._e(),t._v(" "),o("div",{staticClass:"search-container"},[o("div",{staticClass:"results",class:{"no-results":0==t.results.length}},[o("transition-group",{staticClass:"list",attrs:{name:"list",tag:"ul"}},t._l(t.results,(function(e){return e&&e.getShowInMenu()?o("li",{key:e.id,staticClass:"list-item",class:{active:t.currentPOI&&e.id==t.currentPOI.id},on:{click:function(o){return t.onClick(e)}}},[t._t("default",(function(){return[o("POI",{attrs:{poi:e,showLogo:t.showLogo,showName:t.showName,showPathButton:t.showPathButton,showDescription:t.showDescription,showRoomID:t.showRoomID,showFloor:t.showFloor}})]}),{poi:e})],2):t._e()})),0),t._v(" "),o("span",{directives:[{name:"show",rawName:"v-show",value:t.showNoResultsText&&0==t.results.length,expression:"showNoResultsText && results.length == 0"}]},[t._v(t._s(t.noResultsText))])],1),t._v(" "),t.showOutputField?o("div",{staticClass:"search-input-container"},[o("input",{ref:"searchInput",attrs:{id:"search-input"}})]):t._e(),t._v(" "),t.showKeyboard?o("div",{staticClass:"keyboard",attrs:{id:"keyboard-container"}}):t._e()])])},staticRenderFns:[]},(function(t){t&&t("data-v-7d8eb55c_0",{source:".search .close{position:absolute;top:0;right:.5rem;width:10rem;background-color:rgba(255,255,255,.7);background-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:cc='http://creativecommons.org/ns%23' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' enable-background='new 0 0 20 20' viewBox='0 0 20 20' y='0px' x='0px' id='Cross' version='1.1'%3E%3Cmetadata id='metadata9'%3E%3Crdf:RDF%3E%3Ccc:Work rdf:about=''%3E%3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E%3Cdc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage' /%3E%3Cdc:title%3E%3C/dc:title%3E%3C/cc:Work%3E%3C/rdf:RDF%3E%3C/metadata%3E%3Cdefs id='defs7'%3E%3ClinearGradient spreadMethod='pad' gradientUnits='userSpaceOnUse' y2='29.3118' x2='11.0536' y1='16.0077' x1='24.5509' id='paint1_linear' gradientTransform='translate(-6.9097825,12.894087)'%3E%3Cstop id='stop16' stop-color='%23FF4C54' /%3E%3Cstop id='stop18' stop-color='%23BE3F45' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient gradientUnits='userSpaceOnUse' y2='34.9828' x2='34.294201' y1='14.605' x1='13.6189' id='paint0_linear'%3E%3Cstop id='stop11' stop-color='%23FF4C54' /%3E%3Cstop id='stop13' stop-color='%23BE3F45' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient gradientTransform='matrix(1.9229845,0,0,1.9229845,-9.2288833,-9.2308069)' gradientUnits='userSpaceOnUse' y2='14.322534' x2='6.3946652' y1='7.6276183' x1='12.290775' id='linearGradient4161' xlink:href='%23paint0_linear' /%3E%3C/defs%3E%3Cpath style='fill:url(%23linearGradient4161);fill-opacity:1' id='path3' d='m 18.362098,19.32359 c -0.90188,0.90188 -2.363348,0.90188 -3.263305,0 l -5.097832,-5.826643 -5.0978311,5.82472 c -0.9018797,0.90188 -2.3633479,0.90188 -3.2633047,0 -0.90187984,-0.90188 -0.90187984,-2.363347 0,-3.263304 L 6.9434164,10.000961 1.6379022,3.9397144 c -0.90187974,-0.9018798 -0.90187974,-2.361425 0,-3.26330476 0.9018798,-0.9018797 2.3614249,-0.9018797 3.2633048,0 l 5.099754,5.82856596 5.097832,-5.82856596 c 0.90188,-0.9018797 2.361425,-0.9018797 3.263305,0 0.901879,0.90187976 0.901879,2.36334796 0,3.26330476 l -5.30359,6.0612466 5.30359,6.057402 c 0.901879,0.90188 0.901879,2.363347 0,3.265227 z' /%3E%3C/svg%3E\")}.search .results{overflow:hidden}.search .search-container{margin:auto;display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:1rem}.search .search-input-container input{margin:auto;display:block;padding:1rem;font-size:2rem;font-weight:600;width:100%;border:1px solid #000;outline:0;background-repeat:no-repeat}.search .keyboard{user-select:none;display:flex;flex-direction:column;flex-shrink:0}.search .keyboard .keyboard-row{margin:auto;display:flex}.search .keyboard .keyboard-key{text-align:center;width:4rem;height:4rem;font-size:1.8rem;line-height:4rem;overflow:hidden;user-select:none;margin-right:.5rem;margin-bottom:.5rem}.search .keyboard .keyboard-key:last-child{margin-right:0}.search .keyboard .keyboard-key:active{background-color:#00f}.search .keyboard .keyboard-key2x{width:8rem}.search .keyboard .keyboard-key3x{width:12rem}.search .keyboard .keyboard-key_spacebar{width:24rem}",map:void 0,media:void 0})}),{name:"Search",components:{OSK:rt,POI:V},computed:n({},x(["language","reset"])),props:{limit:{type:Number,default:-1},showCloseButton:{type:Boolean,default:!1},showOutputField:{type:Boolean,default:!0},showKeyboard:{type:Boolean,default:!0},showNoResultsText:{type:Boolean,default:!0},noResultsText:{type:String,default:"No results"},showLogo:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},showPathButton:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1},showRoomID:{type:Boolean,default:!1},showFloor:{type:Boolean,default:!1},currentPOI:{type:Object,default:null}},data:function(){return{results:[],poi:{},keyboard:!1}},mounted:function(){var t=this;this.keyboard=new rt("search-input","keyboard-container"),this.keyboard.on("change",(function(e){var o=t.$wayfinder.search.search(e);t.limit>0&&(o=o.slice(0,t.limit)),t.results=Object.freeze(Object.assign({},o)),e.length>1&&(Object.values(t.results).length>0?t.$wayfinder.statistics.onSearch(e,"successful"):t.$wayfinder.statistics.onSearch(e,"unsuccessful"))})),this.keyboard.addLayout("en",{name:"English",keyboard:"US International",local_name:"English",lang:"en",keys:{default:[["1","2","3","4","5","6","7","8","9","0",{key:"Delete",action:["backspace"],cls:"key2x"}],["q","w","e","r","t","y","u","i","o","p"],["a","s","d","f","g","h","j","k","l"],["z","x","c","v","b","n","m"],[{key:" ",cls:"key_spacebar"}]]}}),this.keyboard.changeLayout(this.language)},watch:{searchVisible:function(t){t&&this.$refs.searchInput&&this.$refs.searchInput.focus()},reset:function(){this.resetValues()},language:function(t){this.keyboard&&this.keyboard.changeLayout(t)}},methods:{onClick:function(t){this.$emit("clicked",t),this.$wayfinder.statistics.onClick(t.id,"menu")},close:function(){this.$emit("close"),this.resetValues()},resetValues:function(){this.results=[],this.keyboard.changeLayout(this.language),this.keyboard.clearValue(),this.$refs.searchInput&&(this.$refs.searchInput.value="")},setOutput:function(t){this.keyboard.setOutput(t)},addLayout:function(t,e){this.keyboard.addLayout(t,e)},changeLayout:function(t){this.keyboard.changeLayout(t)}}},undefined,false,undefined,!1,Y,void 0,void 0),at=function(t,e){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function ct(t,e){function o(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var lt=function(){return(lt=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function ht(t){console.error("[BScroll warn]: "+t)}var ut="undefined"!=typeof window,dt=ut&&navigator.userAgent.toLowerCase();dt&&/wechatdevtools/.test(dt);var pt=dt&&dt.indexOf("android")>0;function ft(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function mt(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];for(var i=0;i<e.length;i++){var n=e[i];for(var r in n)t[r]=n[r]}return t}function vt(t){return null==t}var gt=ut&&document.createElement("div").style,yt=function(){if(!ut)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==gt[t[e]])return e;return!1}();function bt(t){return!1===yt?t:"standard"===yt?"transitionEnd"===t?"transitionend":t:yt+t.charAt(0).toUpperCase()+t.substr(1)}function wt(t){return"string"==typeof t?document.querySelector(t):t}function kt(t,e,o,i){t.addEventListener(e,o,{passive:!1,capture:!!i})}function Tt(t,e,o,i){t.removeEventListener(e,o,{capture:!!i})}function _t(t){for(var e=0,o=0;t;)e-=t.offsetLeft,o-=t.offsetTop,t=t.offsetParent;return{left:e,top:o}}yt&&"standard"!==yt&&yt.toLowerCase();var Et=bt("transform"),St=bt("transition"),Pt=ut&&bt("perspective")in gt,xt=ut&&St in gt,Ct={transform:Et,transition:St,transitionTimingFunction:bt("transitionTimingFunction"),transitionDuration:bt("transitionDuration"),transitionDelay:bt("transitionDelay"),transformOrigin:bt("transformOrigin"),transitionEnd:bt("transitionEnd")},Ot={touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2};function Mt(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function Dt(t,e){for(var o in e)if(e[o].test(t[o]))return!0;return!1}var It=Dt;function Ft(t,e){var o;void 0===e&&(e="click"),"mouseup"===t.type?o=t:"touchend"!==t.type&&"touchcancel"!==t.type||(o=t.changedTouches[0]);var i,n={};o&&(n.screenX=o.screenX||0,n.screenY=o.screenY||0,n.clientX=o.clientX||0,n.clientY=o.clientY||0);if("undefined"!=typeof MouseEvent)try{i=new MouseEvent(e,mt({bubbles:true,cancelable:true},n))}catch(t){r()}else r();function r(){(i=document.createEvent("Event")).initEvent(e,true,true),mt(i,n)}i.forwardedTouchEvent=!0,i._constructed=!0,t.target.dispatchEvent(i)}var Bt={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},Lt=ut&&window;function $t(){}var At=ut?Lt.requestAnimationFrame||Lt.webkitRequestAnimationFrame||Lt.mozRequestAnimationFrame||Lt.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||1.6666666666666667)/2)}:$t,Nt=ut?Lt.cancelAnimationFrame||Lt.webkitCancelAnimationFrame||Lt.mozCancelAnimationFrame||Lt.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:$t,Rt=function(t){},zt={enumerable:!0,configurable:!0,get:Rt,set:Rt};var jt,Ht,Yt,Wt,Xt,Gt,Vt=function(){function t(t){this.events={},this.eventTypes={},this.registerType(t)}return t.prototype.on=function(t,e,o){return void 0===o&&(o=this),this._checkInTypes(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},t.prototype.once=function(t,e,o){var i=this;void 0===o&&(o=this),this._checkInTypes(t);var n=function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];i.off(t,n),e.apply(o,r)};return n.fn=e,this.on(t,n),this},t.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this._checkInTypes(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;for(var i=o.length;i--;)(o[i][0]===e||o[i][0]&&o[i][0].fn===e)&&o.splice(i,1);return this}},t.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this._checkInTypes(t);var i=this.events[t];if(i)for(var n,r=i.length,s=i.slice(),a=0;a<r;a++){var c=s[a],l=c[0],h=c[1];if(l&&!0===(n=l.apply(h,e)))return n}},t.prototype.registerType=function(t){var e=this;t.forEach((function(t){e.eventTypes[t]=t}))},t.prototype.destroy=function(){this.events={},this.eventTypes={}},t.prototype._checkInTypes=function(t){var e=this.eventTypes;e[t]===t||ht('EventEmitter has used unknown event type: "'+t+'", should be oneof ['+Object.keys(e)+"]")},t}();!function(t){t[t.Positive=1]="Positive",t[t.Negative=-1]="Negative",t[t.Default=0]="Default"}(jt||(jt={})),function(t){t.Default="",t.Horizontal="horizontal",t.Vertical="vertical",t.None="none"}(Ht||(Ht={})),function(t){t.None="",t.Horizontal="horizontal",t.Vertical="vertical"}(Yt||(Yt={})),function(t){t[t.Touch=1]="Touch",t[t.Mouse=2]="Mouse"}(Wt||(Wt={})),function(t){t[t.Left=0]="Left",t[t.Middle=1]="Middle",t[t.Right=2]="Right"}(Xt||(Xt={})),function(t){t[t.Default=0]="Default",t[t.Throttle=1]="Throttle",t[t.Normal=2]="Normal",t[t.Realtime=3]="Realtime"}(Gt||(Gt={}));var Ut=function(){function t(){this.startX=0,this.startY=0,this.scrollX=!1,this.scrollY=!0,this.freeScroll=!1,this.directionLockThreshold=5,this.eventPassthrough=Yt.None,this.click=!1,this.dblclick=!1,this.tap="",this.bounce={top:!0,bottom:!0,left:!0,right:!0},this.bounceTime=800,this.momentum=!0,this.momentumLimitTime=300,this.momentumLimitDistance=15,this.swipeTime=2500,this.swipeBounceTime=500,this.deceleration=.0015,this.flickLimitTime=200,this.flickLimitDistance=100,this.resizePolling=60,this.probeType=Gt.Default,this.stopPropagation=!1,this.preventDefault=!0,this.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},this.tagException={tagName:/^TEXTAREA$/},this.HWCompositing=!0,this.useTransition=!0,this.bindToWrapper=!1,this.autoBlur=!0}return t.prototype.merge=function(t){if(!t)return this;for(var e in t)this[e]=t[e];return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&Pt?" translateZ(0)":"",this.useTransition=this.useTransition&&xt,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX=this.eventPassthrough!==Yt.Horizontal&&this.scrollX,this.scrollY=this.eventPassthrough!==Yt.Vertical&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t}(),Kt=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(kt)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(Tt)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach((function(i){t(o,i.name,e,!!i.capture)}))},t.prototype.handleEvent=function(t){var e=t.type;this.events.some((function(o){return o.name===e&&(o.handler(t),!0)}))},t}(),qt=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new Vt(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return t.prototype.handleDOMEvents=function(){var t=this.options.bindToWrapper,e=this.wrapper,o=t?e:window;this.startClickRegister=new Kt(e,[{name:"mousedown",handler:this.start.bind(this)},{name:"touchstart",handler:this.start.bind(this)},{name:"click",handler:this.click.bind(this),capture:!0}]),this.moveEndRegister=new Kt(o,[{name:"mousemove",handler:this.move.bind(this)},{name:"touchmove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"mouseup",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)}])},t.prototype.beforeHandler=function(t,e){var o=this.options,i=o.preventDefault,n=o.stopPropagation,r=o.preventDefaultException;({start:function(){return i&&!Dt(t.target,r)},end:function(){return i&&!Dt(t.target,r)},move:function(){return i}})[e]()&&t.preventDefault(),n&&t.stopPropagation()},t.prototype.setInitiated=function(t){void 0===t&&(t=0),this.initiated=t},t.prototype.start=function(t){var e=Ot[t.type];if(!this.initiated||this.initiated===e)if(this.setInitiated(e),It(t.target,this.options.tagException))this.setInitiated();else if((e!==Wt.Mouse||t.button===Xt.Left)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,t)){this.beforeHandler(t,"start");var o=t.touches?t.touches[0]:t;this.pointX=o.pageX,this.pointY=o.pageY,this.hooks.trigger(this.hooks.eventTypes.start,t)}},t.prototype.move=function(t){if(Ot[t.type]===this.initiated){this.beforeHandler(t,"move");var e=t.touches?t.touches[0]:t,o=e.pageX-this.pointX,i=e.pageY-this.pointY;if(this.pointX=e.pageX,this.pointY=e.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:o,deltaY:i,e:t})){var n=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,r=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,s=this.pointX-n,a=this.pointY-r;(s>document.documentElement.clientWidth-this.options.momentumLimitDistance||s<this.options.momentumLimitDistance||a<this.options.momentumLimitDistance||a>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this.end(t)}}},t.prototype.end=function(t){Ot[t.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(t,"end"),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.click=function(t){this.hooks.trigger(this.hooks.eventTypes.click,t)},t.prototype.destroy=function(){this.startClickRegister.destroy(),this.moveEndRegister.destroy(),this.hooks.destroy()},t}(),Zt={x:["translateX","px"],y:["translateY","px"]},Qt=function(){function t(t){this.content=t,this.style=t.style,this.hooks=new Vt(["beforeTranslate","translate"])}return t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.content,null)[Ct.transform].split(")")[0].split(", ");return{x:+(t[12]||t[4]),y:+(t[13]||t[5])}},t.prototype.translate=function(t){var e=[];Object.keys(t).forEach((function(o){if(Zt[o]){var i=Zt[o][0];if(i){var n=Zt[o][1],r=t[o];e.push(i+"("+r+n+")")}}})),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,e,t),this.style[Ct.transform]=""+e.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,t)},t.prototype.destroy=function(){this.hooks.destroy()},t}(),Jt=function(){function t(t,e,o){this.content=t,this.translater=e,this.options=o,this.hooks=new Vt(["move","end","beforeForceStop","forceStop","time","timeFunction"]),this.style=t.style}return t.prototype.translate=function(t){this.translater.translate(t)},t.prototype.setPending=function(t){this.pending=t},t.prototype.setForceStopped=function(t){this.forceStopped=t},t.prototype.destroy=function(){this.hooks.destroy(),Nt(this.timer)},t}(),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.startProbe=function(){var t=this,e=function(){var o=t.translater.getComputedPosition();t.hooks.trigger(t.hooks.eventTypes.move,o),t.pending?t.timer=At(e):t.hooks.trigger(t.hooks.eventTypes.end,o)};Nt(this.timer),this.timer=At(e)},e.prototype.transitionTime=function(t){void 0===t&&(t=0),this.style[Ct.transitionDuration]=t+"ms",this.hooks.trigger(this.hooks.eventTypes.time,t)},e.prototype.transitionTimingFunction=function(t){this.style[Ct.transitionTimingFunction]=t,this.hooks.trigger(this.hooks.eventTypes.timeFunction,t)},e.prototype.move=function(t,e,o,i,n){this.setPending(o>0&&(t.x!==e.x||t.y!==e.y)),this.transitionTimingFunction(i),this.transitionTime(o),this.translate(e),o&&this.options.probeType===Gt.Realtime&&this.startProbe(),o||(this._reflow=this.content.offsetHeight),o||n||(this.hooks.trigger(this.hooks.eventTypes.move,e),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.stop=function(){if(this.pending){this.setPending(!1),Nt(this.timer);var t=this.translater.getComputedPosition(),e=t.x,o=t.y;if(this.transitionTime(),this.translate({x:e,y:o}),this.setForceStopped(!0),this.hooks.trigger(this.hooks.eventTypes.beforeForceStop,{x:e,y:o}))return;this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:e,y:o})}},e}(Jt),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.move=function(t,e,o,i,n){if(!o){if(this.translate(e),this._reflow=this.content.offsetHeight,n)return;return this.hooks.trigger(this.hooks.eventTypes.move,e),void this.hooks.trigger(this.hooks.eventTypes.end,e)}this.animate(t,e,o,i)},e.prototype.animate=function(t,e,o,i){var n=this,r=ft(),s=r+o,a=function(){var c=ft();if(c>=s)return n.translate(e),n.hooks.trigger(n.hooks.eventTypes.move,e),void n.hooks.trigger(n.hooks.eventTypes.end,e);var l=i(c=(c-r)/o),h={};Object.keys(e).forEach((function(o){var i=t[o],n=e[o];h[o]=(n-i)*l+i})),n.translate(h),n.pending&&(n.timer=At(a)),n.options.probeType===Gt.Realtime&&n.hooks.trigger(n.hooks.eventTypes.move,h)};this.setPending(!0),Nt(this.timer),a()},e.prototype.stop=function(){if(this.pending){this.setPending(!1),Nt(this.timer);var t=this.translater.getComputedPosition();if(this.setForceStopped(!0),this.hooks.trigger(this.hooks.eventTypes.beforeForceStop,t))return;this.hooks.trigger(this.hooks.eventTypes.forceStop,t)}},e}(Jt);var oe,ie,ne,re,se,ae=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new Vt(["momentum","end"]),this.content=this.wrapper.children[0],this.currentPos=0,this.startPos=0}return t.prototype.start=function(){this.direction=jt.Default,this.movingDirection=jt.Default,this.dist=0},t.prototype.move=function(t){t=this.hasScroll?t:0,this.movingDirection=t>0?jt.Negative:t<0?jt.Positive:jt.Default;var e=this.currentPos+t;return(e>this.minScrollPos||e<this.maxScrollPos)&&(e=e>this.minScrollPos&&this.options.bounces[0]||e<this.maxScrollPos&&this.options.bounces[1]?this.currentPos+t/3:e>this.minScrollPos?this.minScrollPos:this.maxScrollPos),e},t.prototype.end=function(t){var e={duration:0},o=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&t<this.options.momentumLimitTime&&o>this.options.momentumLimitDistance){var i=this.direction===jt.Negative&&this.options.bounces[0]||this.direction===jt.Positive&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,i,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},t.prototype.momentum=function(t,e,o,i,n,r,s){void 0===s&&(s=this.options);var a=t-e,c=Math.abs(a)/o,l=s.deceleration,h=s.swipeBounceTime,u={destination:t+c/l*(a<0?-1:1),duration:s.swipeTime,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,u,a),u.destination<i?(u.destination=r?Math.max(i-r/4,i-r/u.rate*c):i,u.duration=h):u.destination>n&&(u.destination=r?Math.min(n+r/4,n+r/u.rate*c):n,u.duration=h),u.destination=Math.round(u.destination),u},t.prototype.updateDirection=function(){var t=Math.round(this.currentPos)-this.absStartPos;this.direction=t>0?jt.Negative:t<0?jt.Positive:jt.Default},t.prototype.refresh=function(){var t=this.options.rect,e=t.size,o=t.position,i="static"===window.getComputedStyle(this.wrapper,null).position,n=Mt(this.wrapper);this.wrapperSize=n[e];var r=Mt(this.content);this.contentSize=r[e],this.relativeOffset=r[o],i&&(this.relativeOffset-=n[o]),this.minScrollPos=0,this.maxScrollPos=this.wrapperSize-this.contentSize,this.maxScrollPos<0&&(this.maxScrollPos-=this.relativeOffset,this.minScrollPos=-this.relativeOffset),this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,this.hasScroll||(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize),this.direction=0},t.prototype.updatePosition=function(t){this.currentPos=t},t.prototype.getCurrentPos=function(){return Math.round(this.currentPos)},t.prototype.checkInBoundary=function(){var t=this.adjustPosition(this.currentPos);return{position:t,inBoundary:t===this.getCurrentPos()}},t.prototype.adjustPosition=function(t){var e=Math.round(t);return!this.hasScroll||e>this.minScrollPos?e=this.minScrollPos:e<this.maxScrollPos&&(e=this.maxScrollPos),e},t.prototype.updateStartPos=function(){this.startPos=this.currentPos},t.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},t.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},t.prototype.getAbsDist=function(t){return this.dist+=t,Math.abs(this.dist)},t.prototype.destroy=function(){this.hooks.destroy()},t}();!function(t){t.Yes="yes",t.No="no"}(se||(se={}));var ce=((oe={})[se.Yes]=function(t){return!0},oe[se.No]=function(t){return t.preventDefault(),!1},oe),le=((ie={})[Ht.Horizontal]=((ne={})[se.Yes]=Yt.Horizontal,ne[se.No]=Yt.Vertical,ne),ie[Ht.Vertical]=((re={})[se.Yes]=Yt.Vertical,re[se.No]=Yt.Horizontal,re),ie),he=function(){function t(t,e,o){this.directionLockThreshold=t,this.freeScroll=e,this.eventPassthrough=o,this.reset()}return t.prototype.reset=function(){this.directionLocked=Ht.Default},t.prototype.checkMovingDirection=function(t,e,o){return this.computeDirectionLock(t,e),this.handleEventPassthrough(o)},t.prototype.adjustDelta=function(t,e){return this.directionLocked===Ht.Horizontal?e=0:this.directionLocked===Ht.Vertical&&(t=0),{deltaX:t,deltaY:e}},t.prototype.computeDirectionLock=function(t,e){this.directionLocked!==Ht.Default||this.freeScroll||(t>e+this.directionLockThreshold?this.directionLocked=Ht.Horizontal:e>=t+this.directionLockThreshold?this.directionLocked=Ht.Vertical:this.directionLocked=Ht.None)},t.prototype.handleEventPassthrough=function(t){var e=le[this.directionLocked];if(e){if(this.eventPassthrough===e[se.Yes])return ce[se.Yes](t);if(this.eventPassthrough===e[se.No])return ce[se.No](t)}return!1},t}(),ue=function(){function t(t,e,o,i,n){this.hooks=new Vt(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=o,this.animater=i,this.options=n,this.directionLockAction=new he(n.directionLockThreshold,n.freeScroll,n.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return t.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,(function(e){return!t.enabled||t.handleStart(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,(function(e){var o=e.deltaX,i=e.deltaY,n=e.e;return!t.enabled||t.handleMove(o,i,n)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,(function(e){return!t.enabled||t.handleEnd(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,(function(e){t.enabled&&!e._constructed&&t.handleClick(e)}))},t.prototype.handleStart=function(t){var e=ft();this.moved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.stop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},t.prototype.handleMove=function(t,e,o){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,o)){var i=this.scrollBehaviorX.getAbsDist(t),n=this.scrollBehaviorY.getAbsDist(e),r=ft();if(this.checkMomentum(i,n,r))return!0;if(this.directionLockAction.checkMovingDirection(i,n,o))return this.actionsHandler.setInitiated(),!0;var s=this.directionLockAction.adjustDelta(t,e),a=this.scrollBehaviorX.move(s.deltaX),c=this.scrollBehaviorY.move(s.deltaY);this.moved||(this.moved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.animater.translate({x:a,y:c}),this.dispatchScroll(r)}},t.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),this.options.probeType===Gt.Throttle&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>Gt.Throttle&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},t.prototype.checkMomentum=function(t,e,o){return o-this.endTime>this.options.momentumLimitTime&&e<this.options.momentumLimitDistance&&t<this.options.momentumLimitDistance},t.prototype.handleEnd=function(t){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,t)){var e=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,t,e))return!0;this.animater.translate(e),this.endTime=ft();var o=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,e,o)}},t.prototype.handleClick=function(t){Dt(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation())},t.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},t.prototype.refresh=function(){this.endTime=0},t.prototype.destroy=function(){this.hooks.destroy()},t}();function de(t,e,o,i){var n=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime"].reduce((function(e,o){return e[o]=t[o],e}),{});return n.scrollable=t[e],n.bounces=o,n.rect=i,n}function pe(t,e,o){o.forEach((function(o){var i,n;"string"==typeof o?i=n=o:(i=o.source,n=o.target),t.on(i,(function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.trigger.apply(e,[n].concat(t))}))}))}var fe,me=function(){function t(t,e){this.hooks=new Vt(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","refresh","touchEnd","end","flick","scrollCancel","momentum","scrollTo","ignoreDisMoveForSamePos","scrollToElement"]),this.wrapper=t,this.content=t.children[0],this.options=e;var o,i=this.options.bounce,n=i.left,r=void 0===n||n,s=i.right,a=void 0===s||s,c=i.top,l=void 0===c||c,h=i.bottom,u=void 0===h||h;this.scrollBehaviorX=new ae(t,de(e,"scrollX",[r,a],{size:"width",position:"left"})),this.scrollBehaviorY=new ae(t,de(e,"scrollY",[l,u],{size:"height",position:"top"})),this.translater=new Qt(this.content),this.animater=function(t,e,o){var i=o.useTransition,n={};return Object.defineProperty(n,"probeType",{enumerable:!0,configurable:!1,get:function(){return o.probeType}}),i?new te(t,e,n):new ee(t,e,n)}(this.content,this.translater,this.options),this.actionsHandler=new qt(t,(o=this.options,["click","bindToWrapper","preventDefault","stopPropagation","tagException","preventDefaultException"].reduce((function(t,e){return t[e]=o[e],t}),{}))),this.actions=new ue(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var d=this.resize.bind(this);this.resizeRegister=new Kt(window,[{name:"orientationchange",handler:d},{name:"resize",handler:d}]),this.transitionEndRegister=new Kt(this.content,[{name:Ct.transitionEnd,handler:this.transitionEnd.bind(this)}]),this.init()}return t.prototype.init=function(){var t=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,(function(){t.togglePointerEvents(!0)}))},t.prototype.bindTranslater=function(){var t=this,e=this.translater.hooks;e.on(e.eventTypes.beforeTranslate,(function(e){t.options.translateZ&&e.push(t.options.translateZ)})),e.on(e.eventTypes.translate,(function(e){t.updatePositions(e),t.togglePointerEvents(!1)}))},t.prototype.bindAnimater=function(){var t=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,(function(e){t.resetPosition(t.options.bounceTime)||(t.animater.setPending(!1),t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e))})),pe(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},t.prototype.bindActions=function(){var t=this,e=this.actions;pe(e.hooks,this.hooks,[{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:e.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:e.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:e.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:e.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),e.hooks.on(e.hooks.eventTypes.end,(function(o,i){return t.hooks.trigger(t.hooks.eventTypes.touchEnd,i),!!t.hooks.trigger(t.hooks.eventTypes.end,i)||(!e.moved&&t.checkClick(o)?(t.animater.setForceStopped(!1),t.hooks.trigger(t.hooks.eventTypes.scrollCancel),!0):(t.animater.setForceStopped(!1),!!t.resetPosition(t.options.bounceTime,Bt.bounce)||void 0))})),e.hooks.on(e.hooks.eventTypes.scrollEnd,(function(e,o){var i=Math.abs(e.x-t.scrollBehaviorX.startPos),n=Math.abs(e.y-t.scrollBehaviorY.startPos);t.checkFlick(o,i,n)?t.hooks.trigger(t.hooks.eventTypes.flick):t.momentum(e,o)||t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e)}))},t.prototype.checkFlick=function(t,e,o){if(this.hooks.events.flick.length>1&&t<this.options.flickLimitTime&&e<this.options.flickLimitDistance&&o<this.options.flickLimitDistance)return!0},t.prototype.momentum=function(t,e){var o={time:0,easing:Bt.swiper,newX:t.x,newY:t.y},i=this.scrollBehaviorX.end(e),n=this.scrollBehaviorY.end(e);if(o.newX=vt(i.destination)?o.newX:i.destination,o.newY=vt(n.destination)?o.newY:n.destination,o.time=Math.max(i.duration,n.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,o,this),o.newX!==t.x||o.newY!==t.y)return(o.newX>this.scrollBehaviorX.minScrollPos||o.newX<this.scrollBehaviorX.maxScrollPos||o.newY>this.scrollBehaviorY.minScrollPos||o.newY<this.scrollBehaviorY.maxScrollPos)&&(o.easing=Bt.swipeBounce),this.scrollTo(o.newX,o.newY,o.time,o.easing),!0},t.prototype.checkClick=function(t){var e=this.animater.forceStopped;if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return!0;if(!e){var o=this.options.dblclick,i=!1;if(o&&this.lastClickTime){var n=o.delay,r=void 0===n?300:n;ft()-this.lastClickTime<r&&(i=!0,function(t){Ft(t,"dblclick")}(t))}return this.options.tap&&function(t,e){var o=document.createEvent("Event");o.initEvent(e,!0,!0),o.pageX=t.pageX,o.pageY=t.pageY,t.target.dispatchEvent(o)}(t,this.options.tap),this.options.click&&!Dt(t.target,this.options.preventDefaultException)&&Ft(t),this.lastClickTime=i?null:ft(),!0}return!1},t.prototype.resize=function(){var t=this;this.actions.enabled&&(pt&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((function(){t.refresh()}),this.options.resizePolling))},t.prototype.transitionEnd=function(t){t.target===this.content&&this.animater.pending&&(this.animater.transitionTime(),this.resetPosition(this.options.bounceTime,Bt.bounce)||(this.animater.setPending(!1),this.options.probeType!==Gt.Realtime&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos())))},t.prototype.togglePointerEvents=function(t){void 0===t&&(t=!0);for(var e=this.content.children.length?this.content.children:[this.content],o=t?"auto":"none",i=0;i<e.length;i++)e[i].style.pointerEvents=o},t.prototype.refresh=function(){this.scrollBehaviorX.refresh(),this.scrollBehaviorY.refresh(),this.actions.refresh(),this.wrapperOffset=_t(this.wrapper)},t.prototype.scrollBy=function(t,e,o,i){void 0===o&&(o=0);var n=this.getCurrentPos(),r=n.x,s=n.y;i=i||Bt.bounce,t+=r,e+=s,this.scrollTo(t,e,o,i)},t.prototype.scrollTo=function(t,e,o,i,n,r){void 0===o&&(o=0),void 0===n&&(n={start:{},end:{}}),i=i||Bt.bounce;var s=this.options.useTransition?i.style:i.fn,a=this.getCurrentPos(),c=lt({x:a.x,y:a.y},n.start),l=lt({x:t,y:e},n.end);this.hooks.trigger(this.hooks.eventTypes.scrollTo,l),(this.hooks.trigger(this.hooks.eventTypes.ignoreDisMoveForSamePos)||c.x!==l.x||c.y!==l.y)&&this.animater.move(c,l,o,s,r)},t.prototype.scrollToElement=function(t,e,o,i,n){var r=wt(t),s=_t(r),a=function(t,e,o){return"number"==typeof t?t:t?Math.round(e/2-o/2):0};o=a(o,r.offsetWidth,this.wrapper.offsetWidth),i=a(i,r.offsetHeight,this.wrapper.offsetHeight);var c=function(t,e,o,i){return t-=e,t=i.adjustPosition(t-o)};s.left=c(s.left,this.wrapperOffset.left,o,this.scrollBehaviorX),s.top=c(s.top,this.wrapperOffset.top,i,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,r,s)||this.scrollTo(s.left,s.top,e,n)},t.prototype.resetPosition=function(t,e){void 0===t&&(t=0),e=e||Bt.bounce;var o=this.scrollBehaviorX.checkInBoundary(),i=o.position,n=o.inBoundary,r=this.scrollBehaviorY.checkInBoundary(),s=r.position,a=r.inBoundary;return(!n||!a)&&(this.scrollTo(i,s,t,e),!0)},t.prototype.updatePositions=function(t){this.scrollBehaviorX.updatePosition(t.x),this.scrollBehaviorY.updatePosition(t.y)},t.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},t.prototype.enable=function(){this.actions.enabled=!0},t.prototype.disable=function(){Nt(this.animater.timer),this.actions.enabled=!1},t.prototype.destroy=function(){var t=this;["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"].forEach((function(e){return t[e].destroy()}))},t}(),ve=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];!function(t){t.Pre="pre",t.Post="post"}(fe||(fe={}));var ge=function(t){function e(e,o){var i=t.call(this,["refresh","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,n=wt(e);return n?n.children[0]?(i.plugins={},i.options=(new Ut).merge(o).process(),i.hooks=new Vt(["init","refresh","enable","disable","destroy"]),i.init(n),i):(ht("The wrapper need at least one child element to be scroller."),i):(ht("Can not resolve the wrapper DOM."),i)}return ct(e,t),e.use=function(t){var e=t.pluginName;return this.plugins.some((function(e){return t===e.ctor}))?this:vt(e)?(ht("Plugin Class must specify plugin's name in static property by 'pluginName' field."),this):this.pluginsMap[e]?(ht("This plugin has been registered, maybe you need change plugin's name"),this):(this.pluginsMap[e]=!0,this.plugins.push({name:e,enforce:t.enforce,ctor:t}),this)},e.prototype.init=function(t){this.wrapper=t,this.scroller=new me(t,this.options),this.eventBubbling(),this.handleAutoBlur(),this.innerRefresh(),this.scroller.scrollTo(this.options.startX,this.options.startY),this.enable(),this.proxy(ve),this.applyPlugins()},e.prototype.applyPlugins=function(){var t=this,e=this.options;this.constructor.plugins.sort((function(t,e){var o,i=((o={})[fe.Pre]=-1,o[fe.Post]=1,o);return(t.enforce?i[t.enforce]:0)-(e.enforce?i[e.enforce]:0)})).forEach((function(o){var i=o.ctor;e[o.name]&&"function"==typeof i&&(t.plugins[o.name]=new i(t))}))},e.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,(function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()}))},e.prototype.eventBubbling=function(){pe(this.scroller.hooks,this,["beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick"])},e.prototype.innerRefresh=function(){this.scroller.refresh(),this.hooks.trigger(this.hooks.eventTypes.refresh),this.trigger(this.eventTypes.refresh)},e.prototype.proxy=function(t){var e=this;t.forEach((function(t){var o=t.key,i=t.sourceKey;!function(t,e,o){zt.get=function(){return function(t,e){for(var o=e.split("."),i=0;i<o.length-1;i++)if("object"!=typeof(t=t[o[i]])||!t)return;var n=o.pop();return"function"==typeof t[n]?function(){return t[n].apply(t,arguments)}:t[n]}(this,e)},zt.set=function(t){!function(t,e,o){for(var i,n=e.split("."),r=0;r<n.length-1;r++)t[i=n[r]]||(t[i]={}),t=t[i];t[n.pop()]=o}(this,e,t)},Object.defineProperty(t,o,zt)}(e,i,o)}))},e.prototype.refresh=function(){this.innerRefresh(),this.scroller.resetPosition()},e.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},e.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},e.prototype.destroy=function(){this.scroller.destroy(),this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy)},e.prototype.eventRegister=function(t){this.registerType(t)},e.version="2.0.0",e.plugins=[],e.pluginsMap={},e}(Vt);
|
|
6
|
+
*/()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}var l=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function h(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var o,i=(o=function(e){return e.original===t},e.filter(o)[0]);if(i)return i.copy;var n=Array.isArray(t)?[]:{};return e.push({original:t,copy:n}),Object.keys(t).forEach((function(o){n[o]=h(t[o],e)})),n}function u(t,e){Object.keys(t).forEach((function(o){return e(t[o],o)}))}function d(t){return null!==t&&"object"==typeof t}var p=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var o=t.state;this.state=("function"==typeof o?o():o)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(t,e){this._children[t]=e},p.prototype.removeChild=function(t){delete this._children[t]},p.prototype.getChild=function(t){return this._children[t]},p.prototype.hasChild=function(t){return t in this._children},p.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},p.prototype.forEachChild=function(t){u(this._children,t)},p.prototype.forEachGetter=function(t){this._rawModule.getters&&u(this._rawModule.getters,t)},p.prototype.forEachAction=function(t){this._rawModule.actions&&u(this._rawModule.actions,t)},p.prototype.forEachMutation=function(t){this._rawModule.mutations&&u(this._rawModule.mutations,t)},Object.defineProperties(p.prototype,f);var m,v=function(t){this.register([],t,!1)};function g(t,e,o){if(e.update(o),o.modules)for(var i in o.modules){if(!e.getChild(i))return;g(t.concat(i),e.getChild(i),o.modules[i])}}v.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},v.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,o){return t+((e=e.getChild(o)).namespaced?o+"/":"")}),"")},v.prototype.update=function(t){g([],this.root,t)},v.prototype.register=function(t,e,o){var i=this;void 0===o&&(o=!0);var n=new p(e,o);0===t.length?this.root=n:this.get(t.slice(0,-1)).addChild(t[t.length-1],n);e.modules&&u(e.modules,(function(e,n){i.register(t.concat(n),e,o)}))},v.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),o=t[t.length-1],i=e.getChild(o);i&&i.runtime&&e.removeChild(o)},v.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),o=t[t.length-1];return!!e&&e.hasChild(o)};var y=function(t){var e=this;void 0===t&&(t={}),!m&&"undefined"!=typeof window&&window.Vue&&P(window.Vue);var o=t.plugins;void 0===o&&(o=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new v(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var n=this,r=this.dispatch,s=this.commit;this.dispatch=function(t,e){return r.call(n,t,e)},this.commit=function(t,e,o){return s.call(n,t,e,o)},this.strict=i;var a=this._modules.root.state;_(this,a,[],this._modules.root),T(this,a),o.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:m.config.devtools)&&function(t){l&&(t._devtoolHook=l,l.emit("vuex:init",t),l.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){l.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){l.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},b={state:{configurable:!0}};function w(t,e,o){return e.indexOf(t)<0&&(o&&o.prepend?e.unshift(t):e.push(t)),function(){var o=e.indexOf(t);o>-1&&e.splice(o,1)}}function k(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var o=t.state;_(t,o,[],t._modules.root,!0),T(t,o,e)}function T(t,e,o){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var n=t._wrappedGetters,r={};u(n,(function(e,o){r[o]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,o,{get:function(){return t._vm[o]},enumerable:!0})}));var s=m.config.silent;m.config.silent=!0,t._vm=new m({data:{$$state:e},computed:r}),m.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(t),i&&(o&&t._withCommit((function(){i._data.$$state=null})),m.nextTick((function(){return i.$destroy()})))}function _(t,e,o,i,n){var r=!o.length,s=t._modules.getNamespace(o);if(i.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=i),!r&&!n){var a=E(e,o.slice(0,-1)),c=o[o.length-1];t._withCommit((function(){m.set(a,c,i.state)}))}var l=i.context=function(t,e,o){var i=""===e,n={dispatch:i?t.dispatch:function(o,i,n){var r=S(o,i,n),s=r.payload,a=r.options,c=r.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:i?t.commit:function(o,i,n){var r=S(o,i,n),s=r.payload,a=r.options,c=r.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(n,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var o={},i=e.length;Object.keys(t.getters).forEach((function(n){if(n.slice(0,i)===e){var r=n.slice(i);Object.defineProperty(o,r,{get:function(){return t.getters[n]},enumerable:!0})}})),t._makeLocalGettersCache[e]=o}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return E(t.state,o)}}}),n}(t,s,o);i.forEachMutation((function(e,o){!function(t,e,o,i){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){o.call(t,i.state,e)}))}(t,s+o,e,l)})),i.forEachAction((function(e,o){var i=e.root?o:s+o,n=e.handler||e;!function(t,e,o,i){(t._actions[e]||(t._actions[e]=[])).push((function(e){var n,r=o.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(n=r)&&"function"==typeof n.then||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))}(t,i,n,l)})),i.forEachGetter((function(e,o){!function(t,e,o,i){if(t._wrappedGetters[e])return;t._wrappedGetters[e]=function(t){return o(i.state,i.getters,t.state,t.getters)}}(t,s+o,e,l)})),i.forEachChild((function(i,r){_(t,e,o.concat(r),i,n)}))}function E(t,e){return e.reduce((function(t,e){return t[e]}),t)}function S(t,e,o){return d(t)&&t.type&&(o=e,e=t,t=t.type),{type:t,payload:e,options:o}}function P(t){m&&t===m||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:o});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[o].concat(t.init):o,e.call(this,t)}}function o(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(m=t)}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(t){},y.prototype.commit=function(t,e,o){var i=this,n=S(t,e,o),r=n.type,s=n.payload,a={type:r,payload:s},c=this._mutations[r];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,i.state)})))},y.prototype.dispatch=function(t,e){var o=this,i=S(t,e),n=i.type,r=i.payload,s={type:n,payload:r},a=this._actions[n];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,o.state)}))}catch(t){}var c=a.length>1?Promise.all(a.map((function(t){return t(r)}))):a[0](r);return new Promise((function(t,e){c.then((function(e){try{o._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,o.state)}))}catch(t){}t(e)}),(function(t){try{o._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,o.state,t)}))}catch(t){}e(t)}))}))}},y.prototype.subscribe=function(t,e){return w(t,this._subscribers,e)},y.prototype.subscribeAction=function(t,e){return w("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},y.prototype.watch=function(t,e,o){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,o)},y.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},y.prototype.registerModule=function(t,e,o){void 0===o&&(o={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),_(this,this.state,t,this._modules.get(t),o.preserveState),T(this,this.state)},y.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var o=E(e.state,t.slice(0,-1));m.delete(o,t[t.length-1])})),k(this)},y.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},y.prototype.hotUpdate=function(t){this._modules.update(t),k(this,!0)},y.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(y.prototype,b);var C=I((function(t,e){var o={};return D(e).forEach((function(e){var i=e.key,n=e.val;o[i]=function(){var e=this.$store.state,o=this.$store.getters;if(t){var i=F(this.$store,"mapState",t);if(!i)return;e=i.context.state,o=i.context.getters}return"function"==typeof n?n.call(this,e,o):e[n]},o[i].vuex=!0})),o})),x=I((function(t,e){var o={};return D(e).forEach((function(e){var i=e.key,n=e.val;o[i]=function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];var i=this.$store.commit;if(t){var r=F(this.$store,"mapMutations",t);if(!r)return;i=r.context.commit}return"function"==typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}})),o})),O=I((function(t,e){var o={};return D(e).forEach((function(e){var i=e.key,n=e.val;n=t+n,o[i]=function(){if(!t||F(this.$store,"mapGetters",t))return this.$store.getters[n]},o[i].vuex=!0})),o})),M=I((function(t,e){var o={};return D(e).forEach((function(e){var i=e.key,n=e.val;o[i]=function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];var i=this.$store.dispatch;if(t){var r=F(this.$store,"mapActions",t);if(!r)return;i=r.context.dispatch}return"function"==typeof n?n.apply(this,[i].concat(e)):i.apply(this.$store,[n].concat(e))}})),o}));function D(t){return function(t){return Array.isArray(t)||d(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function I(t){return function(e,o){return"string"!=typeof e?(o=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,o)}}function F(t,e,o){return t._modulesNamespaceMap[o]}function L(t,e,o){var i=o?t.groupCollapsed:t.group;try{i.call(t,e)}catch(o){t.log(e)}}function B(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function $(){var t=new Date;return" @ "+A(t.getHours(),2)+":"+A(t.getMinutes(),2)+":"+A(t.getSeconds(),2)+"."+A(t.getMilliseconds(),3)}function A(t,e){return o="0",i=e-t.toString().length,new Array(i+1).join(o)+t;var o,i}var N,R={Store:y,install:P,version:"3.6.2",mapState:C,mapMutations:x,mapGetters:O,mapActions:M,createNamespacedHelpers:function(t){return{mapState:C.bind(null,t),mapGetters:O.bind(null,t),mapMutations:x.bind(null,t),mapActions:M.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var o=t.filter;void 0===o&&(o=function(t,e,o){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var n=t.mutationTransformer;void 0===n&&(n=function(t){return t});var r=t.actionFilter;void 0===r&&(r=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var a=t.logMutations;void 0===a&&(a=!0);var c=t.logActions;void 0===c&&(c=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var u=h(t.state);void 0!==l&&(a&&t.subscribe((function(t,r){var s=h(r);if(o(t,u,s)){var a=$(),c=n(t),d="mutation "+t.type+a;L(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",i(u)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),B(l)}u=s})),c&&t.subscribeAction((function(t,o){if(r(t,o)){var i=$(),n=s(t),a="action "+t.type+i;L(l,a,e),l.log("%c action","color: #03A9F4; font-weight: bold",n),B(l)}})))}}},z={name:"Map",props:{project:String},computed:n({},C(["currentFloor"])),mounted:function(){this.load()},methods:n(n({},M(["updateData","setWayfinder"])),{},{load:function(){var t=this;console.log("load2","undefined"==typeof Wayfinder2D?"undefined":r(Wayfinder2D),"undefined"==typeof Wayfinder2D?"undefined":r(Wayfinder2D)),N="undefined"!=typeof WF_MAP_TYPE&&"2d"==WF_MAP_TYPE?new Wayfinder2D:new Wayfinder3D,o.default.prototype.$wayfinder=N,o.default.directive("wf-translate",{bind:function(t,e,o){if(N){var i="string"==typeof e.value?e.value:e.expression;t.setAttribute("data-translation-element",i),N.translator.translateElement(i,t)}}}),N.options.assetsLocation="//static.3dwayfinder.com/shared/",N.options.project=this.project||"demo",N.open();var e=this,i=1e3*N.settings.getInt("path.message.duration",5);N.events.on("data-loaded",(function(){console.log("data-loaded",e.loaded),e.loaded||(e.$store.dispatch("SET_CURRENT_FLOOR",N.getCurrentFloor()),e.$store.dispatch("SET_INACTIVITY_TIME",N.settings.getInt("kiosk.max-inactivity",30)),e.update(N),e.$store.dispatch("SET_INACTIVITY_TIME",N.settings.getInt("kiosk.max-inactivity",30)),e.$emit("loaded"))})),N.events.on("map-ready",(function(){N.resize()})),N.events.on("language-change",(function(){t.update(N)})),N.events.on("floor-change-before",(function(e,o,i){t.pathText=N.translator.get("go_to_floor",[e.getName(N.getLanguage()),i.getName(N.getLanguage()),o.getName(N.getLanguage())]),t.showPathText=!0})),N.events.on("floor-change",(function(e){e&&(t.$store.dispatch("SET_CURRENT_FLOOR",e),t.$emit("onTouch")),t.showPathText&&setTimeout((function(){t.showPathText=!1}),i)})),N.events.on("map-click",(function(e){e&&(t.$emit("poiClicked",e,!0),N.statistics.onClick(e.id,"map"))})),N.events.on("map-touch",(function(){t.$emit("onTouch")})),window.addEventListener("resize",(function(){N&&N.resize()}))},update:function(){for(var t in this.$store._wrappedGetters)this.$store._wrappedGetters[t](this.$store.state);o.default.prototype.$wayfinder.update(),o.default.prototype.$wayfinder.resize(),o.default.prototype.$wayfinder.translator.translate()},reset:function(){N.restoreDefaultState()},start:function(){N.run(),N.statistics.onSessionStart()},pause:function(){N.pause(),N.statistics.onSessionEnd()},run:function(){N.run()},visibilityChanged:function(t){o.default.prototype.$wayfinder.resize()}}),data:function(){return{loaded:!1,showPathText:!1,pathText:""}}};function j(t,e,o,i,n,r,s,a,c,l){"boolean"!=typeof s&&(c=a,a=s,s=!1);const h="function"==typeof o?o.options:o;let u;if(t&&t.render&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0,n&&(h.functional=!0)),i&&(h._scopeId=i),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},h._ssrRegister=u):e&&(u=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),u)if(h.functional){const t=h.render;h.render=function(e,o){return u.call(o),t(e,o)}}else{const t=h.beforeCreate;h.beforeCreate=t?[].concat(t,u):[u]}return o}const H="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function Y(t){return(t,e)=>function(t,e){const o=H?e.media||"default":t,i=X[o]||(X[o]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let o=e.source;if(e.map&&(o+="\n/*# sourceURL="+e.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===W&&(W=document.head||document.getElementsByTagName("head")[0]),W.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(o),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(o),n=i.element.childNodes;n[t]&&i.element.removeChild(n[t]),n.length?i.element.insertBefore(e,n[t]):i.element.appendChild(e)}}}(t,e)}let W;const X={};var G=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.visibilityChanged,expression:"visibilityChanged"}],staticClass:"map-container"},[o("canvas",{attrs:{id:"map"}}),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.showPathText,expression:"showPathText"}],staticClass:"map-path-text"},[t._v(t._s(t.pathText))])])},staticRenderFns:[]},(function(t){t&&t("data-v-03b6737b_0",{source:".map-container[data-v-03b6737b]{position:relative;width:100%;height:100%}.map-container canvas[data-v-03b6737b]{width:100%;height:100%}.map-container .map-path-text[data-v-03b6737b]{margin-top:50%;width:20rem;text-align:center;background-color:#fff;position:absolute;bottom:15%;margin:auto;left:50%;margin-left:-10rem;padding:.5rem;font-size:2rem;font-weight:600;text-transform:uppercase}.map-container .map-shadow[data-v-03b6737b]{position:absolute;bottom:-1px;width:100%;height:9rem}.currentFloor[data-v-03b6737b]{color:#fff;font-size:9rem;position:absolute;font-weight:800;text-shadow:.1rem .1rem .3rem #666;text-align:center;width:8rem;top:0;right:1rem}",map:void 0,media:void 0})}),z,"data-v-03b6737b",false,undefined,!1,Y,void 0,void 0),V=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.poi?o("div",{staticClass:"poi"},[t.showLogo?o("div",{staticClass:"poi-image",class:[t.isImage()],style:{"background-image":t.getImage()}}):t._e(),t._v(" "),t.showName?o("div",{staticClass:"poi-name",domProps:{innerHTML:t._s(t.poi.getName(t.language)||"POI")}}):t._e(),t._v(" "),t.showPathButton?o("div",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.showPath,expression:"showPath",arg:"tap"}],staticClass:"show-path"},[o("button",{staticClass:"button secondary round button-small"},[o("span",{attrs:{"data-translation-element":"show_path"}},[t._v(t._s(t.show_path))]),t._v(" "),o("i",{staticClass:"icon icon-pin"})])]):t._e(),t._v(" "),t.showDescription?o("div",{staticClass:"poi-description",domProps:{innerHTML:t._s(t.poi.getDescription(t.language)||"")}}):t._e(),t._v(" "),t.showRoomID?o("div",{staticClass:"poi-description",domProps:{innerHTML:t._s(t.poi.room_id||"")}}):t._e(),t._v(" "),t.showFloor&&t.poi.getFloor()?o("div",{staticClass:"poi-floor",domProps:{innerHTML:t._s(t.poi.getFloor().getName(t.language)||"")}}):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-12662bbb_0",{source:".layout-view[data-v-12662bbb]{display:flex;flex-direction:column;justify-content:space-between;height:100%}.poi-info[data-v-12662bbb]{padding:1rem}.poi-info h2[data-v-12662bbb]{text-align:center;margin-top:1.5rem;margin-bottom:1.5rem}.poi-body[data-v-12662bbb]{box-shadow:0 -2px 1px 0 rgba(0,0,0,.05);padding:1rem;flex-grow:1}.poi-image[data-v-12662bbb]{height:14rem;width:100%;background-position:50% 50%;background-size:contain;background-repeat:no-repeat}.poi-image.image-background[data-v-12662bbb]{background-size:cover}.show-path[data-v-12662bbb]{bottom:1rem;right:1rem;text-transform:uppercase;z-index:10;line-height:2.8rem;margin-bottom:1.5rem}.show-path button[data-v-12662bbb]{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-12662bbb]{line-height:1.2}.poi-contact .address[data-v-12662bbb]{font-weight:600;margin-bottom:.5rem}.poi-contact .address span[data-v-12662bbb]{padding-top:4px;vertical-align:top;display:inline-block}.poi-contact .address a[data-v-12662bbb]{text-decoration:none;display:block;line-height:1.5}.poi-contact .address .icon[data-v-12662bbb]:before{mix-blend-mode:initial;color:#fff}",map:void 0,media:void 0})}),{name:"POI",computed:n({},C(["language"])),props:{poi:{type:Object,default:null},showLogo:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},showPathButton:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1},showRoomID:{type:Boolean,default:!1},showFloor:{type:Boolean,default:!1}},watch:{language:function(){wayfinder&&(this.show_path=this.$wayfinder.translator.get("show_path"))}},methods:{update:function(t){if(wayfinder.pois[t]&&(this.poi=Object.freeze(wayfinder.pois[t]),this.language=wayfinder.getLanguage(),this.$emit("titleChanged",this.poi.getName(wayfinder.getLanguage())),this.description=this.poi.getDescription(wayfinder.getLanguage())?this.poi.getDescription(wayfinder.getLanguage()):"",this.poi.shop_logo)){var e=this;window.requestAnimationFrame((function(){e.$app.getImage(e.poi.shop_logo).then((function(t){e.logo=t.url}))}))}},showPath:function(){this.poi&&this.$emit("showPath",this.poi)},open:function(t){t&&this.poi[t]&&("shop_email"===t?window.open("mailto:"+this.poi[t],"_system"):"shop_phone"===t?window.open("tel:"+this.poi[t],"_system"):window.open(this.poi[t],"_system"))},getImage:function(){return this.poi.getBackgroundUrl()?'url("'+this.poi.getBackgroundUrl()+'")':!!this.poi.getIconUrl()&&'url("'+this.poi.getIconUrl()+'")'},isImage:function(){return this.poi.getBackgroundUrl()?"image-background":this.poi.getIconUrl()?"image-logo":"image-none"},truncate:function(t,e){return t&&t.length>e?t.substring(0,e)+"...":t}},data:function(){return{show_path:"Show Path"}}},"data-v-12662bbb",false,undefined,!1,Y,void 0,void 0),U=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"az-menu"},[o("ul",{staticClass:"list"},t._l(t.sortedPOIs,(function(e){return o("li",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.onClick(e),expression:"onClick(poiitem)",arg:"tap"}],key:e.id,staticClass:"item list-item",class:{active:t.currentPOI&&e.id==t.currentPOI.id},on:{click:function(o){return t.onClick(e)}}},[t._t("default",(function(){return[o("POI",{attrs:{poi:e,showLogo:t.showLogo,showName:t.showName,showPathButton:t.showPathButton,showDescription:t.showDescription,showRoomID:t.showRoomID,showFloor:t.showFloor}})]}),{poi:e})],2)})),0)])},staticRenderFns:[]},undefined,{name:"AZMenu",components:{POI:V},props:{showLogo:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},showPathButton:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1},showRoomID:{type:Boolean,default:!1},showFloor:{type:Boolean,default:!1},currentPOI:{type:Object,default:null}},computed:n(n({},C(["pois","language"])),{},{sortedPOIs:function(){var t=this,e=this.pois.slice().filter((function(t){return t&&t.getShowInMenu()}));return e=e.sort((function(e,o){return e.getName(t.language)&&o.getName(t.language)?e.getName(t.language).localeCompare(o.getName(t.language)):0}))}}),methods:{onClick:function(t){var e=this;return function(){e.$emit("clicked",t),e.$wayfinder.statistics.onClick(t.id,"menu")}}}},"data-v-2e32f9f2",false,undefined,!1,void 0,void 0,void 0),K=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"languages-container",class:{active:t.active}},[t.showTitle?o("div",{staticClass:"languages-container-select"},[t._v("Select language")]):t._e(),t._v(" "),o("div",{staticClass:"list"},t._l(t.languages,(function(e,i){return o("div",{key:i,class:["item","language","lang-"+e.getName(),{active:e.getName()==t.language,display:t.active}],on:{click:function(o){return t.changeLanguage(e)}}},[t.showFlag?o("div",{staticClass:"flag",style:{backgroundImage:"url("+t.getFlagImage(e.flagImage)+")"}}):t._e(),t._v(" "),"code"==t.labelType?o("label",[t._v(t._s(e.getName()))]):t._e(),t._v(" "),"native"==t.labelType?o("label",[t._v(t._s(e.getNativeName()))]):t._e()])})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-7fd08900_0",{source:".languages-container.active[data-v-7fd08900]{height:fit-content;z-index:10}.languages-container.active .languages-container-select[data-v-7fd08900]{visibility:initial;opacity:1}.languages-container .languages-container-select[data-v-7fd08900]{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-7fd08900]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.languages-container .language .active[data-v-7fd08900]{height:3.5rem;margin-bottom:1rem}.languages-container .language .display[data-v-7fd08900]{height:3.5rem;margin-bottom:1.5rem}",map:void 0,media:void 0})}),{name:"FlagsMenu",computed:n({},C(["languages","language","reset"])),props:{showTitle:{type:Boolean,default:!0},showFlag:{type:Boolean,default:!0},labelType:{type:String,default:"none"}},data:function(){return{active:!1}},methods:{changeLanguage:function(t){this.$wayfinder.setLanguage(t.name)},getFlagImage:function(t){return WayfinderAPI.getURL("images","thumbnail",[t])}},watch:{reset:function(){this.active=!1}}},"data-v-7fd08900",false,undefined,!1,Y,void 0,void 0),q=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"topics-menu"},[o("ul",{staticClass:"list"},t._l(t.sortedGroups,(function(e){return o("li",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.onClick(e),expression:"onClick(topic)",arg:"tap"}],key:e.id,staticClass:"item list-item",class:{active:t.currentGroup&&e.id==t.currentGroup.id}},[o("div",{staticClass:"item-content"},[o("label",{staticClass:"name",domProps:{innerHTML:t._s(e.getName(t.language))}}),t._v(" "),t.showPOICount?o("label",{staticClass:"count"},[t._v(t._s(e.pois.length))]):t._e()]),t._v(" "),e.childGroups.length>0&&t.showSubGroups?o("ul",{directives:[{name:"show",rawName:"v-show",value:t.currentGroup&&e.id==t.currentGroup.id,expression:"currentGroup && topic.id == currentGroup.id"}]},t._l(t.subGroups(e.childGroups),(function(e){return o("li",{key:e.id},[o("label",{staticClass:"name",domProps:{innerHTML:t._s(e.getName(t.language))}}),t._v(" "),t.showPOICount?o("label",{staticClass:"count"},[t._v(t._s(e.pois.length))]):t._e()])})),0):t._e(),t._v(" "),e.pois.length>0&&t.showPOIs?o("ul",{directives:[{name:"show",rawName:"v-show",value:t.currentGroup&&e.id==t.currentGroup.id,expression:"currentGroup && topic.id == currentGroup.id"}],staticClass:"list sublist"},t._l(e.pois,(function(e){return o("li",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.onPOICLick(e),expression:"onPOICLick(poi)",arg:"tap"}],key:e.id,staticClass:"item list-item"},[o("label",{staticClass:"name",domProps:{innerHTML:t._s(e.getName(t.language))}})])})),0):t._e()])})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-6c5ea2fc_0",{source:".az-menu[data-v-6c5ea2fc]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-6c5ea2fc]{list-style:none}.az-menu ul[data-v-6c5ea2fc]{margin:0;padding:0}",map:void 0,media:void 0})}),{name:"GroupsMenu",props:{showPOICount:{type:Boolean,default:!1},az:{type:Boolean,default:!1},showSubGroups:{type:Boolean,default:!0},showPOIs:{type:Boolean,default:!1}},data:function(){return{}},computed:n(n({},C(["poiGroups","currentGroup","language"])),{},{sortedGroups:function(){var t,e=this,o=[];for(var i in this.poiGroups)(t=this.poiGroups[i])&&t.getShowInMenu()&&t.getName(this.language)&&o.push(t);return this.az?o.sort((function(t,o){return t&&t.getName(e.language)&&o&&o.getName(e.language)?t.getName(e.language).localeCompare(o.getName(e.language),e.language,{sensitivity:"accent"}):0})):o}}),methods:{onClick:function(t){var e=this;return function(){e.$emit("clicked",t)}},onPOICLick:function(t){var e=this;return function(){e.$emit("poiClicked",t)}},reset:function(){this.$store.dispatch("SET_CURRENT_GROUP",!1)},subGroups:function(t){if(t){var e=[];for(var o in t)e.push(this.poiGroups[o]);return e}return[]}}},"data-v-6c5ea2fc",false,undefined,!1,Y,void 0,void 0),Z=j({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"building-logo",style:{"background-image":t.getLogo()}})},staticRenderFns:[]},(function(t){t&&t("data-v-992e7498_0",{source:".building-logo[data-v-992e7498]{background-size:contain;background-repeat:no-repeat;background-position:50%}",map:void 0,media:void 0})}),{name:"BuildingLogo",computed:n({},C(["building"])),methods:{getLogo:function(){if(this.building&&this.building.logoID)return"url("+WayfinderAPI.getURL("images","get",this.building.logoID)+")"}}},"data-v-992e7498",false,undefined,!1,Y,void 0,void 0),Q=j({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"yah-logo",style:{"background-image":t.yahLogo},attrs:{"data-translation-element":"yah"},on:{click:function(e){return t.onClicked()}}},[t._v("\n\tYAH\n")])},staticRenderFns:[]},(function(t){t&&t("data-v-727b50d6_0",{source:".yah-logo[data-v-727b50d6]{background-repeat:no-repeat;font-weight:600;text-align:center;margin-right:.5rem;text-transform:uppercase;border:none;outline:0}",map:void 0,media:void 0})}),{name:"YAH",computed:n({},C(["yahLogo","language"])),methods:{onClicked:function(){this.$wayfinder.showKiosk()}}},"data-v-727b50d6",false,undefined,!1,Y,void 0,void 0),J=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"shortcuts-container"},t._l(t.sortedShortcuts,(function(e,i){return o("div",{key:i,staticClass:"item shortcut",class:["shortcut-"+e.getID()],style:{backgroundImage:"url("+t.getImage(e.imageID)+")"},on:{click:function(o){return t.showShortcut(e)}}},[t.showLabel?o("label",[t._v(t._s(e.getName(t.language)))]):t._e()])})),0)},staticRenderFns:[]},(function(t){t&&t("data-v-0f461fc8_0",{source:".shortcuts-container[data-v-0f461fc8]{display:flex;flex-wrap:wrap-reverse;align-content:stretch;justify-content:space-between;margin-bottom:.1rem;flex-direction:row}.shortcuts-container.map-shortcuts[data-v-0f461fc8]{position:absolute;left:.5rem;bottom:15%;top:15%;flex-direction:column;justify-content:center}",map:void 0,media:void 0})}),{name:"ShortcutsMenu",components:{YAH:Q},props:{showLabel:{type:Boolean,default:!0},showPath:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},dehighlightOverlay:{type:Boolean,default:!1}},computed:n(n({},C(["shortcuts","language","landscape","mobile"])),{},{sortedShortcuts:function(){var t=this.shortcuts.sort((function(t,e){return 1}));return t}}),methods:{showShortcut:function(t){var e=this.$wayfinder.getNearestPOI(this.$wayfinder.getKiosk(),t.pois);this.showPath&&"object"===r(e)&&null!=e&&this.$wayfinder.showPath(e.node,e),this.highlight&&(this.$wayfinder.clearDisplaying(),this.$wayfinder.setDisplaying(t.pois)),this.dehighlightOverlay&&this.$wayfinder.setDehighlightOverlay&&this.$wayfinder.setDehighlightOverlay(!0),this.$wayfinder.update(),this.$emit("clicked",e,t)},clear:function(){this.dehighlightOverlay&&this.$wayfinder.setDehighlightOverlay&&this.$wayfinder.setDehighlightOverlay(!1),this.highlight&&this.$wayfinder.clearHighlights(),this.$wayfinder.update()},getImage:function(t){return WayfinderAPI.getURL("images","thumbnail",[t])}}},"data-v-0f461fc8",false,undefined,!1,Y,void 0,void 0),tt=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"wf-zoommenu"},[o("div",{staticClass:"item in",on:{click:function(e){return t.zoomIn()}}},[t._v("+")]),t._v(" "),o("div",{staticClass:"item out",on:{click:function(e){return t.zoomOut()}}},[t._v("-")])])},staticRenderFns:[]},undefined,{methods:{zoomIn:function(){this.$wayfinder.zoomIn()},zoomOut:function(){this.$wayfinder.zoomOut()}}},undefined,false,undefined,!1,void 0,void 0,void 0),et=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"map-floors-container"},[o("div",{staticClass:"map-floors list"},t._l(t.floors,(function(e){return e.showInMenu?o("div",{key:e.id,staticClass:"item list-item",class:["lang-"+t.language,"floor-"+e.index,{active:e==t.currentFloor}],on:{click:function(o){return t.changeFloor(e)}}},[o("label",{staticClass:"title"},[t._v(t._s(e.getName(t.language)))]),t._v(" "),t.showPOICount?o("label",{staticClass:"count"},[t._v(t._s(e.pois.length))]):t._e()]):t._e()})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-59428f73_0",{source:".map-floors[data-v-59428f73]{display:flex;flex-direction:column;justify-content:flex-end}.map-floors .item[data-v-59428f73]{border:none;text-overflow:ellipsis;position:relative;text-align:center;margin-left:auto;overflow:hidden}",map:void 0,media:void 0})}),{name:"MapFloors",props:{showPOICount:{type:Boolean,default:!1},currentFloor:{type:Object,default:!1}},computed:n({},C(["floors","language"])),methods:{changeFloor:function(t){this.$emit("clicked",t)}}},"data-v-59428f73",false,undefined,!1,Y,void 0,void 0),ot=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"filteredmenu"},[o("ul",{staticClass:"list"},t._l(t.sortedPOIs,(function(e){return o("li",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.onClick(e),expression:"onClick(poiitem)",arg:"tap"}],key:e.id,staticClass:"item list-item",class:{active:t.currentPOI&&e.id==t.currentPOI.id},on:{click:function(o){return t.onClick(e)}}},[t._t("default",(function(){return[o("POI",{attrs:{poi:e,showLogo:t.showLogo,showName:t.showName,showPathButton:t.showPathButton,showDescription:t.showDescription,showRoomID:t.showRoomID,showFloor:t.showFloor}})]}),{poi:e})],2)})),0)])},staticRenderFns:[]},undefined,{name:"FilteredMenu",components:{POI:V},data:function(){return{sortedPOIs:[]}},props:{showLogo:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},showPathButton:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1},showRoomID:{type:Boolean,default:!1},showFloor:{type:Boolean,default:!1},currentPOI:{type:Object,default:null}},computed:n({},C(["filteredPOIs","language"])),watch:{filteredPOIs:function(t){var e=this,o=t.slice().filter((function(t){return t&&t.getShowInMenu()}));o=o.sort((function(t,o){return t.getName(e.language)&&o.getName(e.language)?t.getName(e.language).localeCompare(o.getName(e.language)):0})),this.sortedPOIs=o}},methods:{onClick:function(t){var e=this;return function(){e.$emit("clicked",t),e.$wayfinder.statistics.onClick(t.id,"menu")}}}},"data-v-6aea7e57",false,undefined,!1,void 0,void 0,void 0);var it,nt,rt=(function(t){t.exports=function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e,o){o.r(e);class i{constructor(t){this.keyboard=t,this.actions={backspace:function(t,e){e.selectionStart>0&&e.selectionStart==e.selectionEnd?(e.selectionStart--,e.changeValue("")):e.changeValue("")},change_keyset:function(t,e){void 0!==t.action[1]&&(e.keyset=t.action[1],e.clear(),e.construct())},change_layout:function(t,e){void 0!==t.action[1]&&(e.layoutName=t.action[1],e.clear(),e.construct())},submit:function(t,e){void 0!==t.action[1]&&(e.pushtoOutput(),e.clear())}}}activate(t){"function"==typeof this.actions[t.action[0]]&&this.actions[t.action[0]](t,this.keyboard)}addAction(t,e){this.actions[t]=e}}class n{constructor(t,e,o){this.layouts={},this.layoutName=void 0===o?"en":o,this.keyset="default",this.container=!1,this.containerListenerAdded=!1,this.setContainer(e),this.selectionStart=0,this.selectionEnd=0,this.output=!1,this.outputIsInputField=!0,this.value="",this.events={change:[],layout:[],ready:[]},this.actions=new i(this),this.cbOnChange=!1,this.setOutput(t),this.setDefaultLayout(),this.construct()}on(t,e){"object"!=typeof this.events[t]&&(this.events[t]=[]),this.events[t].push(e)}trigger(){let t=Array.prototype.slice.call(arguments);if(t.length>0){let e=t[0];if(t.shift(),this.events[e]){let o;for(let i=0,n=this.events[e].length;i<n;i++)"function"==typeof(o=this.events[e][i])&&o.apply(this,t)}}}addLayout(t,e){this.layouts[t]=e}changeLayout(t,e){this.layoutName=t,this.keyset=e||"default",this.clear(),this.construct(),this.trigger("layout",this.layoutName,this.keyset)}setContainer(t){switch(typeof t){case"undefined":this.container=document.createElement("div"),this.container.classList.add("keyboard"),document.body.appendChild(this.container);break;case"string":this.container=document.getElementById(t);break;default:this.container=t}}setOutput(t){if("string"==typeof t){if(this.output=document.getElementById(t),!this.output)return void console.warn("Input field not found",t);"input"!==this.output.tagName.toLowerCase()&&(this.outputIsInputField=!1)}else this.output=t;this.output&&(this.output.addEventListener("focus",(()=>{this.updateFromOutput()})),this.output.addEventListener("keyup",(()=>{this.updateFromOutput(),this.trigger("change",this.value)})),this.output.addEventListener("mouseup",(()=>{this.updateFromOutput()})),this.output.addEventListener("input",(()=>{this.updateFromOutput()})))}updateFromOutput(){this.outputIsInputField?this.value=this.output.value:this.value=this.output.innerText,this.getCaretPosition()}clear(){for(;this.container.firstChild;)this.container.removeChild(this.container.firstChild)}clearValue(){this.value="",this.selectionStart=0,this.selectionEnd=0}getCurrentKeyset(){try{return this.layouts[this.layoutName].keys[this.keyset]}catch(t){return console.warn("Error! Probably no keyboard layout added!"),this.layouts.en.keys.default}}construct(){this.clear();let t="",e=this.getCurrentKeyset();for(let o in e){t+="<div class='keyboard-row keyboard-row-"+o+"'>";for(let i in e[o]){let n=e[o][i];switch(typeof n){case"string":t+="<div class='keyboard-key "+n+"' row='"+o+"' index='"+i+"'>"+n+"</div>";break;case"object":let e="";n.cls&&(e=n.cls),t+="<div class='keyboard-key keyboard-"+e+" "+n.key+"' object='' row='"+o+"' index='"+i+"'>"+n.key+"</div>"}}t+="</div>"}this.container.insertAdjacentHTML("beforeend",t),this.containerListenerAdded||(this.container.addEventListener("mousedown",(t=>{this.getCaretPosition(),this.keyPressed(t.target),t.stopPropagation(),t.preventDefault()})),this.container.addEventListener("mouseup",(t=>{this.keyReleased(t.target),t.stopPropagation()})),this.containerListenerAdded=!0,this.container.onselectstart=function(){return!1},this.container.onmousedown=function(){return!1}),this.rescale()}rescale(){let t,e,o=0;for(let i=0;i<this.container.children.length;i++){let n=(t=this.container.children[i]).offsetHeight-t.clientHeight,r=t.offsetWidth-t.clientWidth;for(let o=0;o<t.children.length;o++)r+=((e=t.children[o]).offsetWidth<this.container.offsetWidth?e.offsetWidth:this.container.offsetWidth)+1,n=Math.max(n,this.container.offsetHeight);t.width=r,t.height=n,o+=n}this.container.height=o,this.trigger("ready")}keyPressed(t){t.classList.add("keyboard-key-pressed");let e=this.getCurrentKeyset()[t.getAttribute("row")];if(!e)return;let o=e[t.getAttribute("index")];switch(typeof o){case"string":this.changeValue(o);break;case"object":void 0===o.action?this.changeValue(o.key):this.actions.activate(o)}this.pushtoOutput()}changeValue(t){let e=this.value.substring(0,this.selectionStart),o=this.value.substring(this.selectionEnd,this.value.length);this.value=""+e+t+o,this.selectionStart+=t.length,this.selectionEnd=this.selectionStart}pushtoOutput(){if(this.output){this.outputIsInputField?(this.output.value=this.value,this.output.selectionStart=this.selectionStart,this.output.selectionEnd=this.selectionEnd):this.output.innerHTML=this.value;let t=new Event("change"),e=new Event("keyup");this.output.dispatchEvent(t),this.output.dispatchEvent(e),this.trigger("change",this.value)}}getCaretPosition(){this.output&&this.outputIsInputField&&(this.selectionStart=this.output.selectionStart,this.selectionEnd=this.output.selectionEnd)}keyReleased(t){t.classList.remove("keyboard-key-pressed")}width(){return-1}height(){return-1}setDefaultLayout(){this.layouts.en={name:"English",keyboard:"US International",local_name:"English",lang:"en",keys:{default:[["1","2","3","4","5","6","7","8","9","0",{key:"« Bksp",action:["backspace"],cls:"key2x"}],["q","w","e","r","t","y","u","i","o","p","\\"],["a","s","d","f","g","h","j","k","l",{key:"Enter",action:["submit"],cls:"key3x"}],[{key:"Shift",action:["change_keyset","shift"],cls:"key2x"},"z","x","c","v","b","n","m"],[{key:" ",cls:"key_spacebar"}]],shift:[["~","!","@","#","$","%","^","&","*","(",")",{key:"« Bksp",action:"backspace",cls:"key2x"}],["Q","W","E","R","T","Y","U","I","O","P","{","}"],["A","S","D","F","G","H","J","K","L",{key:"Enter",action:["submit"],cls:"key3x"}],[{key:"Shift",action:["change_keyset","default"],cls:"key2x active"},"Z","X","C","V","B","N","M","<",">","?"],[{key:" ",cls:"key_spacebar"}]]}}}}o.d(e,"OSK",(function(){return n})),o.d(e,"OSKActions",(function(){return i}))}]).OSK}(nt={path:it,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&nt.path)}},nt.exports),nt.exports),st=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"search"},[t.showCloseButton?o("div",{staticClass:"tab-button close",attrs:{"data-translation-element":"close"},on:{click:function(e){return t.close(e)}}},[t._v("Close")]):t._e(),t._v(" "),o("div",{staticClass:"search-container"},[o("div",{staticClass:"results",class:{"no-results":0==t.results.length}},[o("transition-group",{staticClass:"list",attrs:{name:"list",tag:"ul"}},t._l(t.results,(function(e){return e&&e.getShowInMenu()?o("li",{key:e.id,staticClass:"list-item",class:{active:t.currentPOI&&e.id==t.currentPOI.id},on:{click:function(o){return t.onClick(e)}}},[t._t("default",(function(){return[o("POI",{attrs:{poi:e,showLogo:t.showLogo,showName:t.showName,showPathButton:t.showPathButton,showDescription:t.showDescription,showRoomID:t.showRoomID,showFloor:t.showFloor}})]}),{poi:e})],2):t._e()})),0),t._v(" "),o("span",{directives:[{name:"show",rawName:"v-show",value:t.showNoResultsText&&0==t.results.length,expression:"showNoResultsText && results.length == 0"}]},[t._v(t._s(t.noResultsText))])],1),t._v(" "),t.showOutputField?o("div",{staticClass:"search-input-container"},[o("input",{ref:"searchInput",attrs:{id:"search-input"}})]):t._e(),t._v(" "),t.showKeyboard?o("div",{staticClass:"keyboard",attrs:{id:"keyboard-container"}}):t._e()])])},staticRenderFns:[]},(function(t){t&&t("data-v-7d8eb55c_0",{source:".search .close{position:absolute;top:0;right:.5rem;width:10rem;background-color:rgba(255,255,255,.7);background-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:cc='http://creativecommons.org/ns%23' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' enable-background='new 0 0 20 20' viewBox='0 0 20 20' y='0px' x='0px' id='Cross' version='1.1'%3E%3Cmetadata id='metadata9'%3E%3Crdf:RDF%3E%3Ccc:Work rdf:about=''%3E%3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E%3Cdc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage' /%3E%3Cdc:title%3E%3C/dc:title%3E%3C/cc:Work%3E%3C/rdf:RDF%3E%3C/metadata%3E%3Cdefs id='defs7'%3E%3ClinearGradient spreadMethod='pad' gradientUnits='userSpaceOnUse' y2='29.3118' x2='11.0536' y1='16.0077' x1='24.5509' id='paint1_linear' gradientTransform='translate(-6.9097825,12.894087)'%3E%3Cstop id='stop16' stop-color='%23FF4C54' /%3E%3Cstop id='stop18' stop-color='%23BE3F45' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient gradientUnits='userSpaceOnUse' y2='34.9828' x2='34.294201' y1='14.605' x1='13.6189' id='paint0_linear'%3E%3Cstop id='stop11' stop-color='%23FF4C54' /%3E%3Cstop id='stop13' stop-color='%23BE3F45' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient gradientTransform='matrix(1.9229845,0,0,1.9229845,-9.2288833,-9.2308069)' gradientUnits='userSpaceOnUse' y2='14.322534' x2='6.3946652' y1='7.6276183' x1='12.290775' id='linearGradient4161' xlink:href='%23paint0_linear' /%3E%3C/defs%3E%3Cpath style='fill:url(%23linearGradient4161);fill-opacity:1' id='path3' d='m 18.362098,19.32359 c -0.90188,0.90188 -2.363348,0.90188 -3.263305,0 l -5.097832,-5.826643 -5.0978311,5.82472 c -0.9018797,0.90188 -2.3633479,0.90188 -3.2633047,0 -0.90187984,-0.90188 -0.90187984,-2.363347 0,-3.263304 L 6.9434164,10.000961 1.6379022,3.9397144 c -0.90187974,-0.9018798 -0.90187974,-2.361425 0,-3.26330476 0.9018798,-0.9018797 2.3614249,-0.9018797 3.2633048,0 l 5.099754,5.82856596 5.097832,-5.82856596 c 0.90188,-0.9018797 2.361425,-0.9018797 3.263305,0 0.901879,0.90187976 0.901879,2.36334796 0,3.26330476 l -5.30359,6.0612466 5.30359,6.057402 c 0.901879,0.90188 0.901879,2.363347 0,3.265227 z' /%3E%3C/svg%3E\")}.search .results{overflow:hidden}.search .search-container{margin:auto;display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:1rem}.search .search-input-container input{margin:auto;display:block;padding:1rem;font-size:2rem;font-weight:600;width:100%;border:1px solid #000;outline:0;background-repeat:no-repeat}.search .keyboard{user-select:none;display:flex;flex-direction:column;flex-shrink:0}.search .keyboard .keyboard-row{margin:auto;display:flex}.search .keyboard .keyboard-key{text-align:center;width:4rem;height:4rem;font-size:1.8rem;line-height:4rem;overflow:hidden;user-select:none;margin-right:.5rem;margin-bottom:.5rem}.search .keyboard .keyboard-key:last-child{margin-right:0}.search .keyboard .keyboard-key:active{background-color:#00f}.search .keyboard .keyboard-key2x{width:8rem}.search .keyboard .keyboard-key3x{width:12rem}.search .keyboard .keyboard-key_spacebar{width:24rem}",map:void 0,media:void 0})}),{name:"Search",components:{OSK:rt,POI:V},computed:n({},C(["language","reset"])),props:{limit:{type:Number,default:-1},showCloseButton:{type:Boolean,default:!1},showOutputField:{type:Boolean,default:!0},showKeyboard:{type:Boolean,default:!0},showNoResultsText:{type:Boolean,default:!0},noResultsText:{type:String,default:"No results"},showLogo:{type:Boolean,default:!1},showName:{type:Boolean,default:!0},showPathButton:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1},showRoomID:{type:Boolean,default:!1},showFloor:{type:Boolean,default:!1},currentPOI:{type:Object,default:null}},data:function(){return{results:[],poi:{},keyboard:!1}},mounted:function(){var t=this;this.keyboard=new rt("search-input","keyboard-container"),this.keyboard.on("change",(function(e){var o=t.$wayfinder.search.search(e);t.limit>0&&(o=o.slice(0,t.limit)),t.results=Object.freeze(Object.assign({},o)),e.length>1&&(Object.values(t.results).length>0?t.$wayfinder.statistics.onSearch(e,"successful"):t.$wayfinder.statistics.onSearch(e,"unsuccessful"))})),this.keyboard.addLayout("en",{name:"English",keyboard:"US International",local_name:"English",lang:"en",keys:{default:[["1","2","3","4","5","6","7","8","9","0",{key:"Delete",action:["backspace"],cls:"key2x"}],["q","w","e","r","t","y","u","i","o","p"],["a","s","d","f","g","h","j","k","l"],["z","x","c","v","b","n","m"],[{key:" ",cls:"key_spacebar"}]]}}),this.keyboard.changeLayout(this.language)},watch:{searchVisible:function(t){t&&this.$refs.searchInput&&this.$refs.searchInput.focus()},reset:function(){this.resetValues()},language:function(t){this.keyboard&&this.keyboard.changeLayout(t)}},methods:{onClick:function(t){this.$emit("clicked",t),this.$wayfinder.statistics.onClick(t.id,"menu")},close:function(){this.$emit("close"),this.resetValues()},resetValues:function(){this.results=[],this.keyboard.changeLayout(this.language),this.keyboard.clearValue(),this.$refs.searchInput&&(this.$refs.searchInput.value="")},setOutput:function(t){this.keyboard.setOutput(t)},addLayout:function(t,e){this.keyboard.addLayout(t,e)},changeLayout:function(t){this.keyboard.changeLayout(t)}}},undefined,false,undefined,!1,Y,void 0,void 0),at=function(t,e){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function ct(t,e){function o(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var lt=function(){return(lt=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function ht(t){console.error("[BScroll warn]: "+t)}var ut="undefined"!=typeof window,dt=ut&&navigator.userAgent.toLowerCase();dt&&/wechatdevtools/.test(dt);var pt=dt&&dt.indexOf("android")>0;function ft(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function mt(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];for(var i=0;i<e.length;i++){var n=e[i];for(var r in n)t[r]=n[r]}return t}function vt(t){return null==t}var gt=ut&&document.createElement("div").style,yt=function(){if(!ut)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==gt[t[e]])return e;return!1}();function bt(t){return!1===yt?t:"standard"===yt?"transitionEnd"===t?"transitionend":t:yt+t.charAt(0).toUpperCase()+t.substr(1)}function wt(t){return"string"==typeof t?document.querySelector(t):t}function kt(t,e,o,i){t.addEventListener(e,o,{passive:!1,capture:!!i})}function Tt(t,e,o,i){t.removeEventListener(e,o,{capture:!!i})}function _t(t){for(var e=0,o=0;t;)e-=t.offsetLeft,o-=t.offsetTop,t=t.offsetParent;return{left:e,top:o}}yt&&"standard"!==yt&&yt.toLowerCase();var Et=bt("transform"),St=bt("transition"),Pt=ut&&bt("perspective")in gt,Ct=ut&&St in gt,xt={transform:Et,transition:St,transitionTimingFunction:bt("transitionTimingFunction"),transitionDuration:bt("transitionDuration"),transitionDelay:bt("transitionDelay"),transformOrigin:bt("transformOrigin"),transitionEnd:bt("transitionEnd")},Ot={touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2};function Mt(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function Dt(t,e){for(var o in e)if(e[o].test(t[o]))return!0;return!1}var It=Dt;function Ft(t,e){var o;void 0===e&&(e="click"),"mouseup"===t.type?o=t:"touchend"!==t.type&&"touchcancel"!==t.type||(o=t.changedTouches[0]);var i,n={};o&&(n.screenX=o.screenX||0,n.screenY=o.screenY||0,n.clientX=o.clientX||0,n.clientY=o.clientY||0);if("undefined"!=typeof MouseEvent)try{i=new MouseEvent(e,mt({bubbles:true,cancelable:true},n))}catch(t){r()}else r();function r(){(i=document.createEvent("Event")).initEvent(e,true,true),mt(i,n)}i.forwardedTouchEvent=!0,i._constructed=!0,t.target.dispatchEvent(i)}var Lt={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},Bt=ut&&window;function $t(){}var At=ut?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||Bt.mozRequestAnimationFrame||Bt.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||1.6666666666666667)/2)}:$t,Nt=ut?Bt.cancelAnimationFrame||Bt.webkitCancelAnimationFrame||Bt.mozCancelAnimationFrame||Bt.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:$t,Rt=function(t){},zt={enumerable:!0,configurable:!0,get:Rt,set:Rt};var jt,Ht,Yt,Wt,Xt,Gt,Vt=function(){function t(t){this.events={},this.eventTypes={},this.registerType(t)}return t.prototype.on=function(t,e,o){return void 0===o&&(o=this),this._checkInTypes(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},t.prototype.once=function(t,e,o){var i=this;void 0===o&&(o=this),this._checkInTypes(t);var n=function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];i.off(t,n),e.apply(o,r)};return n.fn=e,this.on(t,n),this},t.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this._checkInTypes(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;for(var i=o.length;i--;)(o[i][0]===e||o[i][0]&&o[i][0].fn===e)&&o.splice(i,1);return this}},t.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this._checkInTypes(t);var i=this.events[t];if(i)for(var n,r=i.length,s=i.slice(),a=0;a<r;a++){var c=s[a],l=c[0],h=c[1];if(l&&!0===(n=l.apply(h,e)))return n}},t.prototype.registerType=function(t){var e=this;t.forEach((function(t){e.eventTypes[t]=t}))},t.prototype.destroy=function(){this.events={},this.eventTypes={}},t.prototype._checkInTypes=function(t){var e=this.eventTypes;e[t]===t||ht('EventEmitter has used unknown event type: "'+t+'", should be oneof ['+Object.keys(e)+"]")},t}();!function(t){t[t.Positive=1]="Positive",t[t.Negative=-1]="Negative",t[t.Default=0]="Default"}(jt||(jt={})),function(t){t.Default="",t.Horizontal="horizontal",t.Vertical="vertical",t.None="none"}(Ht||(Ht={})),function(t){t.None="",t.Horizontal="horizontal",t.Vertical="vertical"}(Yt||(Yt={})),function(t){t[t.Touch=1]="Touch",t[t.Mouse=2]="Mouse"}(Wt||(Wt={})),function(t){t[t.Left=0]="Left",t[t.Middle=1]="Middle",t[t.Right=2]="Right"}(Xt||(Xt={})),function(t){t[t.Default=0]="Default",t[t.Throttle=1]="Throttle",t[t.Normal=2]="Normal",t[t.Realtime=3]="Realtime"}(Gt||(Gt={}));var Ut=function(){function t(){this.startX=0,this.startY=0,this.scrollX=!1,this.scrollY=!0,this.freeScroll=!1,this.directionLockThreshold=5,this.eventPassthrough=Yt.None,this.click=!1,this.dblclick=!1,this.tap="",this.bounce={top:!0,bottom:!0,left:!0,right:!0},this.bounceTime=800,this.momentum=!0,this.momentumLimitTime=300,this.momentumLimitDistance=15,this.swipeTime=2500,this.swipeBounceTime=500,this.deceleration=.0015,this.flickLimitTime=200,this.flickLimitDistance=100,this.resizePolling=60,this.probeType=Gt.Default,this.stopPropagation=!1,this.preventDefault=!0,this.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},this.tagException={tagName:/^TEXTAREA$/},this.HWCompositing=!0,this.useTransition=!0,this.bindToWrapper=!1,this.autoBlur=!0}return t.prototype.merge=function(t){if(!t)return this;for(var e in t)this[e]=t[e];return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&Pt?" translateZ(0)":"",this.useTransition=this.useTransition&&Ct,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX=this.eventPassthrough!==Yt.Horizontal&&this.scrollX,this.scrollY=this.eventPassthrough!==Yt.Vertical&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t}(),Kt=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(kt)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(Tt)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach((function(i){t(o,i.name,e,!!i.capture)}))},t.prototype.handleEvent=function(t){var e=t.type;this.events.some((function(o){return o.name===e&&(o.handler(t),!0)}))},t}(),qt=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new Vt(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return t.prototype.handleDOMEvents=function(){var t=this.options.bindToWrapper,e=this.wrapper,o=t?e:window;this.startClickRegister=new Kt(e,[{name:"mousedown",handler:this.start.bind(this)},{name:"touchstart",handler:this.start.bind(this)},{name:"click",handler:this.click.bind(this),capture:!0}]),this.moveEndRegister=new Kt(o,[{name:"mousemove",handler:this.move.bind(this)},{name:"touchmove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"mouseup",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)}])},t.prototype.beforeHandler=function(t,e){var o=this.options,i=o.preventDefault,n=o.stopPropagation,r=o.preventDefaultException;({start:function(){return i&&!Dt(t.target,r)},end:function(){return i&&!Dt(t.target,r)},move:function(){return i}})[e]()&&t.preventDefault(),n&&t.stopPropagation()},t.prototype.setInitiated=function(t){void 0===t&&(t=0),this.initiated=t},t.prototype.start=function(t){var e=Ot[t.type];if(!this.initiated||this.initiated===e)if(this.setInitiated(e),It(t.target,this.options.tagException))this.setInitiated();else if((e!==Wt.Mouse||t.button===Xt.Left)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,t)){this.beforeHandler(t,"start");var o=t.touches?t.touches[0]:t;this.pointX=o.pageX,this.pointY=o.pageY,this.hooks.trigger(this.hooks.eventTypes.start,t)}},t.prototype.move=function(t){if(Ot[t.type]===this.initiated){this.beforeHandler(t,"move");var e=t.touches?t.touches[0]:t,o=e.pageX-this.pointX,i=e.pageY-this.pointY;if(this.pointX=e.pageX,this.pointY=e.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:o,deltaY:i,e:t})){var n=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,r=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,s=this.pointX-n,a=this.pointY-r;(s>document.documentElement.clientWidth-this.options.momentumLimitDistance||s<this.options.momentumLimitDistance||a<this.options.momentumLimitDistance||a>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this.end(t)}}},t.prototype.end=function(t){Ot[t.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(t,"end"),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.click=function(t){this.hooks.trigger(this.hooks.eventTypes.click,t)},t.prototype.destroy=function(){this.startClickRegister.destroy(),this.moveEndRegister.destroy(),this.hooks.destroy()},t}(),Zt={x:["translateX","px"],y:["translateY","px"]},Qt=function(){function t(t){this.content=t,this.style=t.style,this.hooks=new Vt(["beforeTranslate","translate"])}return t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.content,null)[xt.transform].split(")")[0].split(", ");return{x:+(t[12]||t[4]),y:+(t[13]||t[5])}},t.prototype.translate=function(t){var e=[];Object.keys(t).forEach((function(o){if(Zt[o]){var i=Zt[o][0];if(i){var n=Zt[o][1],r=t[o];e.push(i+"("+r+n+")")}}})),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,e,t),this.style[xt.transform]=""+e.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,t)},t.prototype.destroy=function(){this.hooks.destroy()},t}(),Jt=function(){function t(t,e,o){this.content=t,this.translater=e,this.options=o,this.hooks=new Vt(["move","end","beforeForceStop","forceStop","time","timeFunction"]),this.style=t.style}return t.prototype.translate=function(t){this.translater.translate(t)},t.prototype.setPending=function(t){this.pending=t},t.prototype.setForceStopped=function(t){this.forceStopped=t},t.prototype.destroy=function(){this.hooks.destroy(),Nt(this.timer)},t}(),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.startProbe=function(){var t=this,e=function(){var o=t.translater.getComputedPosition();t.hooks.trigger(t.hooks.eventTypes.move,o),t.pending?t.timer=At(e):t.hooks.trigger(t.hooks.eventTypes.end,o)};Nt(this.timer),this.timer=At(e)},e.prototype.transitionTime=function(t){void 0===t&&(t=0),this.style[xt.transitionDuration]=t+"ms",this.hooks.trigger(this.hooks.eventTypes.time,t)},e.prototype.transitionTimingFunction=function(t){this.style[xt.transitionTimingFunction]=t,this.hooks.trigger(this.hooks.eventTypes.timeFunction,t)},e.prototype.move=function(t,e,o,i,n){this.setPending(o>0&&(t.x!==e.x||t.y!==e.y)),this.transitionTimingFunction(i),this.transitionTime(o),this.translate(e),o&&this.options.probeType===Gt.Realtime&&this.startProbe(),o||(this._reflow=this.content.offsetHeight),o||n||(this.hooks.trigger(this.hooks.eventTypes.move,e),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.stop=function(){if(this.pending){this.setPending(!1),Nt(this.timer);var t=this.translater.getComputedPosition(),e=t.x,o=t.y;if(this.transitionTime(),this.translate({x:e,y:o}),this.setForceStopped(!0),this.hooks.trigger(this.hooks.eventTypes.beforeForceStop,{x:e,y:o}))return;this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:e,y:o})}},e}(Jt),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.move=function(t,e,o,i,n){if(!o){if(this.translate(e),this._reflow=this.content.offsetHeight,n)return;return this.hooks.trigger(this.hooks.eventTypes.move,e),void this.hooks.trigger(this.hooks.eventTypes.end,e)}this.animate(t,e,o,i)},e.prototype.animate=function(t,e,o,i){var n=this,r=ft(),s=r+o,a=function(){var c=ft();if(c>=s)return n.translate(e),n.hooks.trigger(n.hooks.eventTypes.move,e),void n.hooks.trigger(n.hooks.eventTypes.end,e);var l=i(c=(c-r)/o),h={};Object.keys(e).forEach((function(o){var i=t[o],n=e[o];h[o]=(n-i)*l+i})),n.translate(h),n.pending&&(n.timer=At(a)),n.options.probeType===Gt.Realtime&&n.hooks.trigger(n.hooks.eventTypes.move,h)};this.setPending(!0),Nt(this.timer),a()},e.prototype.stop=function(){if(this.pending){this.setPending(!1),Nt(this.timer);var t=this.translater.getComputedPosition();if(this.setForceStopped(!0),this.hooks.trigger(this.hooks.eventTypes.beforeForceStop,t))return;this.hooks.trigger(this.hooks.eventTypes.forceStop,t)}},e}(Jt);var oe,ie,ne,re,se,ae=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new Vt(["momentum","end"]),this.content=this.wrapper.children[0],this.currentPos=0,this.startPos=0}return t.prototype.start=function(){this.direction=jt.Default,this.movingDirection=jt.Default,this.dist=0},t.prototype.move=function(t){t=this.hasScroll?t:0,this.movingDirection=t>0?jt.Negative:t<0?jt.Positive:jt.Default;var e=this.currentPos+t;return(e>this.minScrollPos||e<this.maxScrollPos)&&(e=e>this.minScrollPos&&this.options.bounces[0]||e<this.maxScrollPos&&this.options.bounces[1]?this.currentPos+t/3:e>this.minScrollPos?this.minScrollPos:this.maxScrollPos),e},t.prototype.end=function(t){var e={duration:0},o=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&t<this.options.momentumLimitTime&&o>this.options.momentumLimitDistance){var i=this.direction===jt.Negative&&this.options.bounces[0]||this.direction===jt.Positive&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,i,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},t.prototype.momentum=function(t,e,o,i,n,r,s){void 0===s&&(s=this.options);var a=t-e,c=Math.abs(a)/o,l=s.deceleration,h=s.swipeBounceTime,u={destination:t+c/l*(a<0?-1:1),duration:s.swipeTime,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,u,a),u.destination<i?(u.destination=r?Math.max(i-r/4,i-r/u.rate*c):i,u.duration=h):u.destination>n&&(u.destination=r?Math.min(n+r/4,n+r/u.rate*c):n,u.duration=h),u.destination=Math.round(u.destination),u},t.prototype.updateDirection=function(){var t=Math.round(this.currentPos)-this.absStartPos;this.direction=t>0?jt.Negative:t<0?jt.Positive:jt.Default},t.prototype.refresh=function(){var t=this.options.rect,e=t.size,o=t.position,i="static"===window.getComputedStyle(this.wrapper,null).position,n=Mt(this.wrapper);this.wrapperSize=n[e];var r=Mt(this.content);this.contentSize=r[e],this.relativeOffset=r[o],i&&(this.relativeOffset-=n[o]),this.minScrollPos=0,this.maxScrollPos=this.wrapperSize-this.contentSize,this.maxScrollPos<0&&(this.maxScrollPos-=this.relativeOffset,this.minScrollPos=-this.relativeOffset),this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,this.hasScroll||(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize),this.direction=0},t.prototype.updatePosition=function(t){this.currentPos=t},t.prototype.getCurrentPos=function(){return Math.round(this.currentPos)},t.prototype.checkInBoundary=function(){var t=this.adjustPosition(this.currentPos);return{position:t,inBoundary:t===this.getCurrentPos()}},t.prototype.adjustPosition=function(t){var e=Math.round(t);return!this.hasScroll||e>this.minScrollPos?e=this.minScrollPos:e<this.maxScrollPos&&(e=this.maxScrollPos),e},t.prototype.updateStartPos=function(){this.startPos=this.currentPos},t.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},t.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},t.prototype.getAbsDist=function(t){return this.dist+=t,Math.abs(this.dist)},t.prototype.destroy=function(){this.hooks.destroy()},t}();!function(t){t.Yes="yes",t.No="no"}(se||(se={}));var ce=((oe={})[se.Yes]=function(t){return!0},oe[se.No]=function(t){return t.preventDefault(),!1},oe),le=((ie={})[Ht.Horizontal]=((ne={})[se.Yes]=Yt.Horizontal,ne[se.No]=Yt.Vertical,ne),ie[Ht.Vertical]=((re={})[se.Yes]=Yt.Vertical,re[se.No]=Yt.Horizontal,re),ie),he=function(){function t(t,e,o){this.directionLockThreshold=t,this.freeScroll=e,this.eventPassthrough=o,this.reset()}return t.prototype.reset=function(){this.directionLocked=Ht.Default},t.prototype.checkMovingDirection=function(t,e,o){return this.computeDirectionLock(t,e),this.handleEventPassthrough(o)},t.prototype.adjustDelta=function(t,e){return this.directionLocked===Ht.Horizontal?e=0:this.directionLocked===Ht.Vertical&&(t=0),{deltaX:t,deltaY:e}},t.prototype.computeDirectionLock=function(t,e){this.directionLocked!==Ht.Default||this.freeScroll||(t>e+this.directionLockThreshold?this.directionLocked=Ht.Horizontal:e>=t+this.directionLockThreshold?this.directionLocked=Ht.Vertical:this.directionLocked=Ht.None)},t.prototype.handleEventPassthrough=function(t){var e=le[this.directionLocked];if(e){if(this.eventPassthrough===e[se.Yes])return ce[se.Yes](t);if(this.eventPassthrough===e[se.No])return ce[se.No](t)}return!1},t}(),ue=function(){function t(t,e,o,i,n){this.hooks=new Vt(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=o,this.animater=i,this.options=n,this.directionLockAction=new he(n.directionLockThreshold,n.freeScroll,n.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return t.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,(function(e){return!t.enabled||t.handleStart(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,(function(e){var o=e.deltaX,i=e.deltaY,n=e.e;return!t.enabled||t.handleMove(o,i,n)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,(function(e){return!t.enabled||t.handleEnd(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,(function(e){t.enabled&&!e._constructed&&t.handleClick(e)}))},t.prototype.handleStart=function(t){var e=ft();this.moved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.stop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},t.prototype.handleMove=function(t,e,o){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,o)){var i=this.scrollBehaviorX.getAbsDist(t),n=this.scrollBehaviorY.getAbsDist(e),r=ft();if(this.checkMomentum(i,n,r))return!0;if(this.directionLockAction.checkMovingDirection(i,n,o))return this.actionsHandler.setInitiated(),!0;var s=this.directionLockAction.adjustDelta(t,e),a=this.scrollBehaviorX.move(s.deltaX),c=this.scrollBehaviorY.move(s.deltaY);this.moved||(this.moved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.animater.translate({x:a,y:c}),this.dispatchScroll(r)}},t.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),this.options.probeType===Gt.Throttle&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>Gt.Throttle&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},t.prototype.checkMomentum=function(t,e,o){return o-this.endTime>this.options.momentumLimitTime&&e<this.options.momentumLimitDistance&&t<this.options.momentumLimitDistance},t.prototype.handleEnd=function(t){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,t)){var e=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,t,e))return!0;this.animater.translate(e),this.endTime=ft();var o=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,e,o)}},t.prototype.handleClick=function(t){Dt(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation())},t.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},t.prototype.refresh=function(){this.endTime=0},t.prototype.destroy=function(){this.hooks.destroy()},t}();function de(t,e,o,i){var n=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime"].reduce((function(e,o){return e[o]=t[o],e}),{});return n.scrollable=t[e],n.bounces=o,n.rect=i,n}function pe(t,e,o){o.forEach((function(o){var i,n;"string"==typeof o?i=n=o:(i=o.source,n=o.target),t.on(i,(function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.trigger.apply(e,[n].concat(t))}))}))}var fe,me=function(){function t(t,e){this.hooks=new Vt(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","refresh","touchEnd","end","flick","scrollCancel","momentum","scrollTo","ignoreDisMoveForSamePos","scrollToElement"]),this.wrapper=t,this.content=t.children[0],this.options=e;var o,i=this.options.bounce,n=i.left,r=void 0===n||n,s=i.right,a=void 0===s||s,c=i.top,l=void 0===c||c,h=i.bottom,u=void 0===h||h;this.scrollBehaviorX=new ae(t,de(e,"scrollX",[r,a],{size:"width",position:"left"})),this.scrollBehaviorY=new ae(t,de(e,"scrollY",[l,u],{size:"height",position:"top"})),this.translater=new Qt(this.content),this.animater=function(t,e,o){var i=o.useTransition,n={};return Object.defineProperty(n,"probeType",{enumerable:!0,configurable:!1,get:function(){return o.probeType}}),i?new te(t,e,n):new ee(t,e,n)}(this.content,this.translater,this.options),this.actionsHandler=new qt(t,(o=this.options,["click","bindToWrapper","preventDefault","stopPropagation","tagException","preventDefaultException"].reduce((function(t,e){return t[e]=o[e],t}),{}))),this.actions=new ue(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var d=this.resize.bind(this);this.resizeRegister=new Kt(window,[{name:"orientationchange",handler:d},{name:"resize",handler:d}]),this.transitionEndRegister=new Kt(this.content,[{name:xt.transitionEnd,handler:this.transitionEnd.bind(this)}]),this.init()}return t.prototype.init=function(){var t=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,(function(){t.togglePointerEvents(!0)}))},t.prototype.bindTranslater=function(){var t=this,e=this.translater.hooks;e.on(e.eventTypes.beforeTranslate,(function(e){t.options.translateZ&&e.push(t.options.translateZ)})),e.on(e.eventTypes.translate,(function(e){t.updatePositions(e),t.togglePointerEvents(!1)}))},t.prototype.bindAnimater=function(){var t=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,(function(e){t.resetPosition(t.options.bounceTime)||(t.animater.setPending(!1),t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e))})),pe(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},t.prototype.bindActions=function(){var t=this,e=this.actions;pe(e.hooks,this.hooks,[{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:e.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:e.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:e.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:e.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),e.hooks.on(e.hooks.eventTypes.end,(function(o,i){return t.hooks.trigger(t.hooks.eventTypes.touchEnd,i),!!t.hooks.trigger(t.hooks.eventTypes.end,i)||(!e.moved&&t.checkClick(o)?(t.animater.setForceStopped(!1),t.hooks.trigger(t.hooks.eventTypes.scrollCancel),!0):(t.animater.setForceStopped(!1),!!t.resetPosition(t.options.bounceTime,Lt.bounce)||void 0))})),e.hooks.on(e.hooks.eventTypes.scrollEnd,(function(e,o){var i=Math.abs(e.x-t.scrollBehaviorX.startPos),n=Math.abs(e.y-t.scrollBehaviorY.startPos);t.checkFlick(o,i,n)?t.hooks.trigger(t.hooks.eventTypes.flick):t.momentum(e,o)||t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e)}))},t.prototype.checkFlick=function(t,e,o){if(this.hooks.events.flick.length>1&&t<this.options.flickLimitTime&&e<this.options.flickLimitDistance&&o<this.options.flickLimitDistance)return!0},t.prototype.momentum=function(t,e){var o={time:0,easing:Lt.swiper,newX:t.x,newY:t.y},i=this.scrollBehaviorX.end(e),n=this.scrollBehaviorY.end(e);if(o.newX=vt(i.destination)?o.newX:i.destination,o.newY=vt(n.destination)?o.newY:n.destination,o.time=Math.max(i.duration,n.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,o,this),o.newX!==t.x||o.newY!==t.y)return(o.newX>this.scrollBehaviorX.minScrollPos||o.newX<this.scrollBehaviorX.maxScrollPos||o.newY>this.scrollBehaviorY.minScrollPos||o.newY<this.scrollBehaviorY.maxScrollPos)&&(o.easing=Lt.swipeBounce),this.scrollTo(o.newX,o.newY,o.time,o.easing),!0},t.prototype.checkClick=function(t){var e=this.animater.forceStopped;if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return!0;if(!e){var o=this.options.dblclick,i=!1;if(o&&this.lastClickTime){var n=o.delay,r=void 0===n?300:n;ft()-this.lastClickTime<r&&(i=!0,function(t){Ft(t,"dblclick")}(t))}return this.options.tap&&function(t,e){var o=document.createEvent("Event");o.initEvent(e,!0,!0),o.pageX=t.pageX,o.pageY=t.pageY,t.target.dispatchEvent(o)}(t,this.options.tap),this.options.click&&!Dt(t.target,this.options.preventDefaultException)&&Ft(t),this.lastClickTime=i?null:ft(),!0}return!1},t.prototype.resize=function(){var t=this;this.actions.enabled&&(pt&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((function(){t.refresh()}),this.options.resizePolling))},t.prototype.transitionEnd=function(t){t.target===this.content&&this.animater.pending&&(this.animater.transitionTime(),this.resetPosition(this.options.bounceTime,Lt.bounce)||(this.animater.setPending(!1),this.options.probeType!==Gt.Realtime&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos())))},t.prototype.togglePointerEvents=function(t){void 0===t&&(t=!0);for(var e=this.content.children.length?this.content.children:[this.content],o=t?"auto":"none",i=0;i<e.length;i++)e[i].style.pointerEvents=o},t.prototype.refresh=function(){this.scrollBehaviorX.refresh(),this.scrollBehaviorY.refresh(),this.actions.refresh(),this.wrapperOffset=_t(this.wrapper)},t.prototype.scrollBy=function(t,e,o,i){void 0===o&&(o=0);var n=this.getCurrentPos(),r=n.x,s=n.y;i=i||Lt.bounce,t+=r,e+=s,this.scrollTo(t,e,o,i)},t.prototype.scrollTo=function(t,e,o,i,n,r){void 0===o&&(o=0),void 0===n&&(n={start:{},end:{}}),i=i||Lt.bounce;var s=this.options.useTransition?i.style:i.fn,a=this.getCurrentPos(),c=lt({x:a.x,y:a.y},n.start),l=lt({x:t,y:e},n.end);this.hooks.trigger(this.hooks.eventTypes.scrollTo,l),(this.hooks.trigger(this.hooks.eventTypes.ignoreDisMoveForSamePos)||c.x!==l.x||c.y!==l.y)&&this.animater.move(c,l,o,s,r)},t.prototype.scrollToElement=function(t,e,o,i,n){var r=wt(t),s=_t(r),a=function(t,e,o){return"number"==typeof t?t:t?Math.round(e/2-o/2):0};o=a(o,r.offsetWidth,this.wrapper.offsetWidth),i=a(i,r.offsetHeight,this.wrapper.offsetHeight);var c=function(t,e,o,i){return t-=e,t=i.adjustPosition(t-o)};s.left=c(s.left,this.wrapperOffset.left,o,this.scrollBehaviorX),s.top=c(s.top,this.wrapperOffset.top,i,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,r,s)||this.scrollTo(s.left,s.top,e,n)},t.prototype.resetPosition=function(t,e){void 0===t&&(t=0),e=e||Lt.bounce;var o=this.scrollBehaviorX.checkInBoundary(),i=o.position,n=o.inBoundary,r=this.scrollBehaviorY.checkInBoundary(),s=r.position,a=r.inBoundary;return(!n||!a)&&(this.scrollTo(i,s,t,e),!0)},t.prototype.updatePositions=function(t){this.scrollBehaviorX.updatePosition(t.x),this.scrollBehaviorY.updatePosition(t.y)},t.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},t.prototype.enable=function(){this.actions.enabled=!0},t.prototype.disable=function(){Nt(this.animater.timer),this.actions.enabled=!1},t.prototype.destroy=function(){var t=this;["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"].forEach((function(e){return t[e].destroy()}))},t}(),ve=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];!function(t){t.Pre="pre",t.Post="post"}(fe||(fe={}));var ge=function(t){function e(e,o){var i=t.call(this,["refresh","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,n=wt(e);return n?n.children[0]?(i.plugins={},i.options=(new Ut).merge(o).process(),i.hooks=new Vt(["init","refresh","enable","disable","destroy"]),i.init(n),i):(ht("The wrapper need at least one child element to be scroller."),i):(ht("Can not resolve the wrapper DOM."),i)}return ct(e,t),e.use=function(t){var e=t.pluginName;return this.plugins.some((function(e){return t===e.ctor}))?this:vt(e)?(ht("Plugin Class must specify plugin's name in static property by 'pluginName' field."),this):this.pluginsMap[e]?(ht("This plugin has been registered, maybe you need change plugin's name"),this):(this.pluginsMap[e]=!0,this.plugins.push({name:e,enforce:t.enforce,ctor:t}),this)},e.prototype.init=function(t){this.wrapper=t,this.scroller=new me(t,this.options),this.eventBubbling(),this.handleAutoBlur(),this.innerRefresh(),this.scroller.scrollTo(this.options.startX,this.options.startY),this.enable(),this.proxy(ve),this.applyPlugins()},e.prototype.applyPlugins=function(){var t=this,e=this.options;this.constructor.plugins.sort((function(t,e){var o,i=((o={})[fe.Pre]=-1,o[fe.Post]=1,o);return(t.enforce?i[t.enforce]:0)-(e.enforce?i[e.enforce]:0)})).forEach((function(o){var i=o.ctor;e[o.name]&&"function"==typeof i&&(t.plugins[o.name]=new i(t))}))},e.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,(function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()}))},e.prototype.eventBubbling=function(){pe(this.scroller.hooks,this,["beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick"])},e.prototype.innerRefresh=function(){this.scroller.refresh(),this.hooks.trigger(this.hooks.eventTypes.refresh),this.trigger(this.eventTypes.refresh)},e.prototype.proxy=function(t){var e=this;t.forEach((function(t){var o=t.key,i=t.sourceKey;!function(t,e,o){zt.get=function(){return function(t,e){for(var o=e.split("."),i=0;i<o.length-1;i++)if("object"!=typeof(t=t[o[i]])||!t)return;var n=o.pop();return"function"==typeof t[n]?function(){return t[n].apply(t,arguments)}:t[n]}(this,e)},zt.set=function(t){!function(t,e,o){for(var i,n=e.split("."),r=0;r<n.length-1;r++)t[i=n[r]]||(t[i]={}),t=t[i];t[n.pop()]=o}(this,e,t)},Object.defineProperty(t,o,zt)}(e,i,o)}))},e.prototype.refresh=function(){this.innerRefresh(),this.scroller.resetPosition()},e.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},e.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},e.prototype.destroy=function(){this.scroller.destroy(),this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy)},e.prototype.eventRegister=function(t){this.registerType(t)},e.version="2.0.0",e.plugins=[],e.pluginsMap={},e}(Vt);
|
|
7
7
|
/*!
|
|
8
8
|
* better-scroll / scroll-bar
|
|
9
9
|
* (c) 2016-2020 ustbhuangyi
|
|
10
10
|
* Released under the MIT License.
|
|
11
|
-
*/var ye="undefined"!=typeof window,be=ye&&navigator.userAgent.toLowerCase();be&&/wechatdevtools/.test(be),be&&be.indexOf("android"),function(){if("string"==typeof be){var t=/os (\d\d?_\d(_\d)?)/.exec(be);if(!t)return!1;var e=t[1].split("_").map((function(t){return parseInt(t,10)}));return!!(e[0]>=13&&e[1]>=4)}}();var we=ye&&document.createElement("div").style,ke=function(){if(!ye)return!1;for(var t=0,e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}];t<e.length;t++){var o=e[t];if(void 0!==we[o.value])return o.key}return!1}();function Te(t){return!1===ke?t:"standard"===ke?"transitionEnd"===t?"transitionend":t:ke+t.charAt(0).toUpperCase()+t.substr(1)}function _e(t,e,o,i){t.addEventListener(e,o,{passive:!1,capture:!!i})}function Ee(t,e,o,i){t.removeEventListener(e,o,{capture:!!i})}ke&&"standard"!==ke&&ke.toLowerCase();var Se=Te("transform");Te("transition");ye&&Te("perspective");var Pe=Se,
|
|
11
|
+
*/var ye="undefined"!=typeof window,be=ye&&navigator.userAgent.toLowerCase();be&&/wechatdevtools/.test(be),be&&be.indexOf("android"),function(){if("string"==typeof be){var t=/os (\d\d?_\d(_\d)?)/.exec(be);if(!t)return!1;var e=t[1].split("_").map((function(t){return parseInt(t,10)}));return!!(e[0]>=13&&e[1]>=4)}}();var we=ye&&document.createElement("div").style,ke=function(){if(!ye)return!1;for(var t=0,e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}];t<e.length;t++){var o=e[t];if(void 0!==we[o.value])return o.key}return!1}();function Te(t){return!1===ke?t:"standard"===ke?"transitionEnd"===t?"transitionend":t:ke+t.charAt(0).toUpperCase()+t.substr(1)}function _e(t,e,o,i){t.addEventListener(e,o,{passive:!1,capture:!!i})}function Ee(t,e,o,i){t.removeEventListener(e,o,{capture:!!i})}ke&&"standard"!==ke&&ke.toLowerCase();var Se=Te("transform");Te("transition");ye&&Te("perspective");var Pe=Se,Ce=Te("transitionTimingFunction"),xe=Te("transitionDuration");
|
|
12
12
|
/*! *****************************************************************************
|
|
13
13
|
Copyright (c) Microsoft Corporation.
|
|
14
14
|
|
|
@@ -22,4 +22,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
22
22
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
23
23
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
24
24
|
PERFORMANCE OF THIS SOFTWARE.
|
|
25
|
-
***************************************************************************** */Te("transitionDelay"),Te("transformOrigin"),Te("transitionEnd"),Te("transitionProperty");function Oe(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,n++)i[n]=r[s];return i}var Me=function(){function t(t){this.events={},this.eventTypes={},this.registerType(t)}return t.prototype.on=function(t,e,o){return void 0===o&&(o=this),this.hasType(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},t.prototype.once=function(t,e,o){var i=this;void 0===o&&(o=this),this.hasType(t);var n=function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];i.off(t,n),e.apply(o,r)};return n.fn=e,this.on(t,n),this},t.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this.hasType(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;for(var i=o.length;i--;)(o[i][0]===e||o[i][0]&&o[i][0].fn===e)&&o.splice(i,1);return this}},t.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this.hasType(t);var i=this.events[t];if(i)for(var n,r=i.length,s=Oe(i),a=0;a<r;a++){var c=s[a],l=c[0],h=c[1];if(l&&!0===(n=l.apply(h,e)))return n}},t.prototype.registerType=function(t){var e=this;t.forEach((function(t){e.eventTypes[t]=t}))},t.prototype.destroy=function(){this.events={},this.eventTypes={}},t.prototype.hasType=function(t){var e,o=this.eventTypes;o[t]===t||(e='EventEmitter has used unknown event type: "'+t+'", should be oneof ['+Object.keys(o).map((function(t){return JSON.stringify(t)}))+"]",console.error("[BScroll warn]: "+e))},t}(),De=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(_e)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(Ee)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach((function(i){t(o,i.name,e,!!i.capture)}))},t.prototype.handleEvent=function(t){var e=t.type;this.events.some((function(o){return o.name===e&&(o.handler(t),!0)}))},t}(),Ie=function(){function t(t,e){this.indicator=t,this.options=e,this.bscroll=t.bscroll,this.startEventRegister=new De(this.indicator.el,[{name:e.disableMouse?"touchstart":"mousedown",handler:this._start.bind(this)}]),this.endEventRegister=new De(window,[{name:e.disableMouse?"touchend":"mouseup",handler:this._end.bind(this)}]),this.hooks=new Me(["touchStart","touchMove","touchEnd"])}return t.prototype._start=function(t){if(this.bscroll.scroller.actions.enabled){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.initiated=!0,this.moved=!1,this.lastPoint=e[this.indicator.keysMap.pointPos];var o=this.bscroll.options.disableMouse;this.moveEventRegister=new De(window,[{name:o?"touchmove":"mousemove",handler:this._move.bind(this)}]),this.hooks.trigger("touchStart")}},t.prototype._move=function(t){var e=(t.touches?t.touches[0]:t)[this.indicator.keysMap.pointPos];t.preventDefault(),t.stopPropagation();var o=e-this.lastPoint;if(this.lastPoint=e,!this.moved)return this.hooks.trigger("touchMove",this.moved,o),void(this.moved=!0);this.hooks.trigger("touchMove",this.moved,o)},t.prototype._end=function(t){this.initiated&&(this.initiated=!1,t.preventDefault(),t.stopPropagation(),this.moveEventRegister.destroy(),this.hooks.trigger("touchEnd",this.moved))},t.prototype.destroy=function(){this.startEventRegister.destroy(),this.moveEventRegister&&this.moveEventRegister.destroy(),this.endEventRegister.destroy()},t}(),Fe=function(){function t(t,e){this.bscroll=t,this.options=e,this.keyVals={sizeRatio:1,maxPos:0,initialSize:0},this.curPos=0,this.hooksHandlers=[],this.wrapper=e.wrapper,this.wrapperStyle=this.wrapper.style,this.el=this.wrapper.children[0],this.elStyle=this.el.style,this.bscroll=t,this.direction=e.direction,this.keysMap=this._getKeysMap(),e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this._listenHooks(e.fade,e.interactive),this.refresh()}return t.prototype._listenHooks=function(t,e){var o=this,i=this.bscroll,n=i,r=i.scroller.translater.hooks,s=i.scroller.animater.hooks;if(this._listen(n,"refresh",this.refresh),this._listen(r,"translate",this.updatePosAndSize),this._listen(s,"time",(function(t){o.setTransitionTime(t)})),this._listen(s,"timeFunction",(function(t){o.setTransitionTimingFunction(t)})),t&&(this._listen(n,"scrollEnd",(function(){o.fade()})),this._listen(n,"scrollStart",(function(){o.fade(!0)})),i.eventTypes.mousewheelStart&&i.eventTypes.mousewheelEnd&&(this._listen(n,"mousewheelStart",(function(){o.fade(!0)})),this._listen(n,"mousewheelEnd",(function(){o.fade()})))),e){var a=this.bscroll.options.disableMouse;this.eventHandler=new Ie(this,{disableMouse:a});var c=this.eventHandler.hooks;this._listen(c,"touchStart",this.startHandler),this._listen(c,"touchMove",this.moveHandler),this._listen(c,"touchEnd",this.endHandler)}},t.prototype._getKeysMap=function(){return"vertical"===this.direction?{hasScroll:"hasVerticalScroll",size:"height",wrapperSize:"clientHeight",scrollerSize:"scrollerHeight",maxScroll:"maxScrollY",pos:"y",pointPos:"pageY",translate:"translateY"}:{hasScroll:"hasHorizontalScroll",size:"width",wrapperSize:"clientWidth",scrollerSize:"scrollerWidth",maxScroll:"maxScrollX",pos:"x",pointPos:"pageX",translate:"translateX"}},t.prototype.fade=function(t){var e=t?250:500;this.wrapperStyle[Ce]=e+"ms",this.wrapperStyle.opacity=t?"1":"0",this.visible=t?1:0},t.prototype.refresh=function(){var t=this.keysMap.hasScroll;if(this._setShowBy(this.bscroll[t])){var e=this.keysMap,o=e.wrapperSize,i=e.scrollerSize,n=e.maxScroll;this.keyVals=this._refreshKeyValues(this.wrapper[o],this.bscroll[i],this.bscroll[n]),this.updatePosAndSize({x:this.bscroll.x,y:this.bscroll.y})}},t.prototype._setShowBy=function(t){return t?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},t.prototype._refreshKeyValues=function(t,e,o){var i=Math.max(Math.round(t*t/(e||t||1)),8),n=t-i;return{initialSize:i,maxPos:n,sizeRatio:n/o}},t.prototype.updatePosAndSize=function(t){var e=this._refreshPosAndSizeValue(t,this.keyVals),o=e.pos,i=e.size;this.curPos=o,this._refreshPosAndSizeStyle(i,o)},t.prototype._refreshPosAndSizeValue=function(t,e){var o,i=this.keysMap.pos,n=e.sizeRatio,r=e.initialSize,s=e.maxPos,a=Math.round(n*t[i]);return a<0?(o=Math.max(r+3*a,8),a=0):a>s?a=s+r-(o=Math.max(r-3*(a-s),8)):o=r,{pos:a,size:o}},t.prototype._refreshPosAndSizeStyle=function(t,e){var o=this.keysMap,i=o.translate,n=o.size;this.elStyle[n]=t+"px",this.elStyle[Pe]=i+"("+e+"px)"+this.bscroll.options.translateZ},t.prototype.setTransitionTime=function(t){void 0===t&&(t=0),this.elStyle[Ce]=t+"ms"},t.prototype.setTransitionTimingFunction=function(t){this.elStyle[xe]=t},t.prototype.startHandler=function(){this.setTransitionTime(),this.bscroll.trigger("beforeScrollStart")},t.prototype.moveHandler=function(t,e){t||this.bscroll.trigger("scrollStart");var o=this._calScrollDesPos(this.curPos,e,this.keyVals);"vertical"===this.direction?this.bscroll.scrollTo(this.bscroll.x,o):this.bscroll.scrollTo(o,this.bscroll.y),this.bscroll.trigger("scroll",{x:this.bscroll.x,y:this.bscroll.y})},t.prototype._calScrollDesPos=function(t,e,o){var i=o.maxPos,n=o.sizeRatio,r=t+e;return r<0?r=0:r>i&&(r=i),Math.round(r/n)},t.prototype.endHandler=function(t){t&&this.bscroll.trigger("scrollEnd",{x:this.bscroll.x,y:this.bscroll.y})},t.prototype.destroy=function(){this.options.interactive&&this.eventHandler.destroy(),this.wrapper.parentNode.removeChild(this.wrapper),this.hooksHandlers.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksHandlers.length=0},t.prototype._listen=function(t,e,o){t.on(e,o,this),this.hooksHandlers.push([t,e,o])},t}(),Be=function(){function t(t){this.indicators=[],this.indicators=this.createIndicators(t),t.on(t.eventTypes.destroy,this.destroy,this)}return t.prototype.createIndicators=function(t){var e,o=this,i=t.options.scrollbar,n=i.fade,r=void 0===n||n,s=i.interactive,a=void 0!==s&&s,c={scrollX:"horizontal",scrollY:"vertical"},l=[];return Object.keys(c).forEach((function(i){var n=c[i];t.options[i]&&(e={wrapper:o.createIndicatorElement(n),direction:n,fade:r,interactive:a},t.wrapper.appendChild(e.wrapper),l.push(new Fe(t,e)))})),l},t.prototype.createIndicatorElement=function(t){var e=document.createElement("div"),o=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",o.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",o.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",o.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",o.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(o),e},t.prototype.destroy=function(){for(var t=0,e=this.indicators;t<e.length;t++){e[t].destroy()}},t.pluginName="scrollbar",t}();var Le="undefined"!=typeof window,$e=Le&&navigator.userAgent.toLowerCase();$e&&/wechatdevtools/.test($e),$e&&$e.indexOf("android"),function(){if("string"==typeof $e){var t=/os (\d\d?_\d(_\d)?)/.exec($e);if(!t)return!1;var e=t[1].split("_").map((function(t){return parseInt(t,10)}));return!!(e[0]>=13&&e[1]>=4)}}();var Ae=Le&&document.createElement("div").style,Ne=function(){if(!Le)return!1;for(var t=0,e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}];t<e.length;t++){var o=e[t];if(void 0!==Ae[o.value])return o.key}return!1}();function Re(t){return!1===Ne?t:"standard"===Ne?"transitionEnd"===t?"transitionend":t:Ne+t.charAt(0).toUpperCase()+t.substr(1)}function ze(t,e,o,i){t.addEventListener(e,o,{passive:!1,capture:!!i})}function je(t,e,o,i){t.removeEventListener(e,o,{capture:!!i})}Ne&&"standard"!==Ne&&Ne.toLowerCase();Re("transform"),Re("transition");Le&&Re("perspective"),Re("transitionTimingFunction"),Re("transitionDuration"),Re("transitionDelay"),Re("transformOrigin"),Re("transitionEnd"),Re("transitionProperty");var He=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(ze)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(je)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach((function(i){t(o,i.name,e,!!i.capture)}))},t.prototype.handleEvent=function(t){var e=t.type;this.events.some((function(o){return o.name===e&&(o.handler(t),!0)}))},t}(),Ye=function(){function t(t){this.scroll=t,this.wheelEndTimer=0,this.wheelMoveTimer=0,this.wheelStart=!1,this.init()}return t.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.registerEvent()},t.prototype.handleBScroll=function(){this.scroll.registerType(["alterOptions","mousewheelStart","mousewheelMove","mousewheelEnd"])},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.mouseWheel?{}:this.scroll.options.mouseWheel;this.mouseWheelOpt=function(t,e){for(var o in e)t[o]=e[o];return t}({speed:20,invert:!1,easeTime:300,discreteTime:400,throttleTime:0,dampingFactor:.1},t)},t.prototype.handleHooks=function(){this.hooksFn=[],this.registerHooks(this.scroll.hooks,"destroy",this.destroy)},t.prototype.registerEvent=function(){this.eventRegister=new He(this.scroll.scroller.wrapper,[{name:"wheel",handler:this.wheelHandler.bind(this)},{name:"mousewheel",handler:this.wheelHandler.bind(this)},{name:"DOMMouseScroll",handler:this.wheelHandler.bind(this)}])},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.wheelHandler=function(t){if(this.scroll.enabled){this.beforeHandler(t),this.wheelStart||(this.wheelStartHandler(t),this.wheelStart=!0);var e=this.getWheelDelta(t);this.wheelMoveHandler(e),this.wheelEndDetector(e)}},t.prototype.wheelStartHandler=function(t){this.cleanCache();var e=this.scroll.scroller,o=e.scrollBehaviorX,i=e.scrollBehaviorY;o.setMovingDirection(0),i.setMovingDirection(0),o.setDirection(0),i.setDirection(0),this.scroll.trigger(this.scroll.eventTypes.alterOptions,this.mouseWheelOpt),this.scroll.trigger(this.scroll.eventTypes.mousewheelStart)},t.prototype.cleanCache=function(){this.deltaCache=[]},t.prototype.wheelMoveHandler=function(t){var e=this,o=this.mouseWheelOpt,i=o.throttleTime,n=o.dampingFactor;if(i&&this.wheelMoveTimer)this.deltaCache.push(t);else{var r=this.deltaCache.reduce((function(t,e){return{x:t.x+e.x,y:t.y+e.y}}),{x:0,y:0});this.cleanCache();var s=this.scroll.scroller,a=s.scrollBehaviorX,c=s.scrollBehaviorY;a.setMovingDirection(-t.directionX),c.setMovingDirection(-t.directionY),a.setDirection(t.x),c.setDirection(t.y);var l=a.performDampingAlgorithm(Math.round(t.x)+r.x,n),h=c.performDampingAlgorithm(Math.round(t.y)+r.x,n);if(!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove,{x:l,y:h})){var u=this.getEaseTime();l===this.scroll.x&&h===this.scroll.y||this.scroll.scrollTo(l,h,u)}i&&(this.wheelMoveTimer=window.setTimeout((function(){e.wheelMoveTimer=0}),i))}},t.prototype.wheelEndDetector=function(t){var e=this;window.clearTimeout(this.wheelEndTimer),this.wheelEndTimer=window.setTimeout((function(){e.wheelStart=!1,window.clearTimeout(e.wheelMoveTimer),e.wheelMoveTimer=0,e.scroll.trigger(e.scroll.eventTypes.mousewheelEnd,t)}),this.mouseWheelOpt.discreteTime)},t.prototype.getWheelDelta=function(t){var e=this.mouseWheelOpt,o=e.speed,i=0,n=0,r=e.invert?-1:1;switch(!0){case"deltaX"in t:1===t.deltaMode?(i=-t.deltaX*o,n=-t.deltaY*o):(i=-t.deltaX,n=-t.deltaY);break;case"wheelDeltaX"in t:i=t.wheelDeltaX/120*o,n=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:i=n=t.wheelDelta/120*o;break;case"detail"in t:i=n=-t.detail/3*o}return i*=r,n*=r,this.scroll.hasVerticalScroll||(i=n,n=0),this.scroll.hasHorizontalScroll||(i=0),{x:i,y:n,directionX:i>0?-1:i<0?1:0,directionY:n>0?-1:n<0?1:0}},t.prototype.beforeHandler=function(t){var e=this.scroll.options,o=e.preventDefault,i=e.stopPropagation,n=e.preventDefaultException;o&&!function(t,e){for(var o in e)if(e[o].test(t[o]))return!0;return!1}(t.target,n)&&t.preventDefault(),i&&t.stopPropagation()},t.prototype.getEaseTime=function(){var t,e=this.mouseWheelOpt.easeTime;return e<100&&(t="easeTime should be greater than 100.If mouseWheel easeTime is too small,scrollEnd will be triggered many times.",console.error("[BScroll warn]: "+t)),Math.max(e,100)},t.prototype.destroy=function(){this.eventRegister.destroy(),window.clearTimeout(this.wheelEndTimer),window.clearTimeout(this.wheelMoveTimer),this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)}))},t.pluginName="mouseWheel",t.applyOrder="pre",t}();ge.use(Be),ge.use(Ye);var We=j({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"tabs",staticClass:"tabs"},[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-b512c0a4_0",{source:".tabs[data-v-b512c0a4]{overflow:hidden}",map:void 0,media:void 0})}),{name:"Tabs",props:{activeTab:""},data:function(){return{tabs:[],activeTabIndex:0,currentTab:null,scroll:null,scrollOptions:{scrollbar:{fade:!1,interactive:!0},click:!0,mouseWheel:{speed:20,invert:!1}}}},created:function(){this.tabs=this.$children},updated:function(){var t=this;this.$nextTick((function(){t.scroll&&null!=t.currentTab&&t.scroll.refresh()}))},mounted:function(){var t=this;this.$props.activeTab?this.activate(this.$props.activeTab):console.log("no active tab"),this.$nextTick((function(){null!=t.currentTab&&(t.scroll=new ge(t.$refs.tabs,t.scrollOptions))}))},watch:{activeTab:function(t){t&&this.activate(t)}},methods:{activate:function(){for(var t in this.currentTab=null,this.tabs)this.tabs[t].name==this.$props.activeTab?(this.tabs[t].isActive=!0,this.$emit("tabChanged",this.tabs[t]),this.currentTab=this.tabs[t]):this.tabs[t].isActive=!1;"search"!==this.$props.activeTab&&this.makeScroll()},makeScroll:function(){var t=this;this.$nextTick((function(){t.$nextTick((function(){t.scroll&&(t.scroll.destroy(),t.scroll=null),null!=t.currentTab&&(t.scroll=new ge(t.$refs.tabs,t.scrollOptions))}))}))},move:function(){}}},"data-v-b512c0a4",false,undefined,!1,Y,void 0,void 0),Xe=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isActive?o("section",{staticClass:"tab",class:{active:t.isActive}},[t._t("default")],2):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-6204c45c_0",{source:".tab[data-v-6204c45c]{display:none}.tab.active[data-v-6204c45c]{display:blocK}",map:void 0,media:void 0})}),{name:"Tab",props:{name:""},data:function(){return{isActive:!1,isVisible:!0}},created:function(){},methods:{}},"data-v-6204c45c",false,undefined,!1,Y,void 0,void 0),Ge=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"tab-buttons"},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.mobile&&!t.landscape,expression:"mobile && !landscape"}],staticClass:"item tab-map",class:{active:"map"==t.currentTab},attrs:{"data-translation-element":"map"},on:{click:function(e){return t.switchTab("map")}}}),t._v(" "),o("div",{staticClass:"item tab-topics",class:{active:"groups"==t.currentTab||"group-pois"==t.currentTab},attrs:{"data-translation-element":"topics"},on:{click:function(e){return t.switchTab("groups")}}}),t._v(" "),o("div",{staticClass:"item tab-az",class:{active:"az"==t.currentTab},attrs:{"data-translation-element":"az"},on:{click:function(e){return t.switchTab("az")}}}),t._v(" "),o("div",{staticClass:"item tab-search",class:{active:"search"==t.currentTab},attrs:{"data-translation-element":"search"},on:{click:function(e){return t.switchTab("search")}}})])},staticRenderFns:[]},(function(t){t&&t("data-v-ea10d5bc_0",{source:".tab-buttons[data-v-ea10d5bc]{display:flex;align-content:stretch;justify-content:space-between}.tab-buttons .item[data-v-ea10d5bc]{background-size:auto 30%;background-repeat:no-repeat}",map:void 0,media:void 0})}),{name:"Tabs",computed:n({},x(["currentTab","searchVisible","mobile","landscape","shortcuts","language"])),data:function(){return{toilet:!1,toiletsIcon:!1}},methods:{switchTab:function(t){this.$emit("switchTab",t)}}},"data-v-ea10d5bc",false,undefined,!1,Y,void 0,void 0);ge.use(Be),ge.use(Ye);var Ve=j({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"area",staticClass:"scrollable"},[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-741c56d1_0",{source:".scrollable[data-v-741c56d1]{overflow:hidden;width:100%;height:100%}",map:void 0,media:void 0})}),{name:"ScrollableArea",data:function(){return{scroll:null,changed:0,hasSlotContent:!1,observer:null,scrollOptions:{scrollbar:{fade:!1,interactive:!0},click:!0,mouseWheel:{speed:20,invert:!1}}}},beforeUpdate:function(){this.hasSlotContent=this.checkForSlotContent()},beforeDestroy:function(){this.observer.disconnect()},created:function(){this.hasSlotContent=this.checkForSlotContent()},updated:function(){var t=this;this.$nextTick((function(){t.scroll&&t.scroll.refresh()}))},mounted:function(){var t=this;this.$nextTick((function(){t.scroll||(t.scroll=new ge(t.$refs.area,t.scrollOptions))}));var e=["scrollable","bscroll-vertical-scrollbar"];this.observer=new MutationObserver(function(t){var o,i,n=!1;for(var r in t)o=(i=t[r]).target.className,"attributes"==i.type||e.indexOf(o)>-1||(n=!0);n&&this.changed++}.bind(this)),this.observer.observe(this.$refs.area,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},watch:{changed:function(t){t&&this.makeScroll()},hasSlotContent:function(t){}},methods:{activate:function(){this.makeScroll()},checkForSlotContent:function(){return this.$slots.default&&this.$slots.default.reduce((function(t,e){return t||e.tag||e.text&&e.text.trim()}),!1)},makeScroll:function(){var t=this;this.$nextTick((function(){t.$nextTick((function(){t.scroll&&(t.scroll.destroy(),t.scroll=null),t.scroll=new ge(t.$refs.area,t.scrollOptions)}))}))},reset:function(){var t=this;this.$nextTick((function(){t.scroll&&t.scroll.refresh()}))}}},"data-v-741c56d1",false,undefined,!1,Y,void 0,void 0),Ue=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.visibilityChanged,expression:"visibilityChanged"}],ref:"frames",staticClass:"banner-set"},t._l(t.frames,(function(e,i){return o("div",{key:e.id,staticClass:"frame",class:[{active:i==t.current},t.frameKeywords]},t._l(e.containers,(function(i){return o("div",{key:i.id,staticClass:"container",style:{left:i.left+"%",top:i.top+"%",width:i.width+"%",height:i.height+"%",backgroundImage:"url('"+i.url+"')"},on:{click:function(o){return t.onClick(e,i)}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.displayQR,expression:"displayQR"}],staticClass:"qr",domProps:{innerHTML:t._s(t.qr)}}),t._v(" "),t.isVideo(i)?o("video",{attrs:{width:"100%",height:"auto",src:i.url,muted:""},domProps:{muted:!0}}):t._e(),t._v("'\n\t\t")])})),0)})),0)},staticRenderFns:[]},(function(t){t&&t("data-v-6ed9efbf_0",{source:".banner-set[data-v-6ed9efbf]{position:relative;width:100%;height:100%}.banner-set .frame[data-v-6ed9efbf]{width:100%;height:100%;position:absolute;background-size:cover;background-position:50% 50%;background-repeat:no-repeat;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity .5s ease-in-out}.banner-set .frame .container[data-v-6ed9efbf]{background-size:cover;background-position:50% 50%;background-repeat:no-repeat}.banner-set .frame.active[data-v-6ed9efbf]{opacity:1;transition:opacity .5s ease-in-out}.banner-set .frame video[data-v-6ed9efbf]{position:relative;top:50%;transform:translateY(-50%)}",map:void 0,media:void 0})}),{name:"Banner",props:{template:String,container:String},computed:n({},x(["banners"])),data:function(){return{frames:[],current:-1,timer:null,fadeDuration:500,backgroundColor:"#fff",visible:!1,qr:null,displayQR:!1,frameKeywords:[],last:0}},watch:{banners:function(){var t=this,e=Date.now();this.template&&this.container&&this.banners["template-"+this.template]&&this.banners["template-"+this.template][this.container]&&(this.frames=this.banners["template-"+this.template][this.container].filter((function(o){var i=o.enabled;if(i&&o.from_date&&(i=i&&new Date(o.from_date).getTime()<=e),i&&o.to_date&&(i=i&&new Date(o.to_date).getTime()>=e),i)for(var n in o.containers)o.containers[n].url=t.getUrl(o.containers[n]);return i})),this.$emit("hasbanners",this.frames.length>0))}},methods:{visibilityChanged:function(t){this.visible=t,t?this.play():this.stop()},play:function(){var t=this;if(!(this.current>=this.frames.length)){this.frames.length>0&&this.next();var e=this.frames[this.current];if(null!=this.timer&&clearTimeout(this.timer),e&&(this.displayQR=!(!e||!e.keywords)&&e.keywords.join(",").indexOf("qr-")>-1,this.frameKeywords=e.keywords.map((function(t){return"keyword-"+t})),this.$refs.frames)){var o=this.$refs.frames.querySelector("video");o&&o.readyState?setTimeout((function(){t.playVideo(o,e.duration)}),0):this.timer=setTimeout(this.play,e.duration)}}},playVideo:function(t,e){var o=this;t.pause(),t.currentTime=0,t.play().catch((function(i){clearTimeout(o.timer),setTimeout((function(){o.playVideo(t,e)}),300)})),this.timer=setTimeout(this.play,e)},stop:function(){this.timer&&clearTimeout(this.timer)},next:function(){this.current<this.frames.length-1?this.current++:this.current=0},onClick:function(t,e){this.$emit("clicked",t,e)},isImage:function(t){return!(t.type&&"video"===t.type.substr(0,5))},isVideo:function(t){return t.type&&"video"===t.type.substr(0,5)},getUrl:function(t){return WayfinderAPI.advertisements.data.url(t.advertisement_id)}}},"data-v-6ed9efbf",false,undefined,!1,Y,void 0,void 0);o.default.use(R);var Ke=new R.Store({state:{floors:[],pois:[],poiGroups:[],loaded:!1,language:"en",languages:[],shortcuts:[],filteredPOIs:[],currentFloor:"X",building:{},yahLogo:"",currentPOI:!1,currentTab:"groups",currentGroup:!1,searchVisible:!1,reset:0,banners:{},landscape:!1,mobile:!1,maxInActivity:30},getters:{xLanguage:function(t,e){return void 0!==o.default.prototype.$wayfinder&&(t.language=o.default.prototype.$wayfinder.getLanguage()),t.language},xFloors:function(t){return void 0!==o.default.prototype.$wayfinder&&o.default.prototype.$wayfinder.building&&(t.floors=Object.freeze(o.default.prototype.$wayfinder.building.getSortedFloors())),t.floors},xLanguages:function(t){return void 0!==o.default.prototype.$wayfinder&&(t.languages=Object.freeze(Object.values(o.default.prototype.$wayfinder.getLanguages()).reverse())),t.languages},xShortcuts:function(t){if(void 0!==o.default.prototype.$wayfinder){var e=o.default.prototype.$wayfinder.getPOIGroups(),i=[];Object.keys(e).forEach((function(t){parseInt(e[t].showInTopMenu)&&i.push(Object.freeze(e[t]))})),i=(i=i.slice(0,6)).sort((function(t,e){return-(t.order-e.order)})),t.shortcuts=i}return t.shortcuts},xBuilding:function(t){return"undefined"!==o.default.prototype.$wayfinder&&(t.building=Object.freeze(Object.assign({},o.default.prototype.$wayfinder.building))),t.building},xYahLogo:function(t){void 0!==o.default.prototype.$wayfinder&&(t.yahLogo="url("+WayfinderAPI.getURL("images","get",o.default.prototype.$wayfinder.settings.getInt("kiosk.you-are-here-image",0))+")")},xPOIs:function(t){void 0!==o.default.prototype.$wayfinder&&(t.pois=Object.freeze(o.default.prototype.$wayfinder.poisArray.slice()))},xTopics:function(t){void 0!==o.default.prototype.$wayfinder&&(t.poiGroups=Object.freeze(Object.assign({},o.default.prototype.$wayfinder.poiGroups)))},xBanners:function(t){void 0!==o.default.prototype.$wayfinder&&(t.banners=Object.assign({},o.default.prototype.$wayfinder.getFilteredAdvertisements()))}},mutations:{SET_POI:function(t,e){t.currentPOI=e},SET_TAB:function(t,e){t.currentTab=e},SET_GROUP:function(t,e){t.currentGroup=e},SET_SHOW_SEARCH:function(t,e){t.searchVisible=e},SET_NEW_RESET:function(t){t.reset=t.reset+1,t.currentPOI=!1,t.currentGroup=!1},SET_LANDSCAPE:function(t,e){t.landscape=e},SET_MOBILE:function(t,e){t.mobile=e},SET_INACTIVITY_TIME:function(t,e){t.maxInActivity=e},SET_CURRENT_FLOOR:function(t,e){t.currentFloor=e},SET_FILTERED_POIS:function(t,e){t.filteredPOIs=e}},actions:{SET_CURRENT_POI:function(t,e){t.commit("SET_POI",Object.freeze(e))},SET_CURRENT_TAB:function(t,e){t.commit("SET_TAB",e)},SET_CURRENT_GROUP:function(t,e){t.commit("SET_GROUP",Object.freeze(e))},SHOW_SEARCH:function(t,e){t.commit("SET_SHOW_SEARCH",e)},SET_RESET:function(t){t.commit("SET_NEW_RESET")},SET_LANDSCAPE:function(t,e){t.commit("SET_LANDSCAPE",e)},SET_INACTIVITY_TIME:function(t,e){t.commit("SET_INACTIVITY_TIME",e)},SET_MOBILE:function(t,e){t.commit("SET_MOBILE",e)},SET_CURRENT_FLOOR:function(t,e){t.commit("SET_CURRENT_FLOOR",Object.freeze(e))},SET_FILTERED_POIS:function(t,e){t.commit("SET_FILTERED_POIS",Object.freeze(e))}}}),qe=Object.freeze({__proto__:null,WFMap:G,WFAZMenu:U,WFFlagsMenu:K,WFGroupsMenu:q,WFBuildingLogo:Z,WFShortcutsMenu:J,WFZoomMenu:tt,WFFloorsMenu:et,WFFilteredMenu:ot,WFSearch:st,WFTabs:We,WFTab:Xe,WFTabButtons:Ge,WFScrollableArea:Ve,WFBanner:Ue,WFPOI:V,WFYAH:Q,WFStore:Ke}),Ze=function(t){Object.entries(qe).forEach((function(e){var o=a(e,2),i=o[0],n=o[1];t.component(i,n)}))},Qe=Object.freeze({__proto__:null,default:Ze,WFMap:G,WFAZMenu:U,WFFlagsMenu:K,WFGroupsMenu:q,WFBuildingLogo:Z,WFShortcutsMenu:J,WFZoomMenu:tt,WFFloorsMenu:et,WFFilteredMenu:ot,WFSearch:st,WFTabs:We,WFTab:Xe,WFTabButtons:Ge,WFScrollableArea:Ve,WFBanner:Ue,WFPOI:V,WFYAH:Q,WFStore:Ke});return Object.entries(Qe).forEach((function(t){var e=a(t,2),o=e[0],i=e[1];"default"!==o&&(Ze[o]=i)})),Ze}(Vue);
|
|
25
|
+
***************************************************************************** */Te("transitionDelay"),Te("transformOrigin"),Te("transitionEnd"),Te("transitionProperty");function Oe(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,n++)i[n]=r[s];return i}var Me=function(){function t(t){this.events={},this.eventTypes={},this.registerType(t)}return t.prototype.on=function(t,e,o){return void 0===o&&(o=this),this.hasType(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},t.prototype.once=function(t,e,o){var i=this;void 0===o&&(o=this),this.hasType(t);var n=function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];i.off(t,n),e.apply(o,r)};return n.fn=e,this.on(t,n),this},t.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this.hasType(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;for(var i=o.length;i--;)(o[i][0]===e||o[i][0]&&o[i][0].fn===e)&&o.splice(i,1);return this}},t.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this.hasType(t);var i=this.events[t];if(i)for(var n,r=i.length,s=Oe(i),a=0;a<r;a++){var c=s[a],l=c[0],h=c[1];if(l&&!0===(n=l.apply(h,e)))return n}},t.prototype.registerType=function(t){var e=this;t.forEach((function(t){e.eventTypes[t]=t}))},t.prototype.destroy=function(){this.events={},this.eventTypes={}},t.prototype.hasType=function(t){var e,o=this.eventTypes;o[t]===t||(e='EventEmitter has used unknown event type: "'+t+'", should be oneof ['+Object.keys(o).map((function(t){return JSON.stringify(t)}))+"]",console.error("[BScroll warn]: "+e))},t}(),De=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(_e)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(Ee)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach((function(i){t(o,i.name,e,!!i.capture)}))},t.prototype.handleEvent=function(t){var e=t.type;this.events.some((function(o){return o.name===e&&(o.handler(t),!0)}))},t}(),Ie=function(){function t(t,e){this.indicator=t,this.options=e,this.bscroll=t.bscroll,this.startEventRegister=new De(this.indicator.el,[{name:e.disableMouse?"touchstart":"mousedown",handler:this._start.bind(this)}]),this.endEventRegister=new De(window,[{name:e.disableMouse?"touchend":"mouseup",handler:this._end.bind(this)}]),this.hooks=new Me(["touchStart","touchMove","touchEnd"])}return t.prototype._start=function(t){if(this.bscroll.scroller.actions.enabled){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.initiated=!0,this.moved=!1,this.lastPoint=e[this.indicator.keysMap.pointPos];var o=this.bscroll.options.disableMouse;this.moveEventRegister=new De(window,[{name:o?"touchmove":"mousemove",handler:this._move.bind(this)}]),this.hooks.trigger("touchStart")}},t.prototype._move=function(t){var e=(t.touches?t.touches[0]:t)[this.indicator.keysMap.pointPos];t.preventDefault(),t.stopPropagation();var o=e-this.lastPoint;if(this.lastPoint=e,!this.moved)return this.hooks.trigger("touchMove",this.moved,o),void(this.moved=!0);this.hooks.trigger("touchMove",this.moved,o)},t.prototype._end=function(t){this.initiated&&(this.initiated=!1,t.preventDefault(),t.stopPropagation(),this.moveEventRegister.destroy(),this.hooks.trigger("touchEnd",this.moved))},t.prototype.destroy=function(){this.startEventRegister.destroy(),this.moveEventRegister&&this.moveEventRegister.destroy(),this.endEventRegister.destroy()},t}(),Fe=function(){function t(t,e){this.bscroll=t,this.options=e,this.keyVals={sizeRatio:1,maxPos:0,initialSize:0},this.curPos=0,this.hooksHandlers=[],this.wrapper=e.wrapper,this.wrapperStyle=this.wrapper.style,this.el=this.wrapper.children[0],this.elStyle=this.el.style,this.bscroll=t,this.direction=e.direction,this.keysMap=this._getKeysMap(),e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this._listenHooks(e.fade,e.interactive),this.refresh()}return t.prototype._listenHooks=function(t,e){var o=this,i=this.bscroll,n=i,r=i.scroller.translater.hooks,s=i.scroller.animater.hooks;if(this._listen(n,"refresh",this.refresh),this._listen(r,"translate",this.updatePosAndSize),this._listen(s,"time",(function(t){o.setTransitionTime(t)})),this._listen(s,"timeFunction",(function(t){o.setTransitionTimingFunction(t)})),t&&(this._listen(n,"scrollEnd",(function(){o.fade()})),this._listen(n,"scrollStart",(function(){o.fade(!0)})),i.eventTypes.mousewheelStart&&i.eventTypes.mousewheelEnd&&(this._listen(n,"mousewheelStart",(function(){o.fade(!0)})),this._listen(n,"mousewheelEnd",(function(){o.fade()})))),e){var a=this.bscroll.options.disableMouse;this.eventHandler=new Ie(this,{disableMouse:a});var c=this.eventHandler.hooks;this._listen(c,"touchStart",this.startHandler),this._listen(c,"touchMove",this.moveHandler),this._listen(c,"touchEnd",this.endHandler)}},t.prototype._getKeysMap=function(){return"vertical"===this.direction?{hasScroll:"hasVerticalScroll",size:"height",wrapperSize:"clientHeight",scrollerSize:"scrollerHeight",maxScroll:"maxScrollY",pos:"y",pointPos:"pageY",translate:"translateY"}:{hasScroll:"hasHorizontalScroll",size:"width",wrapperSize:"clientWidth",scrollerSize:"scrollerWidth",maxScroll:"maxScrollX",pos:"x",pointPos:"pageX",translate:"translateX"}},t.prototype.fade=function(t){var e=t?250:500;this.wrapperStyle[xe]=e+"ms",this.wrapperStyle.opacity=t?"1":"0",this.visible=t?1:0},t.prototype.refresh=function(){var t=this.keysMap.hasScroll;if(this._setShowBy(this.bscroll[t])){var e=this.keysMap,o=e.wrapperSize,i=e.scrollerSize,n=e.maxScroll;this.keyVals=this._refreshKeyValues(this.wrapper[o],this.bscroll[i],this.bscroll[n]),this.updatePosAndSize({x:this.bscroll.x,y:this.bscroll.y})}},t.prototype._setShowBy=function(t){return t?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},t.prototype._refreshKeyValues=function(t,e,o){var i=Math.max(Math.round(t*t/(e||t||1)),8),n=t-i;return{initialSize:i,maxPos:n,sizeRatio:n/o}},t.prototype.updatePosAndSize=function(t){var e=this._refreshPosAndSizeValue(t,this.keyVals),o=e.pos,i=e.size;this.curPos=o,this._refreshPosAndSizeStyle(i,o)},t.prototype._refreshPosAndSizeValue=function(t,e){var o,i=this.keysMap.pos,n=e.sizeRatio,r=e.initialSize,s=e.maxPos,a=Math.round(n*t[i]);return a<0?(o=Math.max(r+3*a,8),a=0):a>s?a=s+r-(o=Math.max(r-3*(a-s),8)):o=r,{pos:a,size:o}},t.prototype._refreshPosAndSizeStyle=function(t,e){var o=this.keysMap,i=o.translate,n=o.size;this.elStyle[n]=t+"px",this.elStyle[Pe]=i+"("+e+"px)"+this.bscroll.options.translateZ},t.prototype.setTransitionTime=function(t){void 0===t&&(t=0),this.elStyle[xe]=t+"ms"},t.prototype.setTransitionTimingFunction=function(t){this.elStyle[Ce]=t},t.prototype.startHandler=function(){this.setTransitionTime(),this.bscroll.trigger("beforeScrollStart")},t.prototype.moveHandler=function(t,e){t||this.bscroll.trigger("scrollStart");var o=this._calScrollDesPos(this.curPos,e,this.keyVals);"vertical"===this.direction?this.bscroll.scrollTo(this.bscroll.x,o):this.bscroll.scrollTo(o,this.bscroll.y),this.bscroll.trigger("scroll",{x:this.bscroll.x,y:this.bscroll.y})},t.prototype._calScrollDesPos=function(t,e,o){var i=o.maxPos,n=o.sizeRatio,r=t+e;return r<0?r=0:r>i&&(r=i),Math.round(r/n)},t.prototype.endHandler=function(t){t&&this.bscroll.trigger("scrollEnd",{x:this.bscroll.x,y:this.bscroll.y})},t.prototype.destroy=function(){this.options.interactive&&this.eventHandler.destroy(),this.wrapper.parentNode.removeChild(this.wrapper),this.hooksHandlers.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksHandlers.length=0},t.prototype._listen=function(t,e,o){t.on(e,o,this),this.hooksHandlers.push([t,e,o])},t}(),Le=function(){function t(t){this.indicators=[],this.indicators=this.createIndicators(t),t.on(t.eventTypes.destroy,this.destroy,this)}return t.prototype.createIndicators=function(t){var e,o=this,i=t.options.scrollbar,n=i.fade,r=void 0===n||n,s=i.interactive,a=void 0!==s&&s,c={scrollX:"horizontal",scrollY:"vertical"},l=[];return Object.keys(c).forEach((function(i){var n=c[i];t.options[i]&&(e={wrapper:o.createIndicatorElement(n),direction:n,fade:r,interactive:a},t.wrapper.appendChild(e.wrapper),l.push(new Fe(t,e)))})),l},t.prototype.createIndicatorElement=function(t){var e=document.createElement("div"),o=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",o.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",o.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",o.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",o.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(o),e},t.prototype.destroy=function(){for(var t=0,e=this.indicators;t<e.length;t++){e[t].destroy()}},t.pluginName="scrollbar",t}();var Be="undefined"!=typeof window,$e=Be&&navigator.userAgent.toLowerCase();$e&&/wechatdevtools/.test($e),$e&&$e.indexOf("android"),function(){if("string"==typeof $e){var t=/os (\d\d?_\d(_\d)?)/.exec($e);if(!t)return!1;var e=t[1].split("_").map((function(t){return parseInt(t,10)}));return!!(e[0]>=13&&e[1]>=4)}}();var Ae=Be&&document.createElement("div").style,Ne=function(){if(!Be)return!1;for(var t=0,e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}];t<e.length;t++){var o=e[t];if(void 0!==Ae[o.value])return o.key}return!1}();function Re(t){return!1===Ne?t:"standard"===Ne?"transitionEnd"===t?"transitionend":t:Ne+t.charAt(0).toUpperCase()+t.substr(1)}function ze(t,e,o,i){t.addEventListener(e,o,{passive:!1,capture:!!i})}function je(t,e,o,i){t.removeEventListener(e,o,{capture:!!i})}Ne&&"standard"!==Ne&&Ne.toLowerCase();Re("transform"),Re("transition");Be&&Re("perspective"),Re("transitionTimingFunction"),Re("transitionDuration"),Re("transitionDelay"),Re("transformOrigin"),Re("transitionEnd"),Re("transitionProperty");var He=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(ze)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(je)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach((function(i){t(o,i.name,e,!!i.capture)}))},t.prototype.handleEvent=function(t){var e=t.type;this.events.some((function(o){return o.name===e&&(o.handler(t),!0)}))},t}(),Ye=function(){function t(t){this.scroll=t,this.wheelEndTimer=0,this.wheelMoveTimer=0,this.wheelStart=!1,this.init()}return t.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.registerEvent()},t.prototype.handleBScroll=function(){this.scroll.registerType(["alterOptions","mousewheelStart","mousewheelMove","mousewheelEnd"])},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.mouseWheel?{}:this.scroll.options.mouseWheel;this.mouseWheelOpt=function(t,e){for(var o in e)t[o]=e[o];return t}({speed:20,invert:!1,easeTime:300,discreteTime:400,throttleTime:0,dampingFactor:.1},t)},t.prototype.handleHooks=function(){this.hooksFn=[],this.registerHooks(this.scroll.hooks,"destroy",this.destroy)},t.prototype.registerEvent=function(){this.eventRegister=new He(this.scroll.scroller.wrapper,[{name:"wheel",handler:this.wheelHandler.bind(this)},{name:"mousewheel",handler:this.wheelHandler.bind(this)},{name:"DOMMouseScroll",handler:this.wheelHandler.bind(this)}])},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.wheelHandler=function(t){if(this.scroll.enabled){this.beforeHandler(t),this.wheelStart||(this.wheelStartHandler(t),this.wheelStart=!0);var e=this.getWheelDelta(t);this.wheelMoveHandler(e),this.wheelEndDetector(e)}},t.prototype.wheelStartHandler=function(t){this.cleanCache();var e=this.scroll.scroller,o=e.scrollBehaviorX,i=e.scrollBehaviorY;o.setMovingDirection(0),i.setMovingDirection(0),o.setDirection(0),i.setDirection(0),this.scroll.trigger(this.scroll.eventTypes.alterOptions,this.mouseWheelOpt),this.scroll.trigger(this.scroll.eventTypes.mousewheelStart)},t.prototype.cleanCache=function(){this.deltaCache=[]},t.prototype.wheelMoveHandler=function(t){var e=this,o=this.mouseWheelOpt,i=o.throttleTime,n=o.dampingFactor;if(i&&this.wheelMoveTimer)this.deltaCache.push(t);else{var r=this.deltaCache.reduce((function(t,e){return{x:t.x+e.x,y:t.y+e.y}}),{x:0,y:0});this.cleanCache();var s=this.scroll.scroller,a=s.scrollBehaviorX,c=s.scrollBehaviorY;a.setMovingDirection(-t.directionX),c.setMovingDirection(-t.directionY),a.setDirection(t.x),c.setDirection(t.y);var l=a.performDampingAlgorithm(Math.round(t.x)+r.x,n),h=c.performDampingAlgorithm(Math.round(t.y)+r.x,n);if(!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove,{x:l,y:h})){var u=this.getEaseTime();l===this.scroll.x&&h===this.scroll.y||this.scroll.scrollTo(l,h,u)}i&&(this.wheelMoveTimer=window.setTimeout((function(){e.wheelMoveTimer=0}),i))}},t.prototype.wheelEndDetector=function(t){var e=this;window.clearTimeout(this.wheelEndTimer),this.wheelEndTimer=window.setTimeout((function(){e.wheelStart=!1,window.clearTimeout(e.wheelMoveTimer),e.wheelMoveTimer=0,e.scroll.trigger(e.scroll.eventTypes.mousewheelEnd,t)}),this.mouseWheelOpt.discreteTime)},t.prototype.getWheelDelta=function(t){var e=this.mouseWheelOpt,o=e.speed,i=0,n=0,r=e.invert?-1:1;switch(!0){case"deltaX"in t:1===t.deltaMode?(i=-t.deltaX*o,n=-t.deltaY*o):(i=-t.deltaX,n=-t.deltaY);break;case"wheelDeltaX"in t:i=t.wheelDeltaX/120*o,n=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:i=n=t.wheelDelta/120*o;break;case"detail"in t:i=n=-t.detail/3*o}return i*=r,n*=r,this.scroll.hasVerticalScroll||(i=n,n=0),this.scroll.hasHorizontalScroll||(i=0),{x:i,y:n,directionX:i>0?-1:i<0?1:0,directionY:n>0?-1:n<0?1:0}},t.prototype.beforeHandler=function(t){var e=this.scroll.options,o=e.preventDefault,i=e.stopPropagation,n=e.preventDefaultException;o&&!function(t,e){for(var o in e)if(e[o].test(t[o]))return!0;return!1}(t.target,n)&&t.preventDefault(),i&&t.stopPropagation()},t.prototype.getEaseTime=function(){var t,e=this.mouseWheelOpt.easeTime;return e<100&&(t="easeTime should be greater than 100.If mouseWheel easeTime is too small,scrollEnd will be triggered many times.",console.error("[BScroll warn]: "+t)),Math.max(e,100)},t.prototype.destroy=function(){this.eventRegister.destroy(),window.clearTimeout(this.wheelEndTimer),window.clearTimeout(this.wheelMoveTimer),this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)}))},t.pluginName="mouseWheel",t.applyOrder="pre",t}();ge.use(Le),ge.use(Ye);var We=j({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"tabs",staticClass:"tabs",class:["tabs-"+t.activeTab]},[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-69629074_0",{source:".tabs[data-v-69629074]{overflow:hidden}",map:void 0,media:void 0})}),{name:"Tabs",props:{activeTab:""},data:function(){return{tabs:[],activeTabIndex:0,currentTab:null,scroll:null,scrollOptions:{scrollbar:{fade:!1,interactive:!0},click:!0,mouseWheel:{speed:20,invert:!1}}}},created:function(){this.tabs=this.$children},updated:function(){var t=this;this.$nextTick((function(){t.scroll&&null!=t.currentTab&&t.scroll.refresh()}))},mounted:function(){var t=this;this.$props.activeTab?this.activate(this.$props.activeTab):console.log("no active tab"),this.$nextTick((function(){null!=t.currentTab&&(t.scroll=new ge(t.$refs.tabs,t.scrollOptions))}))},watch:{activeTab:function(t){t&&this.activate(t)}},methods:{activate:function(){for(var t in this.currentTab=null,this.tabs)this.tabs[t].name==this.$props.activeTab?(this.tabs[t].isActive=!0,this.$emit("tabChanged",this.tabs[t]),this.currentTab=this.tabs[t]):this.tabs[t].isActive=!1;"search"!==this.$props.activeTab&&this.makeScroll()},makeScroll:function(){var t=this;this.$nextTick((function(){t.$nextTick((function(){t.scroll&&(t.scroll.destroy(),t.scroll=null),null!=t.currentTab&&(t.scroll=new ge(t.$refs.tabs,t.scrollOptions))}))}))},move:function(){}}},"data-v-69629074",false,undefined,!1,Y,void 0,void 0),Xe=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isActive?o("section",{staticClass:"tab",class:{active:t.isActive}},[t._t("default")],2):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-6204c45c_0",{source:".tab[data-v-6204c45c]{display:none}.tab.active[data-v-6204c45c]{display:blocK}",map:void 0,media:void 0})}),{name:"Tab",props:{name:""},data:function(){return{isActive:!1,isVisible:!0}},created:function(){},methods:{}},"data-v-6204c45c",false,undefined,!1,Y,void 0,void 0),Ge=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"tab-buttons"},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.mobile&&!t.landscape,expression:"mobile && !landscape"}],staticClass:"item tab-map",class:{active:"map"==t.currentTab},attrs:{"data-translation-element":"map"},on:{click:function(e){return t.switchTab("map")}}}),t._v(" "),o("div",{staticClass:"item tab-topics",class:{active:"groups"==t.currentTab||"group-pois"==t.currentTab},attrs:{"data-translation-element":"topics"},on:{click:function(e){return t.switchTab("groups")}}}),t._v(" "),o("div",{staticClass:"item tab-az",class:{active:"az"==t.currentTab},attrs:{"data-translation-element":"az"},on:{click:function(e){return t.switchTab("az")}}}),t._v(" "),o("div",{staticClass:"item tab-search",class:{active:"search"==t.currentTab},attrs:{"data-translation-element":"search"},on:{click:function(e){return t.switchTab("search")}}})])},staticRenderFns:[]},(function(t){t&&t("data-v-ea10d5bc_0",{source:".tab-buttons[data-v-ea10d5bc]{display:flex;align-content:stretch;justify-content:space-between}.tab-buttons .item[data-v-ea10d5bc]{background-size:auto 30%;background-repeat:no-repeat}",map:void 0,media:void 0})}),{name:"Tabs",computed:n({},C(["currentTab","searchVisible","mobile","landscape","shortcuts","language"])),data:function(){return{toilet:!1,toiletsIcon:!1}},methods:{switchTab:function(t){this.$emit("switchTab",t)}}},"data-v-ea10d5bc",false,undefined,!1,Y,void 0,void 0);ge.use(Le),ge.use(Ye);var Ve=j({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"area",staticClass:"scrollable"},[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-741c56d1_0",{source:".scrollable[data-v-741c56d1]{overflow:hidden;width:100%;height:100%}",map:void 0,media:void 0})}),{name:"ScrollableArea",data:function(){return{scroll:null,changed:0,hasSlotContent:!1,observer:null,scrollOptions:{scrollbar:{fade:!1,interactive:!0},click:!0,mouseWheel:{speed:20,invert:!1}}}},beforeUpdate:function(){this.hasSlotContent=this.checkForSlotContent()},beforeDestroy:function(){this.observer.disconnect()},created:function(){this.hasSlotContent=this.checkForSlotContent()},updated:function(){var t=this;this.$nextTick((function(){t.scroll&&t.scroll.refresh()}))},mounted:function(){var t=this;this.$nextTick((function(){t.scroll||(t.scroll=new ge(t.$refs.area,t.scrollOptions))}));var e=["scrollable","bscroll-vertical-scrollbar"];this.observer=new MutationObserver(function(t){var o,i,n=!1;for(var r in t)o=(i=t[r]).target.className,"attributes"==i.type||e.indexOf(o)>-1||(n=!0);n&&this.changed++}.bind(this)),this.observer.observe(this.$refs.area,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},watch:{changed:function(t){t&&this.makeScroll()},hasSlotContent:function(t){}},methods:{activate:function(){this.makeScroll()},checkForSlotContent:function(){return this.$slots.default&&this.$slots.default.reduce((function(t,e){return t||e.tag||e.text&&e.text.trim()}),!1)},makeScroll:function(){var t=this;this.$nextTick((function(){t.$nextTick((function(){t.scroll&&(t.scroll.destroy(),t.scroll=null),t.scroll=new ge(t.$refs.area,t.scrollOptions)}))}))},reset:function(){var t=this;this.$nextTick((function(){t.scroll&&t.scroll.refresh()}))}}},"data-v-741c56d1",false,undefined,!1,Y,void 0,void 0),Ue=j({render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.visibilityChanged,expression:"visibilityChanged"}],ref:"frames",staticClass:"banner-set"},t._l(t.frames,(function(e,i){return o("div",{key:e.id,staticClass:"frame",class:[{active:i==t.current},t.frameKeywords]},t._l(e.containers,(function(i){return o("div",{key:i.id,staticClass:"container",style:{left:i.left+"%",top:i.top+"%",width:i.width+"%",height:i.height+"%",backgroundImage:"url('"+i.url+"')"},on:{click:function(o){return t.onClick(e,i)}}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.displayQR,expression:"displayQR"}],staticClass:"qr",domProps:{innerHTML:t._s(t.qr)}}),t._v(" "),t.isVideo(i)?o("video",{attrs:{width:"100%",height:"auto",src:i.url,muted:""},domProps:{muted:!0}}):t._e(),t._v("'\n\t\t")])})),0)})),0)},staticRenderFns:[]},(function(t){t&&t("data-v-6ed9efbf_0",{source:".banner-set[data-v-6ed9efbf]{position:relative;width:100%;height:100%}.banner-set .frame[data-v-6ed9efbf]{width:100%;height:100%;position:absolute;background-size:cover;background-position:50% 50%;background-repeat:no-repeat;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity .5s ease-in-out}.banner-set .frame .container[data-v-6ed9efbf]{background-size:cover;background-position:50% 50%;background-repeat:no-repeat}.banner-set .frame.active[data-v-6ed9efbf]{opacity:1;transition:opacity .5s ease-in-out}.banner-set .frame video[data-v-6ed9efbf]{position:relative;top:50%;transform:translateY(-50%)}",map:void 0,media:void 0})}),{name:"Banner",props:{template:String,container:String},computed:n({},C(["banners"])),data:function(){return{frames:[],current:-1,timer:null,fadeDuration:500,backgroundColor:"#fff",visible:!1,qr:null,displayQR:!1,frameKeywords:[],last:0}},watch:{banners:function(){var t=this,e=Date.now();this.template&&this.container&&this.banners["template-"+this.template]&&this.banners["template-"+this.template][this.container]&&(this.frames=this.banners["template-"+this.template][this.container].filter((function(o){var i=o.enabled;if(i&&o.from_date&&(i=i&&new Date(o.from_date).getTime()<=e),i&&o.to_date&&(i=i&&new Date(o.to_date).getTime()>=e),i)for(var n in o.containers)o.containers[n].url=t.getUrl(o.containers[n]);return i})),this.$emit("hasbanners",this.frames.length>0))}},methods:{visibilityChanged:function(t){this.visible=t,t?this.play():this.stop()},play:function(){var t=this;if(!(this.current>=this.frames.length)){this.frames.length>0&&this.next();var e=this.frames[this.current];if(null!=this.timer&&clearTimeout(this.timer),e&&(this.displayQR=!(!e||!e.keywords)&&e.keywords.join(",").indexOf("qr-")>-1,this.frameKeywords=e.keywords.map((function(t){return"keyword-"+t})),this.$refs.frames)){var o=this.$refs.frames.querySelector("video");o&&o.readyState?setTimeout((function(){t.playVideo(o,e.duration)}),0):this.timer=setTimeout(this.play,e.duration)}}},playVideo:function(t,e){var o=this;t.pause(),t.currentTime=0,t.play().catch((function(i){clearTimeout(o.timer),setTimeout((function(){o.playVideo(t,e)}),300)})),this.timer=setTimeout(this.play,e)},stop:function(){this.timer&&clearTimeout(this.timer)},next:function(){this.current<this.frames.length-1?this.current++:this.current=0},onClick:function(t,e){this.$emit("clicked",t,e)},isImage:function(t){return!(t.type&&"video"===t.type.substr(0,5))},isVideo:function(t){return t.type&&"video"===t.type.substr(0,5)},getUrl:function(t){return WayfinderAPI.advertisements.data.url(t.advertisement_id)}}},"data-v-6ed9efbf",false,undefined,!1,Y,void 0,void 0);o.default.use(R);var Ke=new R.Store({state:{floors:[],pois:[],poiGroups:[],loaded:!1,language:"en",languages:[],shortcuts:[],filteredPOIs:[],currentFloor:"X",building:{},yahLogo:"",currentPOI:!1,currentTab:"groups",currentGroup:!1,searchVisible:!1,reset:0,banners:{},landscape:!1,mobile:!1,maxInActivity:30},getters:{xLanguage:function(t,e){return void 0!==o.default.prototype.$wayfinder&&(t.language=o.default.prototype.$wayfinder.getLanguage()),t.language},xFloors:function(t){return void 0!==o.default.prototype.$wayfinder&&o.default.prototype.$wayfinder.building&&(t.floors=Object.freeze(o.default.prototype.$wayfinder.building.getSortedFloors())),t.floors},xLanguages:function(t){return void 0!==o.default.prototype.$wayfinder&&(t.languages=Object.freeze(Object.values(o.default.prototype.$wayfinder.getLanguages()).reverse())),t.languages},xShortcuts:function(t){if(void 0!==o.default.prototype.$wayfinder){var e=o.default.prototype.$wayfinder.getPOIGroups(),i=[];Object.keys(e).forEach((function(t){parseInt(e[t].showInTopMenu)&&i.push(Object.freeze(e[t]))})),i=(i=i.slice(0,6)).sort((function(t,e){return-(t.order-e.order)})),t.shortcuts=i}return t.shortcuts},xBuilding:function(t){return"undefined"!==o.default.prototype.$wayfinder&&(t.building=Object.freeze(Object.assign({},o.default.prototype.$wayfinder.building))),t.building},xYahLogo:function(t){void 0!==o.default.prototype.$wayfinder&&(t.yahLogo="url("+WayfinderAPI.getURL("images","get",o.default.prototype.$wayfinder.settings.getInt("kiosk.you-are-here-image",0))+")")},xPOIs:function(t){void 0!==o.default.prototype.$wayfinder&&(t.pois=Object.freeze(o.default.prototype.$wayfinder.poisArray.slice()))},xTopics:function(t){void 0!==o.default.prototype.$wayfinder&&(t.poiGroups=Object.freeze(Object.assign({},o.default.prototype.$wayfinder.poiGroups)))},xBanners:function(t){void 0!==o.default.prototype.$wayfinder&&(t.banners=Object.assign({},o.default.prototype.$wayfinder.getFilteredAdvertisements()))}},mutations:{SET_POI:function(t,e){t.currentPOI=e},SET_TAB:function(t,e){t.currentTab=e},SET_GROUP:function(t,e){t.currentGroup=e},SET_SHOW_SEARCH:function(t,e){t.searchVisible=e},SET_NEW_RESET:function(t){t.reset=t.reset+1,t.currentPOI=!1,t.currentGroup=!1},SET_LANDSCAPE:function(t,e){t.landscape=e},SET_MOBILE:function(t,e){t.mobile=e},SET_INACTIVITY_TIME:function(t,e){t.maxInActivity=e},SET_CURRENT_FLOOR:function(t,e){t.currentFloor=e},SET_FILTERED_POIS:function(t,e){t.filteredPOIs=e}},actions:{SET_CURRENT_POI:function(t,e){t.commit("SET_POI",Object.freeze(e))},SET_CURRENT_TAB:function(t,e){t.commit("SET_TAB",e)},SET_CURRENT_GROUP:function(t,e){t.commit("SET_GROUP",Object.freeze(e))},SHOW_SEARCH:function(t,e){t.commit("SET_SHOW_SEARCH",e)},SET_RESET:function(t){t.commit("SET_NEW_RESET")},SET_LANDSCAPE:function(t,e){t.commit("SET_LANDSCAPE",e)},SET_INACTIVITY_TIME:function(t,e){t.commit("SET_INACTIVITY_TIME",e)},SET_MOBILE:function(t,e){t.commit("SET_MOBILE",e)},SET_CURRENT_FLOOR:function(t,e){t.commit("SET_CURRENT_FLOOR",Object.freeze(e))},SET_FILTERED_POIS:function(t,e){t.commit("SET_FILTERED_POIS",Object.freeze(e))}}}),qe=Object.freeze({__proto__:null,WFMap:G,WFAZMenu:U,WFFlagsMenu:K,WFGroupsMenu:q,WFBuildingLogo:Z,WFShortcutsMenu:J,WFZoomMenu:tt,WFFloorsMenu:et,WFFilteredMenu:ot,WFSearch:st,WFTabs:We,WFTab:Xe,WFTabButtons:Ge,WFScrollableArea:Ve,WFBanner:Ue,WFPOI:V,WFYAH:Q,WFStore:Ke}),Ze=function(t){Object.entries(qe).forEach((function(e){var o=a(e,2),i=o[0],n=o[1];t.component(i,n)}))},Qe=Object.freeze({__proto__:null,default:Ze,WFMap:G,WFAZMenu:U,WFFlagsMenu:K,WFGroupsMenu:q,WFBuildingLogo:Z,WFShortcutsMenu:J,WFZoomMenu:tt,WFFloorsMenu:et,WFFilteredMenu:ot,WFSearch:st,WFTabs:We,WFTab:Xe,WFTabButtons:Ge,WFScrollableArea:Ve,WFBanner:Ue,WFPOI:V,WFYAH:Q,WFStore:Ke});return Object.entries(Qe).forEach((function(t){var e=a(t,2),o=e[0],i=e[1];"default"!==o&&(Ze[o]=i)})),Ze}(Vue);
|
|
@@ -1670,7 +1670,7 @@ var __vue_component__$f = /*#__PURE__*/normalizeComponent({
|
|
|
1670
1670
|
default: null
|
|
1671
1671
|
}
|
|
1672
1672
|
},
|
|
1673
|
-
computed: _objectSpread2(_objectSpread2({}, mapState(['pois', 'language'
|
|
1673
|
+
computed: _objectSpread2(_objectSpread2({}, mapState(['pois', 'language'])), {}, {
|
|
1674
1674
|
sortedPOIs: function sortedPOIs() {
|
|
1675
1675
|
var _this = this;
|
|
1676
1676
|
|
|
@@ -1712,7 +1712,7 @@ var __vue_render__$e = function __vue_render__() {
|
|
|
1712
1712
|
|
|
1713
1713
|
return _c('div', {
|
|
1714
1714
|
staticClass: "az-menu"
|
|
1715
|
-
}, [_vm._ssrNode("<ul class=\"list\" data-v-
|
|
1715
|
+
}, [_vm._ssrNode("<ul class=\"list\" data-v-2e32f9f2>", "</ul>", _vm._l(_vm.sortedPOIs, function (poiitem) {
|
|
1716
1716
|
return _c('li', {
|
|
1717
1717
|
directives: [{
|
|
1718
1718
|
name: "touch",
|
|
@@ -1755,10 +1755,10 @@ var __vue_staticRenderFns__$e = [];
|
|
|
1755
1755
|
var __vue_inject_styles__$e = undefined;
|
|
1756
1756
|
/* scoped */
|
|
1757
1757
|
|
|
1758
|
-
var __vue_scope_id__$e = "data-v-
|
|
1758
|
+
var __vue_scope_id__$e = "data-v-2e32f9f2";
|
|
1759
1759
|
/* module identifier */
|
|
1760
1760
|
|
|
1761
|
-
var __vue_module_identifier__$e = "data-v-
|
|
1761
|
+
var __vue_module_identifier__$e = "data-v-2e32f9f2";
|
|
1762
1762
|
/* functional template */
|
|
1763
1763
|
|
|
1764
1764
|
var __vue_is_functional_template__$e = false;
|
|
@@ -1920,6 +1920,13 @@ var __vue_component__$d = /*#__PURE__*/normalizeComponent({
|
|
|
1920
1920
|
_this2.$emit('clicked', group);
|
|
1921
1921
|
};
|
|
1922
1922
|
},
|
|
1923
|
+
onPOICLick: function onPOICLick(poi) {
|
|
1924
|
+
var _this3 = this;
|
|
1925
|
+
|
|
1926
|
+
return function () {
|
|
1927
|
+
_this3.$emit('poiClicked', poi);
|
|
1928
|
+
};
|
|
1929
|
+
},
|
|
1923
1930
|
reset: function reset() {
|
|
1924
1931
|
this.$store.dispatch('SET_CURRENT_GROUP', false);
|
|
1925
1932
|
},
|
|
@@ -1950,7 +1957,7 @@ var __vue_render__$c = function __vue_render__() {
|
|
|
1950
1957
|
|
|
1951
1958
|
return _c('div', {
|
|
1952
1959
|
staticClass: "topics-menu"
|
|
1953
|
-
}, [_vm._ssrNode("<ul class=\"list\" data-v-
|
|
1960
|
+
}, [_vm._ssrNode("<ul class=\"list\" data-v-6c5ea2fc>", "</ul>", _vm._l(_vm.sortedGroups, function (topic) {
|
|
1954
1961
|
return _c('li', {
|
|
1955
1962
|
directives: [{
|
|
1956
1963
|
name: "touch",
|
|
@@ -1964,15 +1971,25 @@ var __vue_render__$c = function __vue_render__() {
|
|
|
1964
1971
|
class: {
|
|
1965
1972
|
"active": _vm.currentGroup && topic.id == _vm.currentGroup.id
|
|
1966
1973
|
}
|
|
1967
|
-
}, [_vm._ssrNode("<label class=\"name\" data-v-
|
|
1974
|
+
}, [_vm._ssrNode("<div class=\"item-content\" data-v-6c5ea2fc><label class=\"name\" data-v-6c5ea2fc>" + _vm._s(topic.getName(_vm.language)) + "</label> " + (_vm.showPOICount ? "<label class=\"count\" data-v-6c5ea2fc>" + _vm._ssrEscape(_vm._s(topic.pois.length)) + "</label>" : "<!---->") + "</div> " + (topic.childGroups.length > 0 && _vm.showSubGroups ? "<ul" + _vm._ssrStyle(null, null, {
|
|
1968
1975
|
display: _vm.currentGroup && topic.id == _vm.currentGroup.id ? '' : 'none'
|
|
1969
|
-
}) + " data-v-
|
|
1970
|
-
return "<li data-v-
|
|
1971
|
-
}) + "</ul>" : "<!---->") + " "
|
|
1976
|
+
}) + " data-v-6c5ea2fc>" + _vm._ssrList(_vm.subGroups(topic.childGroups), function (subtopic) {
|
|
1977
|
+
return "<li data-v-6c5ea2fc><label class=\"name\" data-v-6c5ea2fc>" + _vm._s(subtopic.getName(_vm.language)) + "</label> " + (_vm.showPOICount ? "<label class=\"count\" data-v-6c5ea2fc>" + _vm._ssrEscape(_vm._s(subtopic.pois.length)) + "</label>" : "<!---->") + "</li>";
|
|
1978
|
+
}) + "</ul>" : "<!---->") + " "), topic.pois.length > 0 && _vm.showPOIs ? _vm._ssrNode("<ul class=\"list sublist\"" + _vm._ssrStyle(null, null, {
|
|
1972
1979
|
display: _vm.currentGroup && topic.id == _vm.currentGroup.id ? '' : 'none'
|
|
1973
|
-
}) + " data-v-
|
|
1974
|
-
return
|
|
1975
|
-
|
|
1980
|
+
}) + " data-v-6c5ea2fc>", "</ul>", _vm._l(topic.pois, function (poi) {
|
|
1981
|
+
return _c('li', {
|
|
1982
|
+
directives: [{
|
|
1983
|
+
name: "touch",
|
|
1984
|
+
rawName: "v-touch:tap",
|
|
1985
|
+
value: _vm.onPOICLick(poi),
|
|
1986
|
+
expression: "onPOICLick(poi)",
|
|
1987
|
+
arg: "tap"
|
|
1988
|
+
}],
|
|
1989
|
+
key: poi.id,
|
|
1990
|
+
staticClass: "item list-item"
|
|
1991
|
+
}, [_vm._ssrNode("<label class=\"name\" data-v-6c5ea2fc>" + _vm._s(poi.getName(_vm.language)) + "</label>")]);
|
|
1992
|
+
}), 0) : _vm._e()], 2);
|
|
1976
1993
|
}), 0)]);
|
|
1977
1994
|
};
|
|
1978
1995
|
|
|
@@ -1981,8 +1998,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
1981
1998
|
|
|
1982
1999
|
var __vue_inject_styles__$c = function __vue_inject_styles__(inject) {
|
|
1983
2000
|
if (!inject) return;
|
|
1984
|
-
inject("data-v-
|
|
1985
|
-
source: ".az-menu[data-v-
|
|
2001
|
+
inject("data-v-6c5ea2fc_0", {
|
|
2002
|
+
source: ".az-menu[data-v-6c5ea2fc]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-6c5ea2fc]{list-style:none}.az-menu ul[data-v-6c5ea2fc]{margin:0;padding:0}",
|
|
1986
2003
|
map: undefined,
|
|
1987
2004
|
media: undefined
|
|
1988
2005
|
});
|
|
@@ -1990,10 +2007,10 @@ var __vue_inject_styles__$c = function __vue_inject_styles__(inject) {
|
|
|
1990
2007
|
/* scoped */
|
|
1991
2008
|
|
|
1992
2009
|
|
|
1993
|
-
var __vue_scope_id__$c = "data-v-
|
|
2010
|
+
var __vue_scope_id__$c = "data-v-6c5ea2fc";
|
|
1994
2011
|
/* module identifier */
|
|
1995
2012
|
|
|
1996
|
-
var __vue_module_identifier__$c = "data-v-
|
|
2013
|
+
var __vue_module_identifier__$c = "data-v-6c5ea2fc";
|
|
1997
2014
|
/* functional template */
|
|
1998
2015
|
|
|
1999
2016
|
var __vue_is_functional_template__$c = false;
|
|
@@ -5895,7 +5912,8 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
5895
5912
|
|
|
5896
5913
|
return _c('div', {
|
|
5897
5914
|
ref: "tabs",
|
|
5898
|
-
staticClass: "tabs"
|
|
5915
|
+
staticClass: "tabs",
|
|
5916
|
+
class: ['tabs-' + _vm.activeTab]
|
|
5899
5917
|
}, [_vm._t("default")], 2);
|
|
5900
5918
|
};
|
|
5901
5919
|
|
|
@@ -5904,8 +5922,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
5904
5922
|
|
|
5905
5923
|
var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
5906
5924
|
if (!inject) return;
|
|
5907
|
-
inject("data-v-
|
|
5908
|
-
source: ".tabs[data-v-
|
|
5925
|
+
inject("data-v-69629074_0", {
|
|
5926
|
+
source: ".tabs[data-v-69629074]{overflow:hidden}",
|
|
5909
5927
|
map: undefined,
|
|
5910
5928
|
media: undefined
|
|
5911
5929
|
});
|
|
@@ -5913,10 +5931,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
|
5913
5931
|
/* scoped */
|
|
5914
5932
|
|
|
5915
5933
|
|
|
5916
|
-
var __vue_scope_id__$4 = "data-v-
|
|
5934
|
+
var __vue_scope_id__$4 = "data-v-69629074";
|
|
5917
5935
|
/* module identifier */
|
|
5918
5936
|
|
|
5919
|
-
var __vue_module_identifier__$4 = "data-v-
|
|
5937
|
+
var __vue_module_identifier__$4 = "data-v-69629074";
|
|
5920
5938
|
/* functional template */
|
|
5921
5939
|
|
|
5922
5940
|
var __vue_is_functional_template__$4 = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3dwayfinder/wayfinder-vue-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
4
4
|
"description": "VueJS UI components for 3D Wayfinder floor plans",
|
|
5
5
|
"main": "dist/wayfinder-vue-components.ssr.js",
|
|
6
6
|
"browser": "dist/wayfinder-vue-components.esm.js",
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
<div class="topics-menu">
|
|
3
3
|
<ul class="list">
|
|
4
4
|
<li class="item list-item" v-touch:tap="onClick(topic)" :class='{"active": currentGroup && topic.id == currentGroup.id}' v-for="topic in sortedGroups" :key='topic.id' >
|
|
5
|
-
<
|
|
6
|
-
|
|
5
|
+
<div class="item-content">
|
|
6
|
+
<label class="name" v-html="topic.getName(language)"></label>
|
|
7
|
+
<label class="count" v-if="showPOICount">{{topic.pois.length}}</label>
|
|
8
|
+
</div>
|
|
7
9
|
<ul v-if="topic.childGroups.length > 0 && showSubGroups" v-show="currentGroup && topic.id == currentGroup.id">
|
|
8
10
|
<li v-for="subtopic in subGroups(topic.childGroups)" :key='subtopic.id'>
|
|
9
11
|
<label class="name" v-html="subtopic.getName(language)"></label>
|
|
10
12
|
<label class="count" v-if="showPOICount">{{subtopic.pois.length}}</label>
|
|
11
13
|
</li>
|
|
12
14
|
</ul>
|
|
13
|
-
<ul v-if="topic.pois.length > 0 && showPOIs" v-show="currentGroup && topic.id == currentGroup.id">
|
|
14
|
-
<li v-for="poi in topic.pois" :key='poi.id'>
|
|
15
|
+
<ul class="list sublist" v-if="topic.pois.length > 0 && showPOIs" v-show="currentGroup && topic.id == currentGroup.id">
|
|
16
|
+
<li class="item list-item" v-for="poi in topic.pois" :key='poi.id' v-touch:tap="onPOICLick(poi)">
|
|
15
17
|
<label class="name" v-html="poi.getName(language)"></label>
|
|
16
18
|
</li>
|
|
17
19
|
</ul>
|
|
@@ -80,6 +82,12 @@ export default {
|
|
|
80
82
|
this.$emit('clicked', group);
|
|
81
83
|
};
|
|
82
84
|
},
|
|
85
|
+
|
|
86
|
+
onPOICLick (poi) {
|
|
87
|
+
return () => {
|
|
88
|
+
this.$emit('poiClicked', poi);
|
|
89
|
+
};
|
|
90
|
+
},
|
|
83
91
|
reset () {
|
|
84
92
|
this.$store.dispatch('SET_CURRENT_GROUP', false);
|
|
85
93
|
},
|