@3dwayfinder/wayfinder-vue-components 1.0.94 → 1.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wayfinder-vue-components.esm.js +215 -60
- package/dist/wayfinder-vue-components.min.js +1 -1
- package/dist/wayfinder-vue-components.ssr.js +177 -62
- package/package.json +2 -2
- package/src/lib-components/FlagsMenu.vue +1 -1
- package/src/lib-components/LanguagesMenu.vue +109 -0
- package/src/lib-components/pages/Browser.vue +19 -2
|
@@ -1075,7 +1075,7 @@ var index = {
|
|
|
1075
1075
|
|
|
1076
1076
|
//
|
|
1077
1077
|
var wayfinder$1;
|
|
1078
|
-
var script$
|
|
1078
|
+
var script$i = {
|
|
1079
1079
|
name: 'Map',
|
|
1080
1080
|
props: {
|
|
1081
1081
|
project: {
|
|
@@ -1352,10 +1352,10 @@ function addStyle(id, css) {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
1354
|
/* script */
|
|
1355
|
-
const __vue_script__$
|
|
1355
|
+
const __vue_script__$i = script$i;
|
|
1356
1356
|
/* template */
|
|
1357
1357
|
|
|
1358
|
-
var __vue_render__$
|
|
1358
|
+
var __vue_render__$i = function () {
|
|
1359
1359
|
var _vm = this;
|
|
1360
1360
|
|
|
1361
1361
|
var _h = _vm.$createElement;
|
|
@@ -1385,10 +1385,10 @@ var __vue_render__$h = function () {
|
|
|
1385
1385
|
}, [_vm._v(_vm._s(_vm.pathText))])]);
|
|
1386
1386
|
};
|
|
1387
1387
|
|
|
1388
|
-
var __vue_staticRenderFns__$
|
|
1388
|
+
var __vue_staticRenderFns__$i = [];
|
|
1389
1389
|
/* style */
|
|
1390
1390
|
|
|
1391
|
-
const __vue_inject_styles__$
|
|
1391
|
+
const __vue_inject_styles__$i = function (inject) {
|
|
1392
1392
|
if (!inject) return;
|
|
1393
1393
|
inject("data-v-56a8b7f2_0", {
|
|
1394
1394
|
source: ".map-container[data-v-56a8b7f2]{position:relative;width:100%;height:100%}.map-container canvas[data-v-56a8b7f2]{width:100%;height:100%}.map-container .map-path-text[data-v-56a8b7f2]{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-56a8b7f2]{position:absolute;bottom:-1px;width:100%;height:9rem}.currentFloor[data-v-56a8b7f2]{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}",
|
|
@@ -1399,24 +1399,24 @@ const __vue_inject_styles__$h = function (inject) {
|
|
|
1399
1399
|
/* scoped */
|
|
1400
1400
|
|
|
1401
1401
|
|
|
1402
|
-
const __vue_scope_id__$
|
|
1402
|
+
const __vue_scope_id__$i = "data-v-56a8b7f2";
|
|
1403
1403
|
/* module identifier */
|
|
1404
1404
|
|
|
1405
|
-
const __vue_module_identifier__$
|
|
1405
|
+
const __vue_module_identifier__$i = undefined;
|
|
1406
1406
|
/* functional template */
|
|
1407
1407
|
|
|
1408
|
-
const __vue_is_functional_template__$
|
|
1408
|
+
const __vue_is_functional_template__$i = false;
|
|
1409
1409
|
/* style inject SSR */
|
|
1410
1410
|
|
|
1411
1411
|
/* style inject shadow dom */
|
|
1412
1412
|
|
|
1413
|
-
const __vue_component__$
|
|
1414
|
-
render: __vue_render__$
|
|
1415
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
1416
|
-
}, __vue_inject_styles__$
|
|
1413
|
+
const __vue_component__$i = /*#__PURE__*/normalizeComponent({
|
|
1414
|
+
render: __vue_render__$i,
|
|
1415
|
+
staticRenderFns: __vue_staticRenderFns__$i
|
|
1416
|
+
}, __vue_inject_styles__$i, __vue_script__$i, __vue_scope_id__$i, __vue_is_functional_template__$i, __vue_module_identifier__$i, false, createInjector, undefined, undefined);
|
|
1417
1417
|
|
|
1418
1418
|
//
|
|
1419
|
-
var script$
|
|
1419
|
+
var script$h = {
|
|
1420
1420
|
name: "POI",
|
|
1421
1421
|
computed: { ...mapState(['language'])
|
|
1422
1422
|
},
|
|
@@ -1525,10 +1525,10 @@ var script$g = {
|
|
|
1525
1525
|
};
|
|
1526
1526
|
|
|
1527
1527
|
/* script */
|
|
1528
|
-
const __vue_script__$
|
|
1528
|
+
const __vue_script__$h = script$h;
|
|
1529
1529
|
/* template */
|
|
1530
1530
|
|
|
1531
|
-
var __vue_render__$
|
|
1531
|
+
var __vue_render__$h = function () {
|
|
1532
1532
|
var _vm = this;
|
|
1533
1533
|
|
|
1534
1534
|
var _h = _vm.$createElement;
|
|
@@ -1583,10 +1583,10 @@ var __vue_render__$g = function () {
|
|
|
1583
1583
|
}) : _vm._e()]) : _vm._e();
|
|
1584
1584
|
};
|
|
1585
1585
|
|
|
1586
|
-
var __vue_staticRenderFns__$
|
|
1586
|
+
var __vue_staticRenderFns__$h = [];
|
|
1587
1587
|
/* style */
|
|
1588
1588
|
|
|
1589
|
-
const __vue_inject_styles__$
|
|
1589
|
+
const __vue_inject_styles__$h = function (inject) {
|
|
1590
1590
|
if (!inject) return;
|
|
1591
1591
|
inject("data-v-12662bbb_0", {
|
|
1592
1592
|
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}",
|
|
@@ -1597,27 +1597,27 @@ const __vue_inject_styles__$g = function (inject) {
|
|
|
1597
1597
|
/* scoped */
|
|
1598
1598
|
|
|
1599
1599
|
|
|
1600
|
-
const __vue_scope_id__$
|
|
1600
|
+
const __vue_scope_id__$h = "data-v-12662bbb";
|
|
1601
1601
|
/* module identifier */
|
|
1602
1602
|
|
|
1603
|
-
const __vue_module_identifier__$
|
|
1603
|
+
const __vue_module_identifier__$h = undefined;
|
|
1604
1604
|
/* functional template */
|
|
1605
1605
|
|
|
1606
|
-
const __vue_is_functional_template__$
|
|
1606
|
+
const __vue_is_functional_template__$h = false;
|
|
1607
1607
|
/* style inject SSR */
|
|
1608
1608
|
|
|
1609
1609
|
/* style inject shadow dom */
|
|
1610
1610
|
|
|
1611
|
-
const __vue_component__$
|
|
1612
|
-
render: __vue_render__$
|
|
1613
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
1614
|
-
}, __vue_inject_styles__$
|
|
1611
|
+
const __vue_component__$h = /*#__PURE__*/normalizeComponent({
|
|
1612
|
+
render: __vue_render__$h,
|
|
1613
|
+
staticRenderFns: __vue_staticRenderFns__$h
|
|
1614
|
+
}, __vue_inject_styles__$h, __vue_script__$h, __vue_scope_id__$h, __vue_is_functional_template__$h, __vue_module_identifier__$h, false, createInjector, undefined, undefined);
|
|
1615
1615
|
|
|
1616
1616
|
//
|
|
1617
|
-
var script$
|
|
1617
|
+
var script$g = {
|
|
1618
1618
|
name: 'AZMenu',
|
|
1619
1619
|
components: {
|
|
1620
|
-
POI: __vue_component__$
|
|
1620
|
+
POI: __vue_component__$h
|
|
1621
1621
|
},
|
|
1622
1622
|
props: {
|
|
1623
1623
|
showLogo: {
|
|
@@ -1679,10 +1679,10 @@ var script$f = {
|
|
|
1679
1679
|
};
|
|
1680
1680
|
|
|
1681
1681
|
/* script */
|
|
1682
|
-
const __vue_script__$
|
|
1682
|
+
const __vue_script__$g = script$g;
|
|
1683
1683
|
/* template */
|
|
1684
1684
|
|
|
1685
|
-
var __vue_render__$
|
|
1685
|
+
var __vue_render__$g = function () {
|
|
1686
1686
|
var _vm = this;
|
|
1687
1687
|
|
|
1688
1688
|
var _h = _vm.$createElement;
|
|
@@ -1730,32 +1730,32 @@ var __vue_render__$f = function () {
|
|
|
1730
1730
|
}), 0)]);
|
|
1731
1731
|
};
|
|
1732
1732
|
|
|
1733
|
-
var __vue_staticRenderFns__$
|
|
1733
|
+
var __vue_staticRenderFns__$g = [];
|
|
1734
1734
|
/* style */
|
|
1735
1735
|
|
|
1736
|
-
const __vue_inject_styles__$
|
|
1736
|
+
const __vue_inject_styles__$g = undefined;
|
|
1737
1737
|
/* scoped */
|
|
1738
1738
|
|
|
1739
|
-
const __vue_scope_id__$
|
|
1739
|
+
const __vue_scope_id__$g = "data-v-d48c542c";
|
|
1740
1740
|
/* module identifier */
|
|
1741
1741
|
|
|
1742
|
-
const __vue_module_identifier__$
|
|
1742
|
+
const __vue_module_identifier__$g = undefined;
|
|
1743
1743
|
/* functional template */
|
|
1744
1744
|
|
|
1745
|
-
const __vue_is_functional_template__$
|
|
1745
|
+
const __vue_is_functional_template__$g = false;
|
|
1746
1746
|
/* style inject */
|
|
1747
1747
|
|
|
1748
1748
|
/* style inject SSR */
|
|
1749
1749
|
|
|
1750
1750
|
/* style inject shadow dom */
|
|
1751
1751
|
|
|
1752
|
-
const __vue_component__$
|
|
1753
|
-
render: __vue_render__$
|
|
1754
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
1755
|
-
}, __vue_inject_styles__$
|
|
1752
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent({
|
|
1753
|
+
render: __vue_render__$g,
|
|
1754
|
+
staticRenderFns: __vue_staticRenderFns__$g
|
|
1755
|
+
}, __vue_inject_styles__$g, __vue_script__$g, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, undefined, undefined, undefined);
|
|
1756
1756
|
|
|
1757
1757
|
//
|
|
1758
|
-
var script$
|
|
1758
|
+
var script$f = {
|
|
1759
1759
|
name: 'FlagsMenu',
|
|
1760
1760
|
computed: { ...mapState(['languages', 'language', 'reset'])
|
|
1761
1761
|
},
|
|
@@ -1799,10 +1799,10 @@ var script$e = {
|
|
|
1799
1799
|
};
|
|
1800
1800
|
|
|
1801
1801
|
/* script */
|
|
1802
|
-
const __vue_script__$
|
|
1802
|
+
const __vue_script__$f = script$f;
|
|
1803
1803
|
/* template */
|
|
1804
1804
|
|
|
1805
|
-
var __vue_render__$
|
|
1805
|
+
var __vue_render__$f = function () {
|
|
1806
1806
|
var _vm = this;
|
|
1807
1807
|
|
|
1808
1808
|
var _h = _vm.$createElement;
|
|
@@ -1810,7 +1810,7 @@ var __vue_render__$e = function () {
|
|
|
1810
1810
|
var _c = _vm._self._c || _h;
|
|
1811
1811
|
|
|
1812
1812
|
return _c('div', {
|
|
1813
|
-
staticClass: "wf-component languages-container",
|
|
1813
|
+
staticClass: "wf-component wf-languages-container",
|
|
1814
1814
|
class: {
|
|
1815
1815
|
'active': _vm.active
|
|
1816
1816
|
}
|
|
@@ -1839,13 +1839,145 @@ var __vue_render__$e = function () {
|
|
|
1839
1839
|
}), 0)]);
|
|
1840
1840
|
};
|
|
1841
1841
|
|
|
1842
|
+
var __vue_staticRenderFns__$f = [];
|
|
1843
|
+
/* style */
|
|
1844
|
+
|
|
1845
|
+
const __vue_inject_styles__$f = function (inject) {
|
|
1846
|
+
if (!inject) return;
|
|
1847
|
+
inject("data-v-a003406a_0", {
|
|
1848
|
+
source: ".languages-container.active[data-v-a003406a]{height:fit-content;z-index:10}.languages-container.active .languages-container-select[data-v-a003406a]{visibility:initial;opacity:1}.languages-container .languages-container-select[data-v-a003406a]{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-a003406a]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.languages-container .language .active[data-v-a003406a]{height:3.5rem;margin-bottom:1rem}.languages-container .language .display[data-v-a003406a]{height:3.5rem;margin-bottom:1.5rem}",
|
|
1849
|
+
map: undefined,
|
|
1850
|
+
media: undefined
|
|
1851
|
+
});
|
|
1852
|
+
};
|
|
1853
|
+
/* scoped */
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
const __vue_scope_id__$f = "data-v-a003406a";
|
|
1857
|
+
/* module identifier */
|
|
1858
|
+
|
|
1859
|
+
const __vue_module_identifier__$f = undefined;
|
|
1860
|
+
/* functional template */
|
|
1861
|
+
|
|
1862
|
+
const __vue_is_functional_template__$f = false;
|
|
1863
|
+
/* style inject SSR */
|
|
1864
|
+
|
|
1865
|
+
/* style inject shadow dom */
|
|
1866
|
+
|
|
1867
|
+
const __vue_component__$f = /*#__PURE__*/normalizeComponent({
|
|
1868
|
+
render: __vue_render__$f,
|
|
1869
|
+
staticRenderFns: __vue_staticRenderFns__$f
|
|
1870
|
+
}, __vue_inject_styles__$f, __vue_script__$f, __vue_scope_id__$f, __vue_is_functional_template__$f, __vue_module_identifier__$f, false, createInjector, undefined, undefined);
|
|
1871
|
+
|
|
1872
|
+
//
|
|
1873
|
+
var script$e = {
|
|
1874
|
+
name: 'LanguagesMenu',
|
|
1875
|
+
computed: { ...mapState(['languages', 'language', 'reset'])
|
|
1876
|
+
},
|
|
1877
|
+
props: {
|
|
1878
|
+
showTitle: {
|
|
1879
|
+
type: Boolean,
|
|
1880
|
+
default: false
|
|
1881
|
+
},
|
|
1882
|
+
showFlag: {
|
|
1883
|
+
type: Boolean,
|
|
1884
|
+
default: true
|
|
1885
|
+
},
|
|
1886
|
+
labelType: {
|
|
1887
|
+
type: String,
|
|
1888
|
+
default: "none"
|
|
1889
|
+
},
|
|
1890
|
+
hideActive: {
|
|
1891
|
+
type: Boolean,
|
|
1892
|
+
default: false
|
|
1893
|
+
},
|
|
1894
|
+
title: {
|
|
1895
|
+
type: String,
|
|
1896
|
+
default: "Select language"
|
|
1897
|
+
}
|
|
1898
|
+
},
|
|
1899
|
+
|
|
1900
|
+
data() {
|
|
1901
|
+
return {
|
|
1902
|
+
active: false
|
|
1903
|
+
};
|
|
1904
|
+
},
|
|
1905
|
+
|
|
1906
|
+
methods: {
|
|
1907
|
+
changeLanguage(language) {
|
|
1908
|
+
if (this.$listeners && this.$listeners.changeLanguage) {
|
|
1909
|
+
this.$emit("change", language);
|
|
1910
|
+
} else {
|
|
1911
|
+
this.$wayfinder.setLanguage(language.name);
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
|
|
1915
|
+
getFlagImage(id) {
|
|
1916
|
+
return WayfinderAPI.getURL("images", "thumbnail", [id]);
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
},
|
|
1920
|
+
watch: {
|
|
1921
|
+
reset: function () {
|
|
1922
|
+
this.active = false;
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
/* script */
|
|
1928
|
+
const __vue_script__$e = script$e;
|
|
1929
|
+
/* template */
|
|
1930
|
+
|
|
1931
|
+
var __vue_render__$e = function () {
|
|
1932
|
+
var _vm = this;
|
|
1933
|
+
|
|
1934
|
+
var _h = _vm.$createElement;
|
|
1935
|
+
|
|
1936
|
+
var _c = _vm._self._c || _h;
|
|
1937
|
+
|
|
1938
|
+
return _c('div', {
|
|
1939
|
+
staticClass: "wf-component wf-languages-menu",
|
|
1940
|
+
class: {
|
|
1941
|
+
'wf-active': _vm.active
|
|
1942
|
+
}
|
|
1943
|
+
}, [_vm.showTitle ? _c('div', {
|
|
1944
|
+
staticClass: "wf-languages-title"
|
|
1945
|
+
}, [_vm._v(_vm._s(_vm.title))]) : _vm._e(), _vm._v(" "), _c('div', {
|
|
1946
|
+
staticClass: "wf-list"
|
|
1947
|
+
}, _vm._l(_vm.languages, function (lang, index) {
|
|
1948
|
+
return _c('div', {
|
|
1949
|
+
directives: [{
|
|
1950
|
+
name: "show",
|
|
1951
|
+
rawName: "v-show",
|
|
1952
|
+
value: !(_vm.hideActive && lang.getName() == _vm.language),
|
|
1953
|
+
expression: "!(hideActive && lang.getName() == language)"
|
|
1954
|
+
}],
|
|
1955
|
+
key: index,
|
|
1956
|
+
class: ["wf-item", "wf-language", "wf-lang-" + lang.getName(), {
|
|
1957
|
+
"wf-active": lang.getName() == _vm.language,
|
|
1958
|
+
"wf-display": _vm.active
|
|
1959
|
+
}],
|
|
1960
|
+
on: {
|
|
1961
|
+
"click": function ($event) {
|
|
1962
|
+
return _vm.changeLanguage(lang);
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
}, [_vm.showFlag ? _c('div', {
|
|
1966
|
+
staticClass: "wf-lang-flag",
|
|
1967
|
+
style: {
|
|
1968
|
+
backgroundImage: 'url(' + _vm.getFlagImage(lang.flagImage) + ')'
|
|
1969
|
+
}
|
|
1970
|
+
}) : _vm._e(), _vm._v(" "), _vm.labelType == 'code' ? _c('label', [_vm._v(_vm._s(lang.getName()))]) : _vm._e(), _vm._v(" "), _vm.labelType == 'native' ? _c('label', [_vm._v(_vm._s(lang.getNativeName()))]) : _vm._e()]);
|
|
1971
|
+
}), 0)]);
|
|
1972
|
+
};
|
|
1973
|
+
|
|
1842
1974
|
var __vue_staticRenderFns__$e = [];
|
|
1843
1975
|
/* style */
|
|
1844
1976
|
|
|
1845
1977
|
const __vue_inject_styles__$e = function (inject) {
|
|
1846
1978
|
if (!inject) return;
|
|
1847
|
-
inject("data-v-
|
|
1848
|
-
source: ".languages-
|
|
1979
|
+
inject("data-v-7efb50aa_0", {
|
|
1980
|
+
source: ".wf-languages-menu.active[data-v-7efb50aa]{height:fit-content;z-index:10}.wf-languages-menu.active .wf-languages-title[data-v-7efb50aa]{visibility:initial;opacity:1}.wf-languages-menu .wf-languages-title[data-v-7efb50aa]{opacity:0;padding-bottom:.5rem;margin:auto;text-align:center;transition:opacity .2s ease-in;overflow:hidden}.wf-languages-menu .wf-language .wf-lang-flag[data-v-7efb50aa]{width:70%;height:100%;background-size:cover;background-position:50%;background-repeat:no-repeat}.wf-languages-menu .wf-language .wf-active[data-v-7efb50aa]{height:3.5rem;margin-bottom:1rem}.wf-languages-menu .wf-language .wf-display[data-v-7efb50aa]{height:3.5rem;margin-bottom:1.5rem}",
|
|
1849
1981
|
map: undefined,
|
|
1850
1982
|
media: undefined
|
|
1851
1983
|
});
|
|
@@ -1853,7 +1985,7 @@ const __vue_inject_styles__$e = function (inject) {
|
|
|
1853
1985
|
/* scoped */
|
|
1854
1986
|
|
|
1855
1987
|
|
|
1856
|
-
const __vue_scope_id__$e = "data-v-
|
|
1988
|
+
const __vue_scope_id__$e = "data-v-7efb50aa";
|
|
1857
1989
|
/* module identifier */
|
|
1858
1990
|
|
|
1859
1991
|
const __vue_module_identifier__$e = undefined;
|
|
@@ -2572,7 +2704,7 @@ const __vue_component__$8 = /*#__PURE__*/normalizeComponent({
|
|
|
2572
2704
|
var script$7 = {
|
|
2573
2705
|
name: 'FilteredMenu',
|
|
2574
2706
|
components: {
|
|
2575
|
-
POI: __vue_component__$
|
|
2707
|
+
POI: __vue_component__$h
|
|
2576
2708
|
},
|
|
2577
2709
|
|
|
2578
2710
|
data() {
|
|
@@ -2739,7 +2871,7 @@ var script$6 = {
|
|
|
2739
2871
|
name: 'Search',
|
|
2740
2872
|
components: {
|
|
2741
2873
|
OSK: osk_common,
|
|
2742
|
-
POI: __vue_component__$
|
|
2874
|
+
POI: __vue_component__$h
|
|
2743
2875
|
},
|
|
2744
2876
|
computed: { ...mapState(['language', 'reset'])
|
|
2745
2877
|
},
|
|
@@ -3318,7 +3450,7 @@ const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
|
|
|
3318
3450
|
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, createInjector, undefined, undefined);
|
|
3319
3451
|
|
|
3320
3452
|
var scrollarea_common = createCommonjsModule(function (module) {
|
|
3321
|
-
module.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n});},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(t,e){t.exports={create:function(){return [0,0]},clone:function(t){var e=new Array(2);return e[0]=t[0],e[1]=t[1],e},fromValues:function(t,e){var i=new Array(2);return i[0]=t,i[1]=e,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},dist:function(t,e){var i=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(i*i+n*n)},sqrDist:function(t,e){var i=e[0]-t[0],n=e[1]-t[1];return i*i+n*n},len:function(t){var e=t[0],i=t[1];return Math.sqrt(e*e+i*i)},length:function(t){var e=t[0],i=t[1];return Math.sqrt(e*e+i*i)},sqrLen:function(t){var e=t[0],i=t[1];return e*e+i*i},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){var i=e[0],n=e[1],s=i*i+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},cross:function(t,e,i){var n=e[0]*i[1]-e[1]*i[0];return t[0]=t[1]=0,t[2]=n,t},lerp:function(t,e,i,n){var s=e[0],o=e[1];return t[0]=s+n*(i[0]-s),t[1]=o+n*(i[1]-o),t},transformMat2:function(t,e,i){var n=e[0],s=e[1];return t[0]=n*i[0]+s*i[1],t[1]=n*i[2]+s*i[3],t},str:function(t){return "this("+t[0]+", "+t[1]+")"}};},function(t,e,i){i.r(e),i.d(e,"ScrollArea",(function(){return a}));var n=i(0),s=i.n(n);class o{constructor(t,e){this.position=s.a.create(),this.contentSize=t,this.viewSize=e,this._maxPosition=s.a.create(),this._minPosition=s.a.create(),this._vec2cache=s.a.create();}getViewPosition(){return this.position}getContentPosition(){return this.position}clampPosition(){s.a.max(this._maxPosition,this.getViewSize(),this.getContentSize()),s.a.min(this._minPosition,this.getViewSize(),this.getContentSize()),s.a.sub(this._maxPosition,this._maxPosition,this._minPosition),this.position=this.clamp(this.position,s.a.create(),this._maxPosition);}setViewPosition(t){!isNaN(parseFloat(t[0]))&&isFinite(t[0])&&!isNaN(parseFloat(t[1]))&&isFinite(t[1])&&(this.position=t,this.clampPosition());}move(t){t&&this.setViewPosition(s.a.add(t,this.getViewPosition(),t));}setViewSize(t,e){this.viewSize=s.a.fromValues(t,e),this.clampPosition();}setContentSize(t,e){this.contentSize=s.a.fromValues(t,e),this.clampPosition();}isContentLonger(){return this.viewSize[1]<=this.contentSize[1]}isContentWider(){return this.viewSize[0]<=this.contentSize[0]}getContentSize(){return this.contentSize}getViewSize(){return this.viewSize}clamp(t,e,i){var n=s.a.clone(t);return s.a.max(n,n,e),s.a.min(n,n,i),n}getPercentagePosition(){return s.a.div(s.a.create(),this.position,this.viewSize)}getRelativePosition(){return s.a.sub(this._vec2cache,this.getViewSize(),this.getContentSize()),0!==s.a.len(this._vec2cache)&&s.a.div(this._vec2cache,this.getViewPosition(),s.a.sub(this._vec2cache,this.getViewSize(),this.getContentSize())),this._vec2cache}}class r{constructor(t,e,i){this.vertical=void 0===i||!i,this.position=0,this.containerSize=1,this.contentSize=1,this.mouseDelta=s.a.create(),this.onScroll=!1,this.parentElement=t,this.element=document.createElement("div"),this.element.classList.add("sa-scrollbar"),this.element.classList.add("sa-scrollbar-position-"+e),this.element.style.position="absolute",this.element.style.right="0",this.element.style.top="0",this.element.style.bottom="0",this.bar=document.createElement("div"),this.bar.style.minWidth="1px",this.bar.classList.add("sa-bar"),this.element.appendChild(this.bar),t.appendChild(this.element),this.attachEvents(this.element),this.view=new o(s.a.fromValues(this.bar.clientWidth,this.bar.clientHeight),s.a.fromValues(this.element.clientWidth,this.element.clientHeight));}attachEvents(t){if(t.addEventListener("mousedown",t=>{this.mousedown=!0,t.stopPropagation(),t.preventDefault();}),window.addEventListener("mousemove",t=>{if(this.mousedown){var e=s.a.fromValues(t.movementX,t.movementY);this.deltaMove=e,this.lastTime=Date.now(),this.getOption("reverse"),this.scroll(e);}}),window.addEventListener("mouseup",t=>{this.onEndDrag(this.deltaMove,Date.now()-this.lastTime),this.mousedown=!1;}),t.addEventListener("touchstart",t=>{t.touches&&t.touches.length>0&&(this.lastTouch=s.a.fromValues(t.touches[0].screenX,t.touches[0].screenY));},!1),window.addEventListener("touchend",t=>{this.lastTouch=null;},!1),window.addEventListener("touchcancel",t=>{this.lastTouch=null;},!1),window.addEventListener("touchmove",t=>{if(console.log("touchmove",t),t.touches&&t.touches.length>0){if(this.lastTouch){var e=s.a.fromValues(t.touches[0].screenX,t.touches[0].screenY);this.getOption("reverse")?this.scroll(s.a.sub(e,this.lastTouch,e)):this.scroll(s.a.sub(e,e,this.lastTouch));}this.lastTouch=s.a.fromValues(t.touches[0].screenX,t.touches[0].screenY);}},!1),"undefined"!=typeof ResizeObserver&&t){var e=this;this.resizeObserver=new ResizeObserver((function(){e.resize();})),this.resizeObserver.observe(t);}}scroll(t){var e=this;window.requestAnimationFrame((function(){e.view.move(t),t=s.a.clone(e.view.getContentPosition()),e.setPosition(t),e.updateCallback&&"function"==typeof e.updateCallback&&e.updateCallback(me);}));}setPosition(t){var e=1;this.getOption("swapContainers")&&(e=-1),this.bar.style.transform="translate("+t[0]*e+"px,"+t[1]*e+"px)",this.scrolling=!1,this.checkContentPosition();}checkContentPosition(){var t=this.view.getRelativePosition(),e=[];0===t[0]&&e.push("on-left"),0===t[1]&&e.push("on-top"),1===t[0]&&e.push("on-right"),1===t[1]&&e.push("on-bottom"),e!==this.positionClassNames&&(this.container.classList.remove(...this.positionClassNames),e&&e.length>0&&this.container.classList.add(...e),this.positionClassNames=e);}clear(){this.position=0,this.setPosition(0);}getBarLength(){return this.vertical?parseInt(this.bar.height()):parseInt(this.bar.width())}getViewLength(){return this.vertical?this.view.getViewSize()[1]:this.view.getViewSize()[0]}getContentLength(){return this.vertical?this.view.getContentSize()[1]:this.view.getContentSize()[0]}setContentPosition(t){var e=s.a.create(),i=this.containerSize/this.contentSize;s.a.scale(e,t,i),this.view.setViewPosition(e),this.setPosition(this.view.getContentPosition());}getPercentage(){return s.a.len(this.view.getViewPosition())/this.getViewLength()}resize(){this.view.setViewSize(parseInt(this.element.clientWidth),parseInt(this.bar.clientHeight)),this.view.setContentSize(parseInt(this.element.clientWidth),parseInt(this.bar.clientHeight)),this.checkIfScrollIsNeeded();}checkIfScrollIsNeeded(){this.view.isContentLonger()&&this.element.classList.add("content-longer"),this.view.isContentWider()&&this.element.classList.add("content-wider");}}class a{constructor(t,e,i){this.container=null,this.content=null,this.options={smooth:!0,reverse:!0,swapContainers:!0,updateInterval:10,wheelSpeed:50},void 0!==i&&i&&(this.options=this.chooseOptions(this.options,i)),console.log("vec2",s.a,s.a.create),this.setContainer(t),this.events={change:[],layout:[],ready:[]},this.lastTouch=null,this.deltaMove=s.a.create(),this.lastTime=0,this.smoothDistance=null,this.timeout=null,this.smoothCoeficent=s.a.fromValues(11,11),this.positionClassNames=[],this.mousedown=!1,this.touchstart=!1,this._vec2cache=s.a.create();this.container;this.getOption("swapContainers")?this.view=new o(s.a.fromValues(this.container.clientWidth,this.container.clientHeight),s.a.fromValues(this.content.clientWidth,this.content.clientHeight)):(this.content,this.view=new o(s.a.fromValues(this.content.clientWidth,this.content.clientHeight),s.a.fromValues(this.container.clientWidth,this.container.clientHeight))),this.container.style.position="relative",this.container.style.overflow="hidden",this.container.style.overflow="hidden",this.container.style.userSelect="none",this.attachEvents(this.container),this.scrollbar=new r(this.container,"right"),this.construct();}attachEvents(t){if(t.addEventListener("mousewheel",(function(t){var i=0;t.originalEvent&&(t=t.originalEvent),i="wheelDelta"in t?t.wheelDelta<0?1:t.wheelDelta>0?-1:1:t.deltaY>0?1:t.deltaY<0?-1:1,e.scroll(s.a.fromValues(0,e.getOption("wheelSpeed")*i));})),t.addEventListener("mousedown",t=>{this.mousedown=!0,t.stopPropagation(),t.preventDefault();}),window.addEventListener("mousemove",t=>{if(this.mousedown){var e=s.a.fromValues(t.movementX,t.movementY);this.deltaMove=e,this.lastTime=Date.now(),this.getOption("reverse"),this.scroll(e);}}),window.addEventListener("mouseup",t=>{this.mousedown=!1;}),t.addEventListener("touchstart",t=>{t.touches&&t.touches.length>0&&(this.lastTouch=s.a.fromValues(t.touches[0].screenX,t.touches[0].screenY));},!1),window.addEventListener("touchend",t=>{this.lastTouch=null;},!1),window.addEventListener("touchcancel",t=>{this.lastTouch=null;},!1),window.addEventListener("touchmove",t=>{if(console.log("touchmove",t),t.touches&&t.touches.length>0){if(this.lastTouch){var e=s.a.fromValues(t.touches[0].screenX,t.touches[0].screenY);this.getOption("reverse")?this.scroll(s.a.sub(e,this.lastTouch,e)):this.scroll(s.a.sub(e,e,this.lastTouch));}this.lastTouch=s.a.fromValues(t.touches[0].screenX,t.touches[0].screenY);}},!1),"undefined"!=typeof ResizeObserver&&t){var e=this;this.resizeObserver=new ResizeObserver((function(){e.resize();})),this.resizeObserver.observe(t);}}onEndDrag(t,e){var i=s.a.div(0,Math.abs(event.velocity));if(this.getOption("smooth")&&sqrLen(i)>.3){var n=fromValues(event.deltaX,event.deltaY),o=s.a.create();s.a.multiply(o,n,i),this.getOption("reverse");var r=this;this.stop();var a=create(),h=function(){div(a,o,r.smoothCoeficent),sqrLen(a)>3?(sub(o,o,a),requestAnimFrame(h,r.getOption("updateInterval")),negate(a,a),r.scroll(a)):r.scrolling=!1;};this.timeout=requestAnimFrame(h,r.updateInterval);}else this.scrolling=!1;}resize(){console.log("resize",this.content.clientWidth,this.content.clientHeight,"container",this.container.clientWidth,this.container.clientHeight),this.getOption("swapContainers")?(this.view.setViewSize(parseInt(this.content.clientWidth),parseInt(this.content.clientHeight)),this.view.setContentSize(parseInt(this.container.clientWidth),parseInt(this.container.clientHeight))):(this.view.setViewSize(parseInt(this.container.clientWidth),parseInt(this.container.clientHeight)),this.view.setContentSize(parseInt(this.content.clientWidth),parseInt(this.content.clientHeight))),this.checkIfScrollIsNeeded();}checkIfScrollIsNeeded(){this.view.isContentLonger()&&this.container.classList.add("content-longer"),this.view.isContentWider()&&this.container.classList.add("content-wider");}chooseOptions(t,e){for(var i in e)t[i]&&(t[i]=e[i]);return t}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;}this.container&&(this.content=this.container.firstElementChild);}getOption(t){return this.options[t]}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 i;for(let n=0,s=this.events[e].length;n<s;n++)i=this.events[e][n],"function"==typeof i&&i.apply(this,t);}}}clear(){}construct(){this.clear(),this.resize();}scroll(t){var e=this;window.requestAnimationFrame((function(){e.view.move(t),t=s.a.clone(e.view.getContentPosition()),e.setContentOffset(t),e.updateCallback&&"function"==typeof e.updateCallback&&e.updateCallback(me);}));}setContentOffset(t){var e=1;this.getOption("swapContainers")&&(e=-1),this.content.style.transform="translate("+t[0]*e+"px,"+t[1]*e+"px)",this.scrolling=!1,this.checkContentPosition();}checkContentPosition(){var t=this.view.getRelativePosition(),e=[];0===t[0]&&e.push("on-left"),0===t[1]&&e.push("on-top"),1===t[0]&&e.push("on-right"),1===t[1]&&e.push("on-bottom"),e!==this.positionClassNames&&(this.container.classList.remove(...this.positionClassNames),e&&e.length>0&&this.container.classList.add(...e),this.positionClassNames=e);}}}]).ScrollArea;
|
|
3453
|
+
module.exports=function(t){var e={};function i(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s});},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(s,n,function(e){return t[e]}.bind(null,n));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(t,e){t.exports={create:function(){return [0,0]},clone:function(t){var e=new Array(2);return e[0]=t[0],e[1]=t[1],e},fromValues:function(t,e){var i=new Array(2);return i[0]=t,i[1]=e,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},dist:function(t,e){var i=e[0]-t[0],s=e[1]-t[1];return Math.sqrt(i*i+s*s)},sqrDist:function(t,e){var i=e[0]-t[0],s=e[1]-t[1];return i*i+s*s},len:function(t){var e=t[0],i=t[1];return Math.sqrt(e*e+i*i)},length:function(t){var e=t[0],i=t[1];return Math.sqrt(e*e+i*i)},sqrLen:function(t){var e=t[0],i=t[1];return e*e+i*i},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){var i=e[0],s=e[1],n=i*i+s*s;return n>0&&(n=1/Math.sqrt(n),t[0]=e[0]*n,t[1]=e[1]*n),t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},cross:function(t,e,i){var s=e[0]*i[1]-e[1]*i[0];return t[0]=t[1]=0,t[2]=s,t},lerp:function(t,e,i,s){var n=e[0],o=e[1];return t[0]=n+s*(i[0]-n),t[1]=o+s*(i[1]-o),t},transformMat2:function(t,e,i){var s=e[0],n=e[1];return t[0]=s*i[0]+n*i[1],t[1]=s*i[2]+n*i[3],t},str:function(t){return "this("+t[0]+", "+t[1]+")"}};},function(t,e,i){i.r(e),i.d(e,"ScrollArea",(function(){return a}));var s=i(0),n=i.n(s);class o{constructor(t,e){this.position=n.a.create(),this.contentSize=t,this.viewSize=e,this._maxPosition=n.a.create(),this._minPosition=n.a.create(),this._vec2cache=n.a.create();}getViewPosition(){return this.position}getContentPosition(){return this.position}clampPosition(){n.a.max(this._maxPosition,this.getViewSize(),this.getContentSize()),n.a.min(this._minPosition,this.getViewSize(),this.getContentSize()),n.a.sub(this._maxPosition,this._maxPosition,this._minPosition),this.position=this.clamp(this.position,n.a.create(),this._maxPosition);}setViewPosition(t){!isNaN(parseFloat(t[0]))&&isFinite(t[0])&&!isNaN(parseFloat(t[1]))&&isFinite(t[1])&&(this.position=t,this.clampPosition());}move(t){t&&this.setViewPosition(n.a.sub(t,this.getViewPosition(),t));}setViewSize(t,e){this.viewSize=n.a.fromValues(t,e),this.clampPosition();}setContentSize(t,e){this.contentSize=n.a.fromValues(t,e),this.clampPosition();}isContentLonger(){return this.viewSize[1]<=this.contentSize[1]}isContentWider(){return this.viewSize[0]<=this.contentSize[0]}getContentSize(){return this.contentSize}getViewSize(){return this.viewSize}clamp(t,e,i){var s=n.a.clone(t);return n.a.max(s,s,e),n.a.min(s,s,i),s}getPercentagePosition(){return n.a.div(n.a.create(),this.position,this.viewSize)}getRelativePosition(){return n.a.sub(this._vec2cache,this.getViewSize(),this.getContentSize()),0!==n.a.len(this._vec2cache)&&n.a.div(this._vec2cache,this.getViewPosition(),n.a.sub(this._vec2cache,this.getViewSize(),this.getContentSize())),this._vec2cache}}class r{constructor(t,e,i){this.vertical=void 0===i||!i,this.position=0,this.containerSize=1,this.contentSize=1,this.mouseDelta=n.a.create(),this.onScroll=!1,this.parentElement=t,this.element=document.createElement("div"),this.element.classList.add("sa-scrollbar"),this.element.classList.add("sa-scrollbar-position-"+e),this.element.style.position="absolute",this.element.style.right="0",this.element.style.top="0",this.element.style.bottom="0",this.bar=document.createElement("div"),this.bar.style.minWidth="1px",this.bar.classList.add("sa-bar"),this.element.appendChild(this.bar),t.appendChild(this.element),this.attachEvents(this.element),this.view=new o(n.a.fromValues(this.bar.clientWidth,this.bar.clientHeight),n.a.fromValues(this.element.clientWidth,this.element.clientHeight));}attachEvents(t){if(t.addEventListener("mousedown",t=>{this.mousedown=!0,t.stopPropagation(),t.preventDefault();}),window.addEventListener("mousemove",t=>{if(this.mousedown){var e=n.a.fromValues(t.movementX,t.movementY);this.deltaMove=e,this.lastTime=Date.now(),this.getOption("reverse"),this.scroll(e);}}),window.addEventListener("mouseup",t=>{this.mousedown=!1;}),t.addEventListener("touchstart",t=>{t.touches&&t.touches.length>0&&(this.lastTouch=n.a.fromValues(t.touches[0].screenX,t.touches[0].screenY));},!1),window.addEventListener("touchend",t=>{this.lastTouch=null;},!1),window.addEventListener("touchcancel",t=>{this.lastTouch=null;},!1),window.addEventListener("touchmove",t=>{if(console.log("touchmove",t),t.touches&&t.touches.length>0){if(this.lastTouch){var e=n.a.fromValues(t.touches[0].screenX,t.touches[0].screenY);this.getOption("reverse")?this.scroll(n.a.sub(e,this.lastTouch,e)):this.scroll(n.a.sub(e,e,this.lastTouch));}this.lastTouch=n.a.fromValues(t.touches[0].screenX,t.touches[0].screenY);}},!1),"undefined"!=typeof ResizeObserver&&t){var e=this;this.resizeObserver=new ResizeObserver((function(){e.resize();})),this.resizeObserver.observe(t);}}scroll(t){var e=this;window.requestAnimationFrame((function(){e.view.move(t),t=n.a.clone(e.view.getContentPosition()),e.setPosition(t),e.updateCallback&&"function"==typeof e.updateCallback&&e.updateCallback(me);}));}setPosition(t){var e=1;this.getOption("swapContainers")&&(e=-1),this.bar.style.transform="translate("+t[0]*e+"px,"+t[1]*e+"px)",this.scrolling=!1,this.checkContentPosition();}checkContentPosition(){var t=this.view.getRelativePosition(),e=[];0===t[0]&&e.push("on-left"),0===t[1]&&e.push("on-top"),1===t[0]&&e.push("on-right"),1===t[1]&&e.push("on-bottom"),e!==this.positionClassNames&&(this.container.classList.remove(...this.positionClassNames),e&&e.length>0&&this.container.classList.add(...e),this.positionClassNames=e);}clear(){this.position=0,this.setPosition(0);}getBarLength(){return this.vertical?parseInt(this.bar.height()):parseInt(this.bar.width())}getViewLength(){return this.vertical?this.view.getViewSize()[1]:this.view.getViewSize()[0]}getContentLength(){return this.vertical?this.view.getContentSize()[1]:this.view.getContentSize()[0]}setContentPosition(t){var e=n.a.create(),i=this.containerSize/this.contentSize;n.a.scale(e,t,i),this.view.setViewPosition(e),this.setPosition(this.view.getContentPosition());}getPercentage(){return n.a.len(this.view.getViewPosition())/this.getViewLength()}resize(){this.view.setViewSize(parseInt(this.element.clientWidth),parseInt(this.bar.clientHeight)),this.view.setContentSize(parseInt(this.element.clientWidth),parseInt(this.bar.clientHeight)),this.checkIfScrollIsNeeded();}checkIfScrollIsNeeded(){this.view.isContentLonger()&&this.element.classList.add("content-longer"),this.view.isContentWider()&&this.element.classList.add("content-wider");}}class a{constructor(t,e,i){this.container=null,this.content=null,this.options={smooth:!0,reverse:!0,swapContainers:!0,updateInterval:10,wheelSpeed:50},void 0!==i&&i&&(this.options=this.chooseOptions(this.options,i)),console.log("vec2",n.a,n.a.create),this.setContainer(t),this.events={change:[],layout:[],ready:[]},this.lastTouch=null,this.deltaMove=n.a.create(),this.lastTime=0,this.smoothDistance=null,this.timeout=null,this.smoothCoeficent=n.a.fromValues(11,11),this.positionClassNames=[],this.mousedown=!1,this.touchstart=!1,this._vec2cache=n.a.create();this.container;if(this.getOption("swapContainers")?this.view=new o(n.a.fromValues(this.container.clientWidth,this.container.clientHeight),n.a.fromValues(this.content.clientWidth,this.content.clientHeight)):(this.content,this.view=new o(n.a.fromValues(this.content.clientWidth,this.content.clientHeight),n.a.fromValues(this.container.clientWidth,this.container.clientHeight))),this.container.style.position="relative",this.container.style.overflow="hidden",this.container.style.overflow="hidden",this.container.style.userSelect="none",this.attachEvents(this.container),this.scrollbar=new r(this.container,"right"),"undefined"!=typeof ResizeObserver&&this.content){var s=this;this.resizeObserver=new ResizeObserver((function(){console.log("resizeObserver2"),s.resize();})),this.resizeObserver.observe(this.content);}}attachEvents(t){t.addEventListener("mousewheel",t=>{var e=0;t.originalEvent&&(t=t.originalEvent),e="wheelDelta"in t?t.wheelDelta<0?1:t.wheelDelta>0?-1:1:t.deltaY>0?1:t.deltaY<0?-1:1,this.scroll(n.a.fromValues(0,scope.getOption("wheelSpeed")*e));}),t.addEventListener("mousedown",t=>{this.mousedown=!0,t.stopPropagation(),t.preventDefault();}),window.addEventListener("mousemove",t=>{if(this.mousedown){var e=n.a.fromValues(t.movementX,t.movementY);this.deltaMove=e,this.lastTime=Date.now(),this.getOption("reverse"),this.scroll(e);}}),window.addEventListener("mouseup",t=>{this.mousedown=!1;}),t.addEventListener("touchstart",t=>{t.touches&&t.touches.length>0&&(this.lastTouch=n.a.fromValues(t.touches[0].screenX,t.touches[0].screenY));},!1),window.addEventListener("touchend",t=>{this.lastTouch=null;},!1),window.addEventListener("touchcancel",t=>{this.lastTouch=null;},!1),window.addEventListener("touchmove",t=>{if(console.log("touchmove",t),t.touches&&t.touches.length>0){if(this.lastTouch){var e=n.a.fromValues(t.touches[0].screenX,t.touches[0].screenY);this.getOption("reverse")?this.scroll(n.a.sub(e,this.lastTouch,e)):this.scroll(n.a.sub(e,e,this.lastTouch));}this.lastTouch=n.a.fromValues(t.touches[0].screenX,t.touches[0].screenY);}},!1);}onEndDrag(t,e){var i=n.a.div(0,Math.abs(event.velocity));if(this.getOption("smooth")&&sqrLen(i)>.3){var s=fromValues(event.deltaX,event.deltaY),o=n.a.create();n.a.multiply(o,s,i),this.getOption("reverse");var r=this;this.stop();var a=create(),h=function(){div(a,o,r.smoothCoeficent),sqrLen(a)>3?(sub(o,o,a),requestAnimFrame(h,r.getOption("updateInterval")),negate(a,a),r.scroll(a)):r.scrolling=!1;};this.timeout=requestAnimFrame(h,r.updateInterval);}else this.scrolling=!1;}resize(){this.getOption("swapContainers")?(this.view.setViewSize(parseInt(this.content.clientWidth),parseInt(this.content.clientHeight)),this.view.setContentSize(parseInt(this.container.clientWidth),parseInt(this.container.clientHeight))):(this.view.setViewSize(parseInt(this.container.clientWidth),parseInt(this.container.clientHeight)),this.view.setContentSize(parseInt(this.content.clientWidth),parseInt(this.content.clientHeight))),this.checkIfScrollIsNeeded();}reset(){this.setContentOffset([0,0]);}checkIfScrollIsNeeded(){this.view.isContentLonger()&&this.container.classList.add("content-longer"),this.view.isContentWider()&&this.container.classList.add("content-wider");}chooseOptions(t,e){for(var i in e)t[i]&&(t[i]=e[i]);return t}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;}this.container&&(this.content=this.container.firstElementChild);}getOption(t){return this.options[t]}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 i;for(let s=0,n=this.events[e].length;s<n;s++)i=this.events[e][s],"function"==typeof i&&i.apply(this,t);}}}scroll(t){var e=this;window.requestAnimationFrame((function(){e.view.move(t),t=n.a.clone(e.view.getContentPosition()),e.setContentOffset(t),e.updateCallback&&"function"==typeof e.updateCallback&&e.updateCallback(me);}));}setContentOffset(t){var e=1;this.getOption("swapContainers")&&(e=-1),this.content.style.transform="translate("+t[0]*e+"px,"+t[1]*e+"px)",this.scrolling=!1,this.checkContentPosition();}checkContentPosition(){var t=this.view.getRelativePosition(),e=[];0===t[0]&&e.push("on-left"),0===t[1]&&e.push("on-top"),1===t[0]&&e.push("on-right"),1===t[1]&&e.push("on-bottom"),e!==this.positionClassNames&&(this.container.classList.remove(...this.positionClassNames),e&&e.length>0&&this.container.classList.add(...e),this.positionClassNames=e);}}}]).ScrollArea;
|
|
3322
3454
|
});
|
|
3323
3455
|
|
|
3324
3456
|
//
|
|
@@ -3667,11 +3799,6 @@ const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
|
|
|
3667
3799
|
staticRenderFns: __vue_staticRenderFns__$1
|
|
3668
3800
|
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, createInjector, undefined, undefined);
|
|
3669
3801
|
|
|
3670
|
-
//
|
|
3671
|
-
//
|
|
3672
|
-
//
|
|
3673
|
-
//
|
|
3674
|
-
//
|
|
3675
3802
|
//
|
|
3676
3803
|
var script = {
|
|
3677
3804
|
name: 'MapFloors',
|
|
@@ -3680,6 +3807,24 @@ var script = {
|
|
|
3680
3807
|
type: String,
|
|
3681
3808
|
default: ""
|
|
3682
3809
|
}
|
|
3810
|
+
},
|
|
3811
|
+
computed: { ...mapState(['reset'])
|
|
3812
|
+
},
|
|
3813
|
+
|
|
3814
|
+
data() {
|
|
3815
|
+
return {
|
|
3816
|
+
currentSRC: ""
|
|
3817
|
+
};
|
|
3818
|
+
},
|
|
3819
|
+
|
|
3820
|
+
mounted() {
|
|
3821
|
+
this.currentSRC = this.src;
|
|
3822
|
+
},
|
|
3823
|
+
|
|
3824
|
+
watch: {
|
|
3825
|
+
reset: function (newVal) {
|
|
3826
|
+
this.currentSRC = this.src + "?t=" + Date.now();
|
|
3827
|
+
}
|
|
3683
3828
|
}
|
|
3684
3829
|
};
|
|
3685
3830
|
|
|
@@ -3698,7 +3843,7 @@ var __vue_render__ = function () {
|
|
|
3698
3843
|
staticClass: "wf-component wf-browser"
|
|
3699
3844
|
}, [_c('iframe', {
|
|
3700
3845
|
attrs: {
|
|
3701
|
-
"src": _vm.
|
|
3846
|
+
"src": _vm.currentSRC
|
|
3702
3847
|
}
|
|
3703
3848
|
})]);
|
|
3704
3849
|
};
|
|
@@ -3708,7 +3853,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
3708
3853
|
|
|
3709
3854
|
const __vue_inject_styles__ = function (inject) {
|
|
3710
3855
|
if (!inject) return;
|
|
3711
|
-
inject("data-v-
|
|
3856
|
+
inject("data-v-55f34065_0", {
|
|
3712
3857
|
source: ".wf-browser,.wf-browser iframe{width:100%;height:100%;border:none}",
|
|
3713
3858
|
map: undefined,
|
|
3714
3859
|
media: undefined
|
|
@@ -3757,7 +3902,8 @@ var store = new index.Store({
|
|
|
3757
3902
|
banners: {},
|
|
3758
3903
|
landscape: false,
|
|
3759
3904
|
mobile: false,
|
|
3760
|
-
maxInActivity: 30
|
|
3905
|
+
maxInActivity: 30,
|
|
3906
|
+
reset: 0
|
|
3761
3907
|
},
|
|
3762
3908
|
getters: {
|
|
3763
3909
|
xLanguage: (state, context) => {
|
|
@@ -3859,6 +4005,9 @@ var store = new index.Store({
|
|
|
3859
4005
|
},
|
|
3860
4006
|
SET_FILTERED_POIS: (state, pois) => {
|
|
3861
4007
|
state.filteredPOIs = pois;
|
|
4008
|
+
},
|
|
4009
|
+
RESET: (state, pois) => {
|
|
4010
|
+
state.reset = Date.now();
|
|
3862
4011
|
}
|
|
3863
4012
|
},
|
|
3864
4013
|
actions: {
|
|
@@ -3891,7 +4040,12 @@ var store = new index.Store({
|
|
|
3891
4040
|
},
|
|
3892
4041
|
SET_FILTERED_POIS: (context, pois) => {
|
|
3893
4042
|
context.commit('SET_FILTERED_POIS', Object.freeze(pois));
|
|
4043
|
+
},
|
|
4044
|
+
|
|
4045
|
+
RESET(context) {
|
|
4046
|
+
context.commit('RESET');
|
|
3894
4047
|
}
|
|
4048
|
+
|
|
3895
4049
|
}
|
|
3896
4050
|
});
|
|
3897
4051
|
|
|
@@ -3899,9 +4053,10 @@ var store = new index.Store({
|
|
|
3899
4053
|
|
|
3900
4054
|
var components = /*#__PURE__*/Object.freeze({
|
|
3901
4055
|
__proto__: null,
|
|
3902
|
-
WFMap: __vue_component__$
|
|
3903
|
-
WFAZMenu: __vue_component__$
|
|
3904
|
-
WFFlagsMenu: __vue_component__$
|
|
4056
|
+
WFMap: __vue_component__$i,
|
|
4057
|
+
WFAZMenu: __vue_component__$g,
|
|
4058
|
+
WFFlagsMenu: __vue_component__$f,
|
|
4059
|
+
WFLanguagesMenu: __vue_component__$e,
|
|
3905
4060
|
WFGroupsMenu: __vue_component__$d,
|
|
3906
4061
|
WFBuildingLogo: __vue_component__$c,
|
|
3907
4062
|
WFShortcutsMenu: __vue_component__$a,
|
|
@@ -3914,7 +4069,7 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
3914
4069
|
WFTabButtons: __vue_component__$3,
|
|
3915
4070
|
WFScrollableArea: __vue_component__$2,
|
|
3916
4071
|
WFBanner: __vue_component__$1,
|
|
3917
|
-
WFPOI: __vue_component__$
|
|
4072
|
+
WFPOI: __vue_component__$h,
|
|
3918
4073
|
WFYAH: __vue_component__$b,
|
|
3919
4074
|
WFBrowser: __vue_component__,
|
|
3920
4075
|
WFStore: store
|
|
@@ -3929,4 +4084,4 @@ const install = function installWayfinderVueComponents(Vue) {
|
|
|
3929
4084
|
}; // Create module definition for Vue.use()
|
|
3930
4085
|
|
|
3931
4086
|
export default install;
|
|
3932
|
-
export { __vue_component__$
|
|
4087
|
+
export { __vue_component__$g as WFAZMenu, __vue_component__$1 as WFBanner, __vue_component__ as WFBrowser, __vue_component__$c as WFBuildingLogo, __vue_component__$7 as WFFilteredMenu, __vue_component__$f as WFFlagsMenu, __vue_component__$8 as WFFloorsMenu, __vue_component__$d as WFGroupsMenu, __vue_component__$e as WFLanguagesMenu, __vue_component__$i as WFMap, __vue_component__$h as WFPOI, __vue_component__$2 as WFScrollableArea, __vue_component__$6 as WFSearch, __vue_component__$a as WFShortcutsMenu, store as WFStore, __vue_component__$4 as WFTab, __vue_component__$3 as WFTabButtons, __vue_component__$5 as WFTabs, __vue_component__$b as WFYAH, __vue_component__$9 as WFZoomMenu };
|