@3dwayfinder/wayfinder-vue-components 1.0.74 → 1.0.78
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.
|
@@ -1771,6 +1771,7 @@ var script$d = {
|
|
|
1771
1771
|
methods: {
|
|
1772
1772
|
changeLanguage(language) {
|
|
1773
1773
|
this.$wayfinder.setLanguage(language.name);
|
|
1774
|
+
this.$emit("changeLanguage", language);
|
|
1774
1775
|
},
|
|
1775
1776
|
|
|
1776
1777
|
getFlagImage(id) {
|
|
@@ -1831,8 +1832,8 @@ var __vue_staticRenderFns__$d = [];
|
|
|
1831
1832
|
|
|
1832
1833
|
const __vue_inject_styles__$d = function (inject) {
|
|
1833
1834
|
if (!inject) return;
|
|
1834
|
-
inject("data-v-
|
|
1835
|
-
source: ".languages-container.active[data-v-
|
|
1835
|
+
inject("data-v-0003c0c8_0", {
|
|
1836
|
+
source: ".languages-container.active[data-v-0003c0c8]{height:fit-content;z-index:10}.languages-container.active .languages-container-select[data-v-0003c0c8]{visibility:initial;opacity:1}.languages-container .languages-container-select[data-v-0003c0c8]{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-0003c0c8]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.languages-container .language .active[data-v-0003c0c8]{height:3.5rem;margin-bottom:1rem}.languages-container .language .display[data-v-0003c0c8]{height:3.5rem;margin-bottom:1.5rem}",
|
|
1836
1837
|
map: undefined,
|
|
1837
1838
|
media: undefined
|
|
1838
1839
|
});
|
|
@@ -1840,7 +1841,7 @@ const __vue_inject_styles__$d = function (inject) {
|
|
|
1840
1841
|
/* scoped */
|
|
1841
1842
|
|
|
1842
1843
|
|
|
1843
|
-
const __vue_scope_id__$d = "data-v-
|
|
1844
|
+
const __vue_scope_id__$d = "data-v-0003c0c8";
|
|
1844
1845
|
/* module identifier */
|
|
1845
1846
|
|
|
1846
1847
|
const __vue_module_identifier__$d = undefined;
|
|
@@ -1964,6 +1965,12 @@ var __vue_render__$c = function () {
|
|
|
1964
1965
|
staticClass: "list"
|
|
1965
1966
|
}, _vm._l(_vm.sortedGroups, function (topic) {
|
|
1966
1967
|
return _c('li', {
|
|
1968
|
+
key: topic.id,
|
|
1969
|
+
staticClass: "item list-item",
|
|
1970
|
+
class: {
|
|
1971
|
+
"active": _vm.currentGroup && topic.id == _vm.currentGroup.id
|
|
1972
|
+
}
|
|
1973
|
+
}, [_c('div', {
|
|
1967
1974
|
directives: [{
|
|
1968
1975
|
name: "touch",
|
|
1969
1976
|
rawName: "v-touch:tap",
|
|
@@ -1971,11 +1978,7 @@ var __vue_render__$c = function () {
|
|
|
1971
1978
|
expression: "onClick(topic)",
|
|
1972
1979
|
arg: "tap"
|
|
1973
1980
|
}],
|
|
1974
|
-
|
|
1975
|
-
staticClass: "item list-item",
|
|
1976
|
-
class: {
|
|
1977
|
-
"active": _vm.currentGroup && topic.id == _vm.currentGroup.id
|
|
1978
|
-
}
|
|
1981
|
+
staticClass: "item-content"
|
|
1979
1982
|
}, [_c('label', {
|
|
1980
1983
|
staticClass: "name",
|
|
1981
1984
|
domProps: {
|
|
@@ -1983,7 +1986,7 @@ var __vue_render__$c = function () {
|
|
|
1983
1986
|
}
|
|
1984
1987
|
}), _vm._v(" "), _vm.showPOICount ? _c('label', {
|
|
1985
1988
|
staticClass: "count"
|
|
1986
|
-
}, [_vm._v(_vm._s(topic.pois.length))]) : _vm._e(), _vm._v(" "), topic.childGroups.length > 0 && _vm.showSubGroups ? _c('ul', {
|
|
1989
|
+
}, [_vm._v(_vm._s(topic.pois.length))]) : _vm._e()]), _vm._v(" "), topic.childGroups.length > 0 && _vm.showSubGroups ? _c('ul', {
|
|
1987
1990
|
directives: [{
|
|
1988
1991
|
name: "show",
|
|
1989
1992
|
rawName: "v-show",
|
|
@@ -2019,7 +2022,7 @@ var __vue_render__$c = function () {
|
|
|
2019
2022
|
arg: "tap"
|
|
2020
2023
|
}],
|
|
2021
2024
|
key: poi.id,
|
|
2022
|
-
staticClass: "item"
|
|
2025
|
+
staticClass: "item list-item"
|
|
2023
2026
|
}, [_c('label', {
|
|
2024
2027
|
staticClass: "name",
|
|
2025
2028
|
domProps: {
|
|
@@ -2035,8 +2038,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
2035
2038
|
|
|
2036
2039
|
const __vue_inject_styles__$c = function (inject) {
|
|
2037
2040
|
if (!inject) return;
|
|
2038
|
-
inject("data-v-
|
|
2039
|
-
source: ".az-menu[data-v-
|
|
2041
|
+
inject("data-v-2f9a0bdc_0", {
|
|
2042
|
+
source: ".az-menu[data-v-2f9a0bdc]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-2f9a0bdc]{list-style:none}.az-menu ul[data-v-2f9a0bdc]{margin:0;padding:0}",
|
|
2040
2043
|
map: undefined,
|
|
2041
2044
|
media: undefined
|
|
2042
2045
|
});
|
|
@@ -2044,7 +2047,7 @@ const __vue_inject_styles__$c = function (inject) {
|
|
|
2044
2047
|
/* scoped */
|
|
2045
2048
|
|
|
2046
2049
|
|
|
2047
|
-
const __vue_scope_id__$c = "data-v-
|
|
2050
|
+
const __vue_scope_id__$c = "data-v-2f9a0bdc";
|
|
2048
2051
|
/* module identifier */
|
|
2049
2052
|
|
|
2050
2053
|
const __vue_module_identifier__$c = undefined;
|
|
@@ -3,7 +3,7 @@ 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 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("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"},[o("label",{staticClass:"name",domProps:{innerHTML:t._s(e.getName(t.language))}})])})),0):t._e()])})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-4f3b9572_0",{source:".az-menu[data-v-4f3b9572]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-4f3b9572]{list-style:none}.az-menu ul[data-v-4f3b9572]{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-4f3b9572",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);
|
|
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-0003c0c8_0",{source:".languages-container.active[data-v-0003c0c8]{height:fit-content;z-index:10}.languages-container.active .languages-container-select[data-v-0003c0c8]{visibility:initial;opacity:1}.languages-container .languages-container-select[data-v-0003c0c8]{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-0003c0c8]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.languages-container .language .active[data-v-0003c0c8]{height:3.5rem;margin-bottom:1rem}.languages-container .language .display[data-v-0003c0c8]{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),this.$emit("changeLanguage",t)},getFlagImage:function(t){return WayfinderAPI.getURL("images","thumbnail",[t])}},watch:{reset:function(){this.active=!1}}},"data-v-0003c0c8",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",{key:e.id,staticClass:"item list-item",class:{active:t.currentGroup&&e.id==t.currentGroup.id}},[o("div",{directives:[{name:"touch",rawName:"v-touch:tap",value:t.onClick(e),expression:"onClick(topic)",arg:"tap"}],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-2f9a0bdc_0",{source:".az-menu[data-v-2f9a0bdc]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-2f9a0bdc]{list-style:none}.az-menu ul[data-v-2f9a0bdc]{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-2f9a0bdc",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
|
|
@@ -1796,6 +1796,7 @@ var __vue_component__$e = /*#__PURE__*/normalizeComponent({
|
|
|
1796
1796
|
methods: {
|
|
1797
1797
|
changeLanguage: function changeLanguage(language) {
|
|
1798
1798
|
this.$wayfinder.setLanguage(language.name);
|
|
1799
|
+
this.$emit("changeLanguage", language);
|
|
1799
1800
|
},
|
|
1800
1801
|
getFlagImage: function getFlagImage(id) {
|
|
1801
1802
|
return WayfinderAPI.getURL("images", "thumbnail", [id]);
|
|
@@ -1822,13 +1823,13 @@ var __vue_render__$d = function __vue_render__() {
|
|
|
1822
1823
|
class: {
|
|
1823
1824
|
'active': _vm.active
|
|
1824
1825
|
}
|
|
1825
|
-
}, [_vm._ssrNode((_vm.showTitle ? "<div class=\"languages-container-select\" data-v-
|
|
1826
|
+
}, [_vm._ssrNode((_vm.showTitle ? "<div class=\"languages-container-select\" data-v-0003c0c8>Select language</div>" : "<!---->") + " <div class=\"list\" data-v-0003c0c8>" + _vm._ssrList(_vm.languages, function (lang, index) {
|
|
1826
1827
|
return "<div" + _vm._ssrClass(null, ["item", "language", "lang-" + lang.getName(), {
|
|
1827
1828
|
active: lang.getName() == _vm.language,
|
|
1828
1829
|
display: _vm.active
|
|
1829
|
-
}]) + " data-v-
|
|
1830
|
+
}]) + " data-v-0003c0c8>" + (_vm.showFlag ? "<div class=\"flag\"" + _vm._ssrStyle(null, {
|
|
1830
1831
|
backgroundImage: 'url(' + _vm.getFlagImage(lang.flagImage) + ')'
|
|
1831
|
-
}, null) + " data-v-
|
|
1832
|
+
}, null) + " data-v-0003c0c8></div>" : "<!---->") + " " + (_vm.labelType == 'code' ? "<label data-v-0003c0c8>" + _vm._ssrEscape(_vm._s(lang.getName())) + "</label>" : "<!---->") + " " + (_vm.labelType == 'native' ? "<label data-v-0003c0c8>" + _vm._ssrEscape(_vm._s(lang.getNativeName())) + "</label>" : "<!---->") + "</div>";
|
|
1832
1833
|
}) + "</div>")]);
|
|
1833
1834
|
};
|
|
1834
1835
|
|
|
@@ -1837,8 +1838,8 @@ var __vue_staticRenderFns__$d = [];
|
|
|
1837
1838
|
|
|
1838
1839
|
var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
1839
1840
|
if (!inject) return;
|
|
1840
|
-
inject("data-v-
|
|
1841
|
-
source: ".languages-container.active[data-v-
|
|
1841
|
+
inject("data-v-0003c0c8_0", {
|
|
1842
|
+
source: ".languages-container.active[data-v-0003c0c8]{height:fit-content;z-index:10}.languages-container.active .languages-container-select[data-v-0003c0c8]{visibility:initial;opacity:1}.languages-container .languages-container-select[data-v-0003c0c8]{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-0003c0c8]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.languages-container .language .active[data-v-0003c0c8]{height:3.5rem;margin-bottom:1rem}.languages-container .language .display[data-v-0003c0c8]{height:3.5rem;margin-bottom:1.5rem}",
|
|
1842
1843
|
map: undefined,
|
|
1843
1844
|
media: undefined
|
|
1844
1845
|
});
|
|
@@ -1846,10 +1847,10 @@ var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
|
1846
1847
|
/* scoped */
|
|
1847
1848
|
|
|
1848
1849
|
|
|
1849
|
-
var __vue_scope_id__$d = "data-v-
|
|
1850
|
+
var __vue_scope_id__$d = "data-v-0003c0c8";
|
|
1850
1851
|
/* module identifier */
|
|
1851
1852
|
|
|
1852
|
-
var __vue_module_identifier__$d = "data-v-
|
|
1853
|
+
var __vue_module_identifier__$d = "data-v-0003c0c8";
|
|
1853
1854
|
/* functional template */
|
|
1854
1855
|
|
|
1855
1856
|
var __vue_is_functional_template__$d = false;
|
|
@@ -1957,8 +1958,10 @@ var __vue_render__$c = function __vue_render__() {
|
|
|
1957
1958
|
|
|
1958
1959
|
return _c('div', {
|
|
1959
1960
|
staticClass: "topics-menu"
|
|
1960
|
-
}, [_vm._ssrNode("<ul class=\"list\" data-v-
|
|
1961
|
-
return
|
|
1961
|
+
}, [_vm._ssrNode("<ul class=\"list\" data-v-2f9a0bdc>", "</ul>", _vm._l(_vm.sortedGroups, function (topic) {
|
|
1962
|
+
return _vm._ssrNode("<li" + _vm._ssrClass("item list-item", {
|
|
1963
|
+
"active": _vm.currentGroup && topic.id == _vm.currentGroup.id
|
|
1964
|
+
}) + " data-v-2f9a0bdc>", "</li>", [_c('div', {
|
|
1962
1965
|
directives: [{
|
|
1963
1966
|
name: "touch",
|
|
1964
1967
|
rawName: "v-touch:tap",
|
|
@@ -1966,18 +1969,14 @@ var __vue_render__$c = function __vue_render__() {
|
|
|
1966
1969
|
expression: "onClick(topic)",
|
|
1967
1970
|
arg: "tap"
|
|
1968
1971
|
}],
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
class: {
|
|
1972
|
-
"active": _vm.currentGroup && topic.id == _vm.currentGroup.id
|
|
1973
|
-
}
|
|
1974
|
-
}, [_vm._ssrNode("<label class=\"name\" data-v-4f3b9572>" + _vm._s(topic.getName(_vm.language)) + "</label> " + (_vm.showPOICount ? "<label class=\"count\" data-v-4f3b9572>" + _vm._ssrEscape(_vm._s(topic.pois.length)) + "</label>" : "<!---->") + " " + (topic.childGroups.length > 0 && _vm.showSubGroups ? "<ul" + _vm._ssrStyle(null, null, {
|
|
1972
|
+
staticClass: "item-content"
|
|
1973
|
+
}, [_vm._ssrNode("<label class=\"name\" data-v-2f9a0bdc>" + _vm._s(topic.getName(_vm.language)) + "</label> " + (_vm.showPOICount ? "<label class=\"count\" data-v-2f9a0bdc>" + _vm._ssrEscape(_vm._s(topic.pois.length)) + "</label>" : "<!---->"))]), _vm._ssrNode(" " + (topic.childGroups.length > 0 && _vm.showSubGroups ? "<ul" + _vm._ssrStyle(null, null, {
|
|
1975
1974
|
display: _vm.currentGroup && topic.id == _vm.currentGroup.id ? '' : 'none'
|
|
1976
|
-
}) + " data-v-
|
|
1977
|
-
return "<li data-v-
|
|
1975
|
+
}) + " data-v-2f9a0bdc>" + _vm._ssrList(_vm.subGroups(topic.childGroups), function (subtopic) {
|
|
1976
|
+
return "<li data-v-2f9a0bdc><label class=\"name\" data-v-2f9a0bdc>" + _vm._s(subtopic.getName(_vm.language)) + "</label> " + (_vm.showPOICount ? "<label class=\"count\" data-v-2f9a0bdc>" + _vm._ssrEscape(_vm._s(subtopic.pois.length)) + "</label>" : "<!---->") + "</li>";
|
|
1978
1977
|
}) + "</ul>" : "<!---->") + " "), topic.pois.length > 0 && _vm.showPOIs ? _vm._ssrNode("<ul class=\"list sublist\"" + _vm._ssrStyle(null, null, {
|
|
1979
1978
|
display: _vm.currentGroup && topic.id == _vm.currentGroup.id ? '' : 'none'
|
|
1980
|
-
}) + " data-v-
|
|
1979
|
+
}) + " data-v-2f9a0bdc>", "</ul>", _vm._l(topic.pois, function (poi) {
|
|
1981
1980
|
return _c('li', {
|
|
1982
1981
|
directives: [{
|
|
1983
1982
|
name: "touch",
|
|
@@ -1987,8 +1986,8 @@ var __vue_render__$c = function __vue_render__() {
|
|
|
1987
1986
|
arg: "tap"
|
|
1988
1987
|
}],
|
|
1989
1988
|
key: poi.id,
|
|
1990
|
-
staticClass: "item"
|
|
1991
|
-
}, [_vm._ssrNode("<label class=\"name\" data-v-
|
|
1989
|
+
staticClass: "item list-item"
|
|
1990
|
+
}, [_vm._ssrNode("<label class=\"name\" data-v-2f9a0bdc>" + _vm._s(poi.getName(_vm.language)) + "</label>")]);
|
|
1992
1991
|
}), 0) : _vm._e()], 2);
|
|
1993
1992
|
}), 0)]);
|
|
1994
1993
|
};
|
|
@@ -1998,8 +1997,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
1998
1997
|
|
|
1999
1998
|
var __vue_inject_styles__$c = function __vue_inject_styles__(inject) {
|
|
2000
1999
|
if (!inject) return;
|
|
2001
|
-
inject("data-v-
|
|
2002
|
-
source: ".az-menu[data-v-
|
|
2000
|
+
inject("data-v-2f9a0bdc_0", {
|
|
2001
|
+
source: ".az-menu[data-v-2f9a0bdc]{overflow:hidden;user-select:none}.az-menu .list-item[data-v-2f9a0bdc]{list-style:none}.az-menu ul[data-v-2f9a0bdc]{margin:0;padding:0}",
|
|
2003
2002
|
map: undefined,
|
|
2004
2003
|
media: undefined
|
|
2005
2004
|
});
|
|
@@ -2007,10 +2006,10 @@ var __vue_inject_styles__$c = function __vue_inject_styles__(inject) {
|
|
|
2007
2006
|
/* scoped */
|
|
2008
2007
|
|
|
2009
2008
|
|
|
2010
|
-
var __vue_scope_id__$c = "data-v-
|
|
2009
|
+
var __vue_scope_id__$c = "data-v-2f9a0bdc";
|
|
2011
2010
|
/* module identifier */
|
|
2012
2011
|
|
|
2013
|
-
var __vue_module_identifier__$c = "data-v-
|
|
2012
|
+
var __vue_module_identifier__$c = "data-v-2f9a0bdc";
|
|
2014
2013
|
/* functional template */
|
|
2015
2014
|
|
|
2016
2015
|
var __vue_is_functional_template__$c = 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.78",
|
|
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",
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="topics-menu">
|
|
3
3
|
<ul class="list">
|
|
4
|
-
<li class="item list-item"
|
|
5
|
-
<
|
|
6
|
-
|
|
4
|
+
<li class="item list-item" :class='{"active": currentGroup && topic.id == currentGroup.id}' v-for="topic in sortedGroups" :key='topic.id' >
|
|
5
|
+
<div class="item-content" v-touch:tap="onClick(topic)">
|
|
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>
|
|
@@ -11,7 +13,7 @@
|
|
|
11
13
|
</li>
|
|
12
14
|
</ul>
|
|
13
15
|
<ul class="list sublist" v-if="topic.pois.length > 0 && showPOIs" v-show="currentGroup && topic.id == currentGroup.id">
|
|
14
|
-
<li class="item" v-for="poi in topic.pois" :key='poi.id' v-touch:tap="onPOICLick(poi)">
|
|
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>
|