@expofp/floorplan 3.0.0-alpha.14 → 3.0.0-alpha.16
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/browser/{Debug-Pul6-ZdY.js → Debug-DazuGIJc.js} +19 -10
- package/dist/browser/Demo-CXdISYQf.js +47 -0
- package/dist/browser/{Free-Dm2FRajw.js → Free-CVgHQ8yt.js} +29 -20
- package/dist/browser/Gallery-BMcvPLO_.js +288 -0
- package/dist/browser/GpsLoader-BiwFO3QG.js +140 -0
- package/dist/browser/{KioskStore-Bvvm0aNQ.js → KioskStore-NqUeUutQ.js} +58 -49
- package/dist/browser/Mapbox-PHCrBnx5.js +118 -0
- package/dist/browser/{SetKioskMode-BecTBVRp.js → SetKioskMode-DMQej1ec.js} +86 -77
- package/dist/browser/{ShowKiosk-C-6DHz7T.js → ShowKiosk-BWlBMcI7.js} +28 -19
- package/dist/browser/{ThreeComponent-Brnrh22I.js → ThreeComponent-Dmt2HPyX.js} +181 -172
- package/dist/browser/ViewerMenuPanel-CuqRZ7m1.js +77 -0
- package/dist/browser/boolean-editor-zsvPcNpX.js +157 -0
- package/dist/browser/bundle.json +32 -29
- package/dist/browser/{client-D3Op9Jdd.js → client-B2kCMH8A.js} +590 -581
- package/dist/browser/{data-0pZ-ZMEi.js → data-BtD6blv7.js} +276 -267
- package/dist/browser/{debug-overlay-6c_tWF4O.js → debug-overlay-CF0imHRX.js} +98 -89
- package/dist/browser/debug-ui-Zt7T7T-N.js +67 -0
- package/dist/browser/{favicon-DalyEhbd.js → favicon-Dj8hNa7i.js} +11 -2
- package/dist/browser/fetch-retry.umd-B-swKpFA.js +123 -0
- package/dist/browser/{flex-OW_m-DBA.js → flex-COa6XN1F.js} +80 -71
- package/dist/browser/{floorplan.ready-D-VQ-QvS.js → floorplan.ready-CNnM_Yyc.js} +12217 -14231
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/index-B1P-x0sk.js +92 -0
- package/dist/browser/index-BEcZnTgd.js +54 -0
- package/dist/browser/{index-BUq8_R36.js → index-BeS6l0j-.js} +50 -41
- package/dist/browser/index-C04zJbbt.js +12475 -0
- package/dist/browser/index-CgWDjED_.js +57 -0
- package/dist/browser/{index-BuJlIIdP.js → index-CqICVJZO.js} +96 -87
- package/dist/browser/{index-AJbTBu7z.js → index-atMSRNM1.js} +258 -249
- package/dist/browser/index.js +11 -2
- package/dist/browser/jsx-runtime-DAY7g56y.js +40 -0
- package/dist/browser/locales/ar.json +3 -1
- package/dist/browser/locales/de.json +3 -1
- package/dist/browser/locales/es.json +3 -1
- package/dist/browser/locales/fr.json +3 -1
- package/dist/browser/locales/he.json +3 -1
- package/dist/browser/locales/it.json +3 -1
- package/dist/browser/locales/kk.json +3 -1
- package/dist/browser/locales/ko.json +3 -1
- package/dist/browser/locales/mn.json +3 -1
- package/dist/browser/locales/nl.json +3 -1
- package/dist/browser/locales/pl.json +3 -1
- package/dist/browser/locales/pt.json +3 -1
- package/dist/browser/locales/ru.json +3 -1
- package/dist/browser/locales/sv.json +3 -1
- package/dist/browser/locales/th.json +3 -1
- package/dist/browser/locales/tr.json +3 -1
- package/dist/browser/locales/uk.json +3 -1
- package/dist/browser/locales/vi.json +3 -1
- package/dist/browser/locales/zh.json +3 -1
- package/dist/browser/{main-CD9JioNt.js → main-DZpmA53N.js} +24 -15
- package/dist/browser/{particles.min-BZTb0pvb.js → particles.min-DXab_WLN.js} +43 -34
- package/dist/esm/components/Alert.d.ts +2 -0
- package/dist/esm/components/Alert.js +1 -1
- package/dist/esm/components/Badge.d.ts +3 -2
- package/dist/esm/components/Badge.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/Overlay.d.ts +2 -0
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
- package/dist/esm/components/Schedule.js +1 -1
- package/dist/esm/components/SearchBox.js +1 -1
- package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
- package/dist/esm/components/ViewerMenuPanel.js +1 -0
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/floorplan.loader.d.ts +2 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/store/LayerStore.d.ts +1 -0
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/RoutePlannerStore.d.ts +16 -0
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +1 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/tools/telemetry.d.ts +35 -0
- package/dist/esm/tools/telemetry.js +1 -0
- package/dist/esm/tools/track-event.d.ts +3 -1
- package/dist/esm/tools/track-event.js +1 -1
- package/dist/esm/utils/i18n.d.ts +2 -2
- package/dist/esm/utils/i18n.js +1 -1
- package/package.json +4 -3
- package/dist/browser/Demo-DN_Ej-P_.js +0 -38
- package/dist/browser/Gallery-TLr-wfCG.js +0 -279
- package/dist/browser/GpsLoader-CeS0cp98.js +0 -131
- package/dist/browser/Mapbox-DizBJSb0.js +0 -109
- package/dist/browser/boolean-editor-Duwgypgb.js +0 -148
- package/dist/browser/debug-ui-TGRI1j4k.js +0 -58
- package/dist/browser/fetch-retry.umd-BZ52tMyv.js +0 -114
- package/dist/browser/index-B2YV6GNs.js +0 -48
- package/dist/browser/index-D0SjrKD-.js +0 -45
- package/dist/browser/index-Vc2rrV4B.js +0 -83
- package/dist/browser/index-Zz9lJz5_.js +0 -10224
- package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { j as l } from "./jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { r as h, u as j, o as k } from "./index-Zz9lJz5_.js";
|
|
3
|
-
import { y as _, r as O } from "./index-D0SjrKD-.js";
|
|
4
|
-
import { ax as z, ay as L, az as R, aA as G, aB as T, aC as B, aD as D, aE as M } from "./floorplan.ready-D-VQ-QvS.js";
|
|
5
|
-
const P = ({
|
|
6
|
-
count: e,
|
|
7
|
-
onFullscreen: c
|
|
8
|
-
}) => /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
9
|
-
/* @__PURE__ */ l.jsxs("div", { className: "gallery__badge gallery__badge-count", children: [
|
|
10
|
-
/* @__PURE__ */ l.jsx("i", { className: "icon-image" }),
|
|
11
|
-
/* @__PURE__ */ l.jsx("span", { children: e })
|
|
12
|
-
] }),
|
|
13
|
-
/* @__PURE__ */ l.jsx("div", { className: "gallery__badge gallery__badge-fullscreen", onClick: c, children: /* @__PURE__ */ l.jsx("i", { className: "icon-maximize" }) })
|
|
14
|
-
] });
|
|
15
|
-
class A {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.cache = [], this.load = (c) => new Promise((o, d) => {
|
|
18
|
-
c || o(null);
|
|
19
|
-
var t = this.cache.filter((g) => g.src === c)[0];
|
|
20
|
-
t ? o(t) : (t = new Image(), t.crossOrigin = "anonymous", t.src = c, t.onload = () => {
|
|
21
|
-
this.cache.length > 10 && this.cache.shift(), this.cache.push(t), o(t);
|
|
22
|
-
}, t.onerror = (g) => {
|
|
23
|
-
d(g);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const S = new A(), I = ({
|
|
29
|
-
url: e,
|
|
30
|
-
setHeight: c = !1,
|
|
31
|
-
position: o = "center",
|
|
32
|
-
isFullscreen: d = !1,
|
|
33
|
-
leading: t = !1,
|
|
34
|
-
fillMode: g = "contain",
|
|
35
|
-
onImageLoadHeightUpdate: m
|
|
36
|
-
}) => {
|
|
37
|
-
const u = h.useRef(null), f = h.useRef(null);
|
|
38
|
-
h.useEffect(() => {
|
|
39
|
-
!u.current || !f.current || !t || x(e);
|
|
40
|
-
}, [e]);
|
|
41
|
-
const x = async (p) => {
|
|
42
|
-
if (c)
|
|
43
|
-
try {
|
|
44
|
-
const v = await S.load(p);
|
|
45
|
-
f.current.style.height = v.height * f.current.clientWidth / v.width + "px", m && m();
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
}, y = {
|
|
49
|
-
backgroundImage: `url("${e}")`,
|
|
50
|
-
backgroundSize: g,
|
|
51
|
-
backgroundRepeat: "no-repeat",
|
|
52
|
-
transition: t ? "all 0.5s ease 0s" : "none",
|
|
53
|
-
backgroundPosition: o
|
|
54
|
-
};
|
|
55
|
-
return /* @__PURE__ */ l.jsx("div", { ref: f, style: {
|
|
56
|
-
width: "100%",
|
|
57
|
-
height: t && !d ? "250px" : "100%"
|
|
58
|
-
}, children: /* @__PURE__ */ l.jsx("div", { ref: u, className: "gallery__img", style: y }) });
|
|
59
|
-
}, N = ({
|
|
60
|
-
url: e,
|
|
61
|
-
position: c = "center",
|
|
62
|
-
leading: o = !1,
|
|
63
|
-
setHeight: d = !1,
|
|
64
|
-
fillMode: t,
|
|
65
|
-
onClick: g,
|
|
66
|
-
onImageLoadHeightUpdate: m
|
|
67
|
-
}) => /* @__PURE__ */ l.jsx("div", { className: "gallery__item", onClick: g, children: /* @__PURE__ */ l.jsx(I, { position: c, fillMode: t, url: e, leading: o, setHeight: d, onImageLoadHeightUpdate: m }) });
|
|
68
|
-
function q(e, c, o, d) {
|
|
69
|
-
return e.params.createElements && Object.keys(d).forEach((t) => {
|
|
70
|
-
if (!o[t] && o.auto === !0) {
|
|
71
|
-
let g = z(e.el, `.${d[t]}`)[0];
|
|
72
|
-
g || (g = L("div", d[t]), g.className = d[t], e.el.append(g)), o[t] = g, c[t] = g;
|
|
73
|
-
}
|
|
74
|
-
}), o;
|
|
75
|
-
}
|
|
76
|
-
function F({
|
|
77
|
-
swiper: e,
|
|
78
|
-
extendParams: c,
|
|
79
|
-
on: o,
|
|
80
|
-
emit: d
|
|
81
|
-
}) {
|
|
82
|
-
c({
|
|
83
|
-
navigation: {
|
|
84
|
-
nextEl: null,
|
|
85
|
-
prevEl: null,
|
|
86
|
-
hideOnClick: !1,
|
|
87
|
-
disabledClass: "swiper-button-disabled",
|
|
88
|
-
hiddenClass: "swiper-button-hidden",
|
|
89
|
-
lockClass: "swiper-button-lock",
|
|
90
|
-
navigationDisabledClass: "swiper-navigation-disabled"
|
|
91
|
-
}
|
|
92
|
-
}), e.navigation = {
|
|
93
|
-
nextEl: null,
|
|
94
|
-
prevEl: null
|
|
95
|
-
};
|
|
96
|
-
const t = (a) => (Array.isArray(a) || (a = [a].filter((s) => !!s)), a);
|
|
97
|
-
function g(a) {
|
|
98
|
-
let s;
|
|
99
|
-
return a && typeof a == "string" && e.isElement && (s = e.el.shadowRoot.querySelector(a), s) ? s : (a && (typeof a == "string" && (s = [...document.querySelectorAll(a)]), e.params.uniqueNavElements && typeof a == "string" && s.length > 1 && e.el.querySelectorAll(a).length === 1 && (s = e.el.querySelector(a))), a && !s ? a : s);
|
|
100
|
-
}
|
|
101
|
-
function m(a, s) {
|
|
102
|
-
const i = e.params.navigation;
|
|
103
|
-
a = t(a), a.forEach((n) => {
|
|
104
|
-
n && (n.classList[s ? "add" : "remove"](...i.disabledClass.split(" ")), n.tagName === "BUTTON" && (n.disabled = s), e.params.watchOverflow && e.enabled && n.classList[e.isLocked ? "add" : "remove"](i.lockClass));
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function u() {
|
|
108
|
-
const {
|
|
109
|
-
nextEl: a,
|
|
110
|
-
prevEl: s
|
|
111
|
-
} = e.navigation;
|
|
112
|
-
if (e.params.loop) {
|
|
113
|
-
m(s, !1), m(a, !1);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
m(s, e.isBeginning && !e.params.rewind), m(a, e.isEnd && !e.params.rewind);
|
|
117
|
-
}
|
|
118
|
-
function f(a) {
|
|
119
|
-
a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), d("navigationPrev"));
|
|
120
|
-
}
|
|
121
|
-
function x(a) {
|
|
122
|
-
a.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), d("navigationNext"));
|
|
123
|
-
}
|
|
124
|
-
function y() {
|
|
125
|
-
const a = e.params.navigation;
|
|
126
|
-
if (e.params.navigation = q(e, e.originalParams.navigation, e.params.navigation, {
|
|
127
|
-
nextEl: "swiper-button-next",
|
|
128
|
-
prevEl: "swiper-button-prev"
|
|
129
|
-
}), !(a.nextEl || a.prevEl)) return;
|
|
130
|
-
let s = g(a.nextEl), i = g(a.prevEl);
|
|
131
|
-
Object.assign(e.navigation, {
|
|
132
|
-
nextEl: s,
|
|
133
|
-
prevEl: i
|
|
134
|
-
}), s = t(s), i = t(i);
|
|
135
|
-
const n = (r, E) => {
|
|
136
|
-
r && r.addEventListener("click", E === "next" ? x : f), !e.enabled && r && r.classList.add(...a.lockClass.split(" "));
|
|
137
|
-
};
|
|
138
|
-
s.forEach((r) => n(r, "next")), i.forEach((r) => n(r, "prev"));
|
|
139
|
-
}
|
|
140
|
-
function p() {
|
|
141
|
-
let {
|
|
142
|
-
nextEl: a,
|
|
143
|
-
prevEl: s
|
|
144
|
-
} = e.navigation;
|
|
145
|
-
a = t(a), s = t(s);
|
|
146
|
-
const i = (n, r) => {
|
|
147
|
-
n.removeEventListener("click", r === "next" ? x : f), n.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
148
|
-
};
|
|
149
|
-
a.forEach((n) => i(n, "next")), s.forEach((n) => i(n, "prev"));
|
|
150
|
-
}
|
|
151
|
-
o("init", () => {
|
|
152
|
-
e.params.navigation.enabled === !1 ? b() : (y(), u());
|
|
153
|
-
}), o("toEdge fromEdge lock unlock", () => {
|
|
154
|
-
u();
|
|
155
|
-
}), o("destroy", () => {
|
|
156
|
-
p();
|
|
157
|
-
}), o("enable disable", () => {
|
|
158
|
-
let {
|
|
159
|
-
nextEl: a,
|
|
160
|
-
prevEl: s
|
|
161
|
-
} = e.navigation;
|
|
162
|
-
a = t(a), s = t(s), [...a, ...s].filter((i) => !!i).forEach((i) => i.classList[e.enabled ? "remove" : "add"](e.params.navigation.lockClass));
|
|
163
|
-
}), o("click", (a, s) => {
|
|
164
|
-
let {
|
|
165
|
-
nextEl: i,
|
|
166
|
-
prevEl: n
|
|
167
|
-
} = e.navigation;
|
|
168
|
-
i = t(i), n = t(n);
|
|
169
|
-
const r = s.target;
|
|
170
|
-
if (e.params.navigation.hideOnClick && !n.includes(r) && !i.includes(r)) {
|
|
171
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === r || e.pagination.el.contains(r))) return;
|
|
172
|
-
let E;
|
|
173
|
-
i.length ? E = i[0].classList.contains(e.params.navigation.hiddenClass) : n.length && (E = n[0].classList.contains(e.params.navigation.hiddenClass)), d(E === !0 ? "navigationShow" : "navigationHide"), [...i, ...n].filter((C) => !!C).forEach((C) => C.classList.toggle(e.params.navigation.hiddenClass));
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
const v = () => {
|
|
177
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), y(), u();
|
|
178
|
-
}, b = () => {
|
|
179
|
-
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), p();
|
|
180
|
-
};
|
|
181
|
-
Object.assign(e.navigation, {
|
|
182
|
-
enable: v,
|
|
183
|
-
disable: b,
|
|
184
|
-
update: u,
|
|
185
|
-
init: y,
|
|
186
|
-
destroy: p
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
const U = ({
|
|
190
|
-
zoomIn: e,
|
|
191
|
-
zoomOut: c,
|
|
192
|
-
onClose: o
|
|
193
|
-
}) => /* @__PURE__ */ l.jsxs("div", { className: "gallery-slider__controls", children: [
|
|
194
|
-
/* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn close", title: j("Close"), "aria-label": j("Close"), onClick: o, children: /* @__PURE__ */ l.jsx("i", { className: "icon-close", "aria-hidden": "true" }) }),
|
|
195
|
-
/* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn zoom-in", title: j("Zoom In"), "aria-label": j("Zoom In"), onClick: () => e(), children: /* @__PURE__ */ l.jsx("i", { className: "icon-zoom-in", "aria-hidden": "true" }) }),
|
|
196
|
-
/* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn zoom-out", title: j("Zoom Out"), "aria-label": j("Zoom Out"), onClick: () => c(), children: /* @__PURE__ */ l.jsx("i", { className: "icon-zoom-out", "aria-hidden": "true" }) })
|
|
197
|
-
] }), Z = ({
|
|
198
|
-
swiperRef: e,
|
|
199
|
-
leading: c,
|
|
200
|
-
url: o
|
|
201
|
-
}) => (R(({
|
|
202
|
-
state: d,
|
|
203
|
-
instance: t
|
|
204
|
-
}) => {
|
|
205
|
-
e.current && (e.current.allowTouchMove = d.scale === 1, d.scale === 1 && d.positionX !== 0 && d.positionY !== 0 && t.setCenter());
|
|
206
|
-
}), /* @__PURE__ */ l.jsx(G, { wrapperClass: "gallery-slider__zoom", contentClass: "gallery-slider__zoom-content", children: /* @__PURE__ */ l.jsx(I, { isFullscreen: !0, leading: c, url: o }) })), H = (e) => {
|
|
207
|
-
const {
|
|
208
|
-
images: c,
|
|
209
|
-
leading: o,
|
|
210
|
-
initialSlideIndex: d,
|
|
211
|
-
onClose: t,
|
|
212
|
-
className: g
|
|
213
|
-
} = e, m = T(), [u, f] = h.useState(d), [x, y] = h.useState([]), p = h.useRef(null), v = h.useRef(null), b = h.useRef(null), a = {
|
|
214
|
-
initialSlide: d,
|
|
215
|
-
draggable: !1,
|
|
216
|
-
modules: [F],
|
|
217
|
-
spaceBetween: 50,
|
|
218
|
-
slidesPerView: 1,
|
|
219
|
-
navigation: {
|
|
220
|
-
prevEl: v.current,
|
|
221
|
-
nextEl: b.current
|
|
222
|
-
},
|
|
223
|
-
grabCursor: !0
|
|
224
|
-
}, s = /* @__PURE__ */ l.jsx("div", { className: _("gallery-modal", g), children: /* @__PURE__ */ l.jsxs(B, { onSwiper: (i) => p.current = i, className: "gallery-slider", onSlideChange: (i) => {
|
|
225
|
-
var n;
|
|
226
|
-
f(i.activeIndex), (n = x[i.previousIndex]) == null || n.resetTransform();
|
|
227
|
-
}, ...a, children: [
|
|
228
|
-
x.length ? /* @__PURE__ */ l.jsx(U, { onClose: t, zoomIn: x[u].zoomIn, zoomOut: x[u].zoomOut }) : null,
|
|
229
|
-
c.length > 1 && /* @__PURE__ */ l.jsx("button", { ref: b, title: j("Next slide"), "aria-label": "˃", className: "gallery-slider__btn next", children: /* @__PURE__ */ l.jsx("i", { className: "icon-chevron-right" }) }),
|
|
230
|
-
c.length > 1 && /* @__PURE__ */ l.jsx("button", { ref: v, title: j("Prev slide"), "aria-label": "˂", className: "gallery-slider__btn prev", children: /* @__PURE__ */ l.jsx("i", { className: "icon-chevron-left" }) }),
|
|
231
|
-
c.map((i, n) => /* @__PURE__ */ l.jsx(D, { children: /* @__PURE__ */ l.jsx(M, { initialScale: 1, alignmentAnimation: {
|
|
232
|
-
sizeX: 0,
|
|
233
|
-
sizeY: 0
|
|
234
|
-
}, onInit: (r) => {
|
|
235
|
-
y((E) => [...E, r]);
|
|
236
|
-
}, children: /* @__PURE__ */ l.jsx(Z, { leading: o, swiperRef: p, url: i }) }) }, i + n))
|
|
237
|
-
] }) });
|
|
238
|
-
return m ? O.createPortal(s, m) : null;
|
|
239
|
-
}, V = (e) => {
|
|
240
|
-
const {
|
|
241
|
-
images: c,
|
|
242
|
-
leading: o = !1,
|
|
243
|
-
onImageLoadHeightUpdate: d,
|
|
244
|
-
onOpenGallery: t,
|
|
245
|
-
onCloseGallery: g,
|
|
246
|
-
className: m
|
|
247
|
-
} = e, [u, f] = h.useState(!1), [x, y] = h.useState(0), [p, v] = h.useState(!1), b = (n) => {
|
|
248
|
-
y(n), f(!0), t && t();
|
|
249
|
-
}, a = () => {
|
|
250
|
-
f(!1), g && g();
|
|
251
|
-
}, s = (n) => {
|
|
252
|
-
let r = n.split("/");
|
|
253
|
-
const E = r[r.length - 1];
|
|
254
|
-
return E.indexOf("original-") === -1 && (r[r.length - 1] = "original-" + E), r.join("/");
|
|
255
|
-
}, i = (n, r) => r ? s(n) : n;
|
|
256
|
-
return h.useEffect(() => {
|
|
257
|
-
(async () => {
|
|
258
|
-
if (c.length > 0) {
|
|
259
|
-
const r = i(c[0], !0);
|
|
260
|
-
try {
|
|
261
|
-
await S.load(r), v(!0);
|
|
262
|
-
} catch {
|
|
263
|
-
v(!1);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
})();
|
|
267
|
-
}, [c]), /* @__PURE__ */ l.jsxs(k.Fragment, { children: [
|
|
268
|
-
/* @__PURE__ */ l.jsxs("div", { className: _("gallery", {
|
|
269
|
-
"gallery-leading": o
|
|
270
|
-
}, m), children: [
|
|
271
|
-
/* @__PURE__ */ l.jsx("div", { className: "gallery__wrapper", children: o ? /* @__PURE__ */ l.jsx(N, { url: c[0], leading: o, setHeight: !0, fillMode: "contain", onClick: () => b(0), onImageLoadHeightUpdate: d }) : c.map((n, r) => /* @__PURE__ */ l.jsx(N, { url: n, position: "top", fillMode: "cover", onClick: () => b(r), onImageLoadHeightUpdate: d }, n + r)) }),
|
|
272
|
-
!o && /* @__PURE__ */ l.jsx(P, { onFullscreen: () => b(0), count: c.length })
|
|
273
|
-
] }),
|
|
274
|
-
u && /* @__PURE__ */ l.jsx(H, { className: m, images: c.map((n) => i(n, p)), leading: o, initialSlideIndex: x, onClose: a })
|
|
275
|
-
] });
|
|
276
|
-
};
|
|
277
|
-
export {
|
|
278
|
-
V as default
|
|
279
|
-
};
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { j as C } from "./jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { r, l as A, u as O, R as T } from "./index-Zz9lJz5_.js";
|
|
3
|
-
import { af as M, ag as k, ah as I, s as p, ai as L, e as y } from "./floorplan.ready-D-VQ-QvS.js";
|
|
4
|
-
import "./index-D0SjrKD-.js";
|
|
5
|
-
const S = 3;
|
|
6
|
-
function b(a) {
|
|
7
|
-
return Math.floor(a);
|
|
8
|
-
}
|
|
9
|
-
function P(a, o) {
|
|
10
|
-
return M(a.lat, a.lng, o.lat, o.lng) >= S ? !0 : a.heading !== o.heading;
|
|
11
|
-
}
|
|
12
|
-
const _ = 120, H = 3e3, N = 360;
|
|
13
|
-
function q(a) {
|
|
14
|
-
const o = r.useRef(null), n = r.useRef(null), s = r.useRef(0), i = r.useRef(null), l = r.useRef(!1), t = r.useRef(null), u = r.useRef(!1), c = r.useRef(null), d = (e) => a(e), m = (e) => {
|
|
15
|
-
const f = Date.now();
|
|
16
|
-
if (f - s.current < _) return;
|
|
17
|
-
const h = i.current;
|
|
18
|
-
if (!t.current) {
|
|
19
|
-
t.current = e, s.current = f, i.current = e, d(e);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const E = M(t.current.lat, t.current.lng, e.lat, e.lng);
|
|
23
|
-
let g;
|
|
24
|
-
u.current ? E <= S ? (u.current = !1, t.current = e, g = {
|
|
25
|
-
...t.current,
|
|
26
|
-
heading: e.heading
|
|
27
|
-
}) : (t.current = e, g = e) : E >= S ? (u.current = !0, t.current = e, c.current = null, g = e) : (c.current == null && (c.current = f), f - c.current > H && (t.current = e), g = {
|
|
28
|
-
...t.current,
|
|
29
|
-
heading: e.heading
|
|
30
|
-
}), !(h && !P(h, g)) && (s.current = f, i.current = g, d(g));
|
|
31
|
-
}, R = r.useCallback((e) => {
|
|
32
|
-
var E;
|
|
33
|
-
const f = (E = e.webkitCompassHeading) != null ? E : e.alpha != null ? N - e.alpha : null;
|
|
34
|
-
if (f == null) return;
|
|
35
|
-
const h = b(f);
|
|
36
|
-
n.current !== h && (n.current = h, i.current && m({
|
|
37
|
-
...i.current,
|
|
38
|
-
heading: h
|
|
39
|
-
}));
|
|
40
|
-
}, [a]);
|
|
41
|
-
return {
|
|
42
|
-
startGeolocation: () => {
|
|
43
|
-
o.current == null && (o.current = navigator.geolocation.watchPosition((e) => {
|
|
44
|
-
m({
|
|
45
|
-
lat: e.coords.latitude,
|
|
46
|
-
lng: e.coords.longitude,
|
|
47
|
-
heading: n.current
|
|
48
|
-
});
|
|
49
|
-
}, (e) => A.warn("Geolocation watch error:", e), {
|
|
50
|
-
enableHighAccuracy: !0,
|
|
51
|
-
maximumAge: 0
|
|
52
|
-
}));
|
|
53
|
-
},
|
|
54
|
-
startOrientation: () => {
|
|
55
|
-
l.current || (l.current = !0, window.addEventListener("deviceorientation", R, !0));
|
|
56
|
-
},
|
|
57
|
-
stopGeolocation: () => {
|
|
58
|
-
o.current != null && (navigator.geolocation.clearWatch(o.current), o.current = null), t.current = null, u.current = !1;
|
|
59
|
-
},
|
|
60
|
-
stopOrientation: () => {
|
|
61
|
-
l.current = !1, window.removeEventListener("deviceorientation", R, !0);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function D({
|
|
66
|
-
isOpen: a,
|
|
67
|
-
onAllow: o,
|
|
68
|
-
onCancel: n
|
|
69
|
-
}) {
|
|
70
|
-
return a ? /* @__PURE__ */ C.jsx(k, { title: O("Show your position on the map"), acceptText: O("Allow compass access"), rejectText: O("Not now"), onClickAccept: o, onClickReject: n, children: O("To display your current position and orient the map around you, we’ll ask for permission to access your device orientation") }) : null;
|
|
71
|
-
}
|
|
72
|
-
function j({
|
|
73
|
-
onPositionUpdate: a,
|
|
74
|
-
onAllowCompass: o,
|
|
75
|
-
onRejectCompass: n,
|
|
76
|
-
orientationStorageKey: s = "compass-permission-granted",
|
|
77
|
-
requestCompass: i = !0,
|
|
78
|
-
requestCompassAllowed: l = !0
|
|
79
|
-
}) {
|
|
80
|
-
const {
|
|
81
|
-
startOrientation: t,
|
|
82
|
-
startGeolocation: u,
|
|
83
|
-
stopOrientation: c,
|
|
84
|
-
stopGeolocation: d
|
|
85
|
-
} = q(a), [m, R] = r.useState(!1), [G, w] = r.useState(!1);
|
|
86
|
-
r.useEffect(() => (navigator.geolocation.getCurrentPosition(() => {
|
|
87
|
-
R(!0), u();
|
|
88
|
-
}, (e) => {
|
|
89
|
-
A.warn("Geolocation error:", e), R(!1);
|
|
90
|
-
}), () => {
|
|
91
|
-
c(), d();
|
|
92
|
-
}), [u, d, c]);
|
|
93
|
-
const v = async () => {
|
|
94
|
-
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(s, "true"), t(), w(!1), o == null || o());
|
|
95
|
-
}, x = r.useCallback(() => {
|
|
96
|
-
localStorage.setItem(s, "false"), w(!1), n == null || n();
|
|
97
|
-
}, [n]);
|
|
98
|
-
return r.useEffect(() => {
|
|
99
|
-
if (!m || !l || typeof navigator > "u" || !I) return;
|
|
100
|
-
const e = localStorage.getItem(s);
|
|
101
|
-
if (!e || i) {
|
|
102
|
-
w(!0);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
e === "true" && v();
|
|
106
|
-
}, [m, i, l, v]), /* @__PURE__ */ C.jsx(D, { isOpen: G, onAllow: v, onCancel: x });
|
|
107
|
-
}
|
|
108
|
-
function z({
|
|
109
|
-
requestCompassAllowed: a
|
|
110
|
-
}) {
|
|
111
|
-
const [o, n] = r.useState(!1), s = r.useCallback(({
|
|
112
|
-
lat: t,
|
|
113
|
-
lng: u,
|
|
114
|
-
angle: c,
|
|
115
|
-
heading: d
|
|
116
|
-
}) => {
|
|
117
|
-
p.routeStore.selectCurrentPosition(new L(0, 0, 0, c || d, t, u), !1);
|
|
118
|
-
}, []), i = r.useCallback(() => {
|
|
119
|
-
p.routeStore.requestCompass = void 0, n(!1);
|
|
120
|
-
}, [n]), l = r.useCallback(() => {
|
|
121
|
-
p.routeStore.requestCompass = void 0, n(!1);
|
|
122
|
-
}, [n]);
|
|
123
|
-
return y(() => p.uiState.hideCookieConsent, (t) => {
|
|
124
|
-
n(t);
|
|
125
|
-
}), y(() => p.routeStore.requestCompass, (t) => {
|
|
126
|
-
n(t);
|
|
127
|
-
}), /* @__PURE__ */ C.jsx(j, { requestCompass: o, requestCompassAllowed: a, onRejectCompass: i, onAllowCompass: l, orientationStorageKey: T, onPositionUpdate: s });
|
|
128
|
-
}
|
|
129
|
-
export {
|
|
130
|
-
z as default
|
|
131
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { j as g } from "./jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { y as M } from "./index-D0SjrKD-.js";
|
|
3
|
-
import { p as m, m as z, s as P, a as y, l as C, b as k, c as p, d as F, u as T, e as j, f as w, g as E, h as D, i as N } from "./data-0pZ-ZMEi.js";
|
|
4
|
-
import { u as O, s as e, a as o, R as x, d as q, e as i, f as A, c as H } from "./floorplan.ready-D-VQ-QvS.js";
|
|
5
|
-
import { r as v } from "./index-Zz9lJz5_.js";
|
|
6
|
-
function J() {
|
|
7
|
-
const S = v.useRef(null), r = v.useRef(null);
|
|
8
|
-
let u = null, h = [];
|
|
9
|
-
const l = O(() => ({
|
|
10
|
-
get initselected() {
|
|
11
|
-
return ![...o.selectedBooths].filter((t) => t.rect);
|
|
12
|
-
},
|
|
13
|
-
get actualCurrentPosition() {
|
|
14
|
-
const t = e.routeStore.currentPosition;
|
|
15
|
-
return !(t != null && t.z) || e.layerStore.visible.indexOf(e.layerStore.findLayer(t.z)) > -1 ? t : null;
|
|
16
|
-
},
|
|
17
|
-
get style() {
|
|
18
|
-
return {
|
|
19
|
-
left: 0
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}));
|
|
23
|
-
return v.useEffect(() => {
|
|
24
|
-
if (!r.current) {
|
|
25
|
-
var {
|
|
26
|
-
cx: t,
|
|
27
|
-
cy: n
|
|
28
|
-
} = m.viewbox;
|
|
29
|
-
r.current = new z.Map({
|
|
30
|
-
container: S.current,
|
|
31
|
-
style: `mapbox://styles/mapbox/${m.style}`,
|
|
32
|
-
center: [t, n],
|
|
33
|
-
zoom: 15.5,
|
|
34
|
-
bearing: m.initBearing - 30,
|
|
35
|
-
pitch: m.initPitch + 30,
|
|
36
|
-
maxPitch: 70,
|
|
37
|
-
bearingSnap: 0,
|
|
38
|
-
accessToken: m.token
|
|
39
|
-
}), P(r.current), r.current.on("load", async () => {
|
|
40
|
-
var b;
|
|
41
|
-
setTimeout(() => y(l.initselected ? x.fromMultiple([...o.selectedBooths].filter((s) => s.rect).map((s) => s.rect)) : q, 15, 4e3), 1500), r.current.setLight({
|
|
42
|
-
anchor: "viewport",
|
|
43
|
-
color: "white",
|
|
44
|
-
intensity: 0
|
|
45
|
-
});
|
|
46
|
-
const a = await C(e.boothStore.booths);
|
|
47
|
-
k(e.boothStore.booths, a), p("yah", (b = e.routeStore.defaultFrom) != null && b.rect ? {
|
|
48
|
-
x: e.routeStore.defaultFrom.rect.cx,
|
|
49
|
-
y: e.routeStore.defaultFrom.rect.cy
|
|
50
|
-
} : null), p("cp", l.actualCurrentPosition), h = F(e.layerStore.layers);
|
|
51
|
-
const c = h.filter((s) => s.indexOf("--") === -1);
|
|
52
|
-
T(e.routeStore), j(), r.current.on("mouseenter", c, () => r.current.getCanvas().style.cursor = "pointer"), r.current.on("mouseleave", c, () => r.current.getCanvas().style.cursor = ""), r.current.on("click", (s) => {
|
|
53
|
-
const f = [[s.point.x - 5, s.point.y - 5], [s.point.x + 5, s.point.y + 5]], d = r.current.queryRenderedFeatures(f, {
|
|
54
|
-
layers: h
|
|
55
|
-
})[0], L = e.boothStore.booths.find((R) => {
|
|
56
|
-
var B;
|
|
57
|
-
return R.name === ((B = d == null ? void 0 : d.properties) == null ? void 0 : B.id);
|
|
58
|
-
});
|
|
59
|
-
e.clickBooth(L);
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}), i(() => o.zoomBy, () => {
|
|
64
|
-
if (!o.zoomBy || !e.mapboxStore.showMapbox) return;
|
|
65
|
-
const t = o.zoomBy;
|
|
66
|
-
o.zoomBy = null, r.current.flyTo({
|
|
67
|
-
zoom: r.current.getZoom() + (t > 1 ? 0.5 : -0.5),
|
|
68
|
-
animate: !0,
|
|
69
|
-
duration: 500,
|
|
70
|
-
essential: !0
|
|
71
|
-
});
|
|
72
|
-
}), i(() => [e.layerStore.loaded, e.layerStore.visible, o.selectedRoute], () => {
|
|
73
|
-
var t, n, a;
|
|
74
|
-
h.forEach((c) => {
|
|
75
|
-
const b = c.split("--")[0], s = e.layerStore.layers.find((f) => f.name === b);
|
|
76
|
-
(s.visible || r.current.getLayoutProperty(c, "visibility") !== "none") && r.current.setLayoutProperty(c, "visibility", s.visible ? "visible" : "none");
|
|
77
|
-
}), w([...o.selectedBooths], e.boothStore.booths), p("yah", (t = e.routeStore.defaultFrom) != null && t.rect && ((a = (n = e.routeStore.defaultFrom) == null ? void 0 : n.layer) != null && a.visible) ? {
|
|
78
|
-
x: e.routeStore.defaultFrom.rect.cx,
|
|
79
|
-
y: e.routeStore.defaultFrom.rect.cy
|
|
80
|
-
} : null), p("cp", l.actualCurrentPosition);
|
|
81
|
-
}), i(() => o.hoveredBooths, () => {
|
|
82
|
-
u && (clearTimeout(u), u = null), u = setTimeout(() => {
|
|
83
|
-
u = null, E([...o.hoveredBooths].filter((t) => {
|
|
84
|
-
var n, a;
|
|
85
|
-
return (a = (n = t.layer) == null ? void 0 : n.visible) != null ? a : !0;
|
|
86
|
-
}), e.boothStore.booths);
|
|
87
|
-
}, 50);
|
|
88
|
-
}), i(() => [o.selectedBooths, o.listBooths], () => {
|
|
89
|
-
var t = [];
|
|
90
|
-
o.selectedBooths.size ? t = [...o.selectedBooths] : o.listBooths.size && (o.activeListIndex === 0 || o.list.type === "bookmarks" || o.list.type === "category") && (t = [...o.listBooths]), w(t, e.boothStore.booths);
|
|
91
|
-
}), i(() => e.mapboxStore.showMapbox, () => {
|
|
92
|
-
D(e.mapboxStore.showMapbox);
|
|
93
|
-
}), i(() => o.moveToBooths, () => {
|
|
94
|
-
if (!o.moveToBooths || !e.mapboxStore.showMapbox) return;
|
|
95
|
-
const t = o.moveToBooths.filter((a) => a.rect).map((a) => a.rect), n = x.fromMultiple(t);
|
|
96
|
-
t.length && y(n), o.moveToBooths = null;
|
|
97
|
-
}), i(() => o.moveToRect, () => {
|
|
98
|
-
!o.moveToRect || !e.mapboxStore.showMapbox || (y(o.moveToRect, 15), o.moveToRect = null);
|
|
99
|
-
}), i(() => o.moveToLocation, () => {
|
|
100
|
-
!o.moveToLocation || !e.mapboxStore.showMapbox || N();
|
|
101
|
-
}), i(() => o.centerMap, () => {
|
|
102
|
-
!o.centerMap || !e.mapboxStore.showMapbox || (y(x.fromMultiple(A.booths.map((t) => t.rect)), 15), o.centerMap = !1);
|
|
103
|
-
}), i(() => e.routeStore.routeLines, () => T(e.routeStore)), i(() => l.actualCurrentPosition, () => p("cp", l.actualCurrentPosition)), H(() => /* @__PURE__ */ g.jsx("div", { style: l.style, className: M("map-container", {
|
|
104
|
-
hidden: !e.mapboxStore.showMapbox
|
|
105
|
-
}), children: /* @__PURE__ */ g.jsx("div", { ref: S, className: M("map-wrapper", "mapboxgl-map") }) }));
|
|
106
|
-
}
|
|
107
|
-
export {
|
|
108
|
-
J as default
|
|
109
|
-
};
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { r as s } from "./index-Zz9lJz5_.js";
|
|
3
|
-
import { y } from "./index-D0SjrKD-.js";
|
|
4
|
-
import { u as g, a as A, P as j, c as U, b as q, d as F, r as E, v as R, e as k, f as L, o as O, p as N, g as D, h as W } from "./flex-OW_m-DBA.js";
|
|
5
|
-
function X(e) {
|
|
6
|
-
const t = s.useRef({ value: e, previous: e });
|
|
7
|
-
return s.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
8
|
-
}
|
|
9
|
-
var v = "Switch", [G] = F(v), [J, K] = G(v), P = s.forwardRef(
|
|
10
|
-
(e, t) => {
|
|
11
|
-
const {
|
|
12
|
-
__scopeSwitch: a,
|
|
13
|
-
name: n,
|
|
14
|
-
checked: o,
|
|
15
|
-
defaultChecked: c,
|
|
16
|
-
required: l,
|
|
17
|
-
disabled: i,
|
|
18
|
-
value: d = "on",
|
|
19
|
-
onCheckedChange: S,
|
|
20
|
-
form: u,
|
|
21
|
-
...w
|
|
22
|
-
} = e, [p, m] = s.useState(null), b = g(t, (h) => m(h)), x = s.useRef(!1), C = p ? u || !!p.closest("form") : !0, [f, M] = A({
|
|
23
|
-
prop: o,
|
|
24
|
-
defaultProp: c != null ? c : !1,
|
|
25
|
-
onChange: S,
|
|
26
|
-
caller: v
|
|
27
|
-
});
|
|
28
|
-
return /* @__PURE__ */ r.jsxs(J, { scope: a, checked: f, disabled: i, children: [
|
|
29
|
-
/* @__PURE__ */ r.jsx(
|
|
30
|
-
j.button,
|
|
31
|
-
{
|
|
32
|
-
type: "button",
|
|
33
|
-
role: "switch",
|
|
34
|
-
"aria-checked": f,
|
|
35
|
-
"aria-required": l,
|
|
36
|
-
"data-state": B(f),
|
|
37
|
-
"data-disabled": i ? "" : void 0,
|
|
38
|
-
disabled: i,
|
|
39
|
-
value: d,
|
|
40
|
-
...w,
|
|
41
|
-
ref: b,
|
|
42
|
-
onClick: U(e.onClick, (h) => {
|
|
43
|
-
M((H) => !H), C && (x.current = h.isPropagationStopped(), x.current || h.stopPropagation());
|
|
44
|
-
})
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
C && /* @__PURE__ */ r.jsx(
|
|
48
|
-
$,
|
|
49
|
-
{
|
|
50
|
-
control: p,
|
|
51
|
-
bubbles: !x.current,
|
|
52
|
-
name: n,
|
|
53
|
-
value: d,
|
|
54
|
-
checked: f,
|
|
55
|
-
required: l,
|
|
56
|
-
disabled: i,
|
|
57
|
-
form: u,
|
|
58
|
-
style: { transform: "translateX(-100%)" }
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
] });
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
P.displayName = v;
|
|
65
|
-
var z = "SwitchThumb", _ = s.forwardRef(
|
|
66
|
-
(e, t) => {
|
|
67
|
-
const { __scopeSwitch: a, ...n } = e, o = K(z, a);
|
|
68
|
-
return /* @__PURE__ */ r.jsx(
|
|
69
|
-
j.span,
|
|
70
|
-
{
|
|
71
|
-
"data-state": B(o.checked),
|
|
72
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
73
|
-
...n,
|
|
74
|
-
ref: t
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
_.displayName = z;
|
|
80
|
-
var Q = "SwitchBubbleInput", $ = s.forwardRef(
|
|
81
|
-
({
|
|
82
|
-
__scopeSwitch: e,
|
|
83
|
-
control: t,
|
|
84
|
-
checked: a,
|
|
85
|
-
bubbles: n = !0,
|
|
86
|
-
...o
|
|
87
|
-
}, c) => {
|
|
88
|
-
const l = s.useRef(null), i = g(l, c), d = X(a), S = q(t);
|
|
89
|
-
return s.useEffect(() => {
|
|
90
|
-
const u = l.current;
|
|
91
|
-
if (!u) return;
|
|
92
|
-
const w = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
|
|
93
|
-
w,
|
|
94
|
-
"checked"
|
|
95
|
-
).set;
|
|
96
|
-
if (d !== a && m) {
|
|
97
|
-
const b = new Event("click", { bubbles: n });
|
|
98
|
-
m.call(u, a), u.dispatchEvent(b);
|
|
99
|
-
}
|
|
100
|
-
}, [d, a, n]), /* @__PURE__ */ r.jsx(
|
|
101
|
-
"input",
|
|
102
|
-
{
|
|
103
|
-
type: "checkbox",
|
|
104
|
-
"aria-hidden": !0,
|
|
105
|
-
defaultChecked: a,
|
|
106
|
-
...o,
|
|
107
|
-
tabIndex: -1,
|
|
108
|
-
ref: i,
|
|
109
|
-
style: {
|
|
110
|
-
...o.style,
|
|
111
|
-
...S,
|
|
112
|
-
position: "absolute",
|
|
113
|
-
pointerEvents: "none",
|
|
114
|
-
opacity: 0,
|
|
115
|
-
margin: 0
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
$.displayName = Q;
|
|
122
|
-
function B(e) {
|
|
123
|
-
return e ? "checked" : "unchecked";
|
|
124
|
-
}
|
|
125
|
-
var V = P, Y = _;
|
|
126
|
-
const Z = ["horizontal", "vertical"], ee = ["1", "2", "3", "4"], te = { orientation: { type: "enum", className: "rt-r-orientation", values: Z, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: ee, default: "1", responsive: !0 }, color: { ...E.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, T = s.forwardRef((e, t) => {
|
|
127
|
-
const { className: a, color: n, decorative: o, ...c } = R(e, te, k);
|
|
128
|
-
return s.createElement("span", { "data-accent-color": n, role: o ? void 0 : "separator", ...c, ref: t, className: y("rt-Separator", a) });
|
|
129
|
-
});
|
|
130
|
-
T.displayName = "Separator";
|
|
131
|
-
const re = ["1", "2", "3"], se = ["classic", "surface", "soft"], ae = { size: { type: "enum", className: "rt-r-size", values: re, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: se, default: "surface" }, ...E, ...O, ...L }, I = s.forwardRef((e, t) => {
|
|
132
|
-
const { className: a, color: n, radius: o, ...c } = R(e, ae, k);
|
|
133
|
-
return s.createElement(V, { "data-accent-color": n, "data-radius": o, ...c, asChild: !1, ref: t, className: y("rt-reset", "rt-SwitchRoot", a) }, s.createElement(Y, { className: y("rt-SwitchThumb", { "rt-high-contrast": e.highContrast }) }));
|
|
134
|
-
});
|
|
135
|
-
I.displayName = "Switch";
|
|
136
|
-
const oe = ({
|
|
137
|
-
label: e,
|
|
138
|
-
children: t
|
|
139
|
-
}) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
140
|
-
/* @__PURE__ */ r.jsxs(N, { children: [
|
|
141
|
-
/* @__PURE__ */ r.jsx(D, { size: "4", children: e }),
|
|
142
|
-
/* @__PURE__ */ r.jsx(N, { mt: "10px", children: t })
|
|
143
|
-
] }),
|
|
144
|
-
/* @__PURE__ */ r.jsx(T, { size: "4", my: "20px" })
|
|
145
|
-
] }), le = (e) => /* @__PURE__ */ r.jsx(oe, { label: e.label, children: /* @__PURE__ */ r.jsx(W, { children: /* @__PURE__ */ r.jsx(I, { checked: e.value, onCheckedChange: (t) => e.onChange(t) }) }) });
|
|
146
|
-
export {
|
|
147
|
-
le as BooleanEditor
|
|
148
|
-
};
|