@expofp/floorplan 3.11.12 → 3.12.0

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.
Files changed (195) hide show
  1. package/dist/browser/{Button-CdChKHNd.js → Button-C5CmZ0so.js} +6 -6
  2. package/dist/browser/CookieConsent-kl_B6sH5.js +38 -0
  3. package/dist/browser/{Debug-BQJRkSVw.js → Debug-DymHiO2Z.js} +14 -14
  4. package/dist/browser/{Demo-Dh5hQ00u.js → Demo-5tRIgVJF.js} +14 -14
  5. package/dist/browser/{Free-Be0wdt8h.js → Free-hYQaAEbK.js} +16 -16
  6. package/dist/browser/{Gallery-DsC-3InH.js → Gallery-D10tiZuW.js} +24 -24
  7. package/dist/browser/{GpsLoader-l-DhiN5_.js → GpsLoader-CNkUVJdS.js} +51 -50
  8. package/dist/browser/{KioskStore-hBGigttj.js → KioskStore-2WAOxGM0.js} +31 -31
  9. package/dist/browser/{MaplibreAdapter-B2PgQxAb.js → MaplibreAdapter-B_tNIXx4.js} +2360 -2331
  10. package/dist/browser/{ModalContainer-DngQzOVE.js → ModalContainer-CckyeoUG.js} +13 -13
  11. package/dist/browser/{PermissionNotice-Bstp1Ig2.js → PermissionNotice-qetBrmIY.js} +7 -7
  12. package/dist/browser/{SetKioskMode-BXTIENxU.js → SetKioskMode-BOjaqczc.js} +9 -9
  13. package/dist/browser/ShowKiosk-CcQHeM8K.js +33 -0
  14. package/dist/browser/{TouchHand-CZ4-CE4e.js → TouchHand-DKpxmOwz.js} +5 -5
  15. package/dist/browser/{ViewerMenuPanel-Dc7XYnXW.js → ViewerMenuPanel-HULfvF54.js} +25 -25
  16. package/dist/browser/{add-debug-secret-listener-DOVFjqJo.js → add-debug-secret-listener-BTGIVZFY.js} +1 -1
  17. package/dist/browser/{boolean-editor-B-S4WhPP.js → boolean-editor-oT7I3D0U.js} +10 -10
  18. package/dist/browser/{bootIntercom-D41iCVYM.js → bootIntercom-YnsJPGCs.js} +3 -3
  19. package/dist/browser/{booth-by-xy-S_lLb4ur.js → booth-by-xy-DTknn14w.js} +292 -295
  20. package/dist/browser/bundle.json +78 -63
  21. package/dist/browser/{classnames-BeH2kA4o.js → classnames-VfuHc9uB.js} +2 -2
  22. package/dist/browser/{client-Be_UxAZT.js → client-Bevofhdz.js} +5 -5
  23. package/dist/browser/{components-RZNETvKi.js → components-COUCtdev.js} +1369 -1316
  24. package/dist/browser/{debug-overlay-DjwfpG69.js → debug-overlay-BLN24Eyb.js} +415 -415
  25. package/dist/browser/{debug-ui-D_afzMrh.js → debug-ui-BT7Ddvoj.js} +7 -7
  26. package/dist/browser/{dist-CZz9piI4.js → dist-CWBtHMZR.js} +6 -6
  27. package/dist/browser/{dist-B-m8ZFBo.js → dist-CtKSG8GG.js} +4 -4
  28. package/dist/browser/{dist-DKu24Nie.js → dist-saTnlhyc.js} +7 -7
  29. package/dist/browser/{browser-pQxW93uF.js → efp-debug-init-CYoM0s-a.js} +61 -14
  30. package/dist/browser/enum-editor-vF4eKelT.js +34 -0
  31. package/dist/browser/{es5-DPnfG3EX.js → es5-COzmRHZr.js} +2 -2
  32. package/dist/browser/{event-not-found-CE2zhFPJ.js → event-not-found-BZkFh-P9.js} +1 -1
  33. package/dist/browser/{exports-BtXbxSeU.js → exports-BsqJX0o4.js} +1 -1
  34. package/dist/browser/{favicon-B7xwIKyS.js → favicon-BBgsGFil.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-BiAebF_i.js → fetch-retry.umd-BFTNSvNa.js} +2 -2
  36. package/dist/browser/{flex-DGirEfRz.js → flex-DnOM12q-.js} +6 -6
  37. package/dist/browser/{floorplan.loader-DSx2rwZS.js → floorplan.loader-DuVsbJsr.js} +890 -902
  38. package/dist/browser/floorplan.ready-B2SvQNh9.js +1326 -0
  39. package/dist/browser/{fuse-BuZwVNBr.js → fuse-Ddn6vCOL.js} +2 -2
  40. package/dist/browser/i18n-D9dsV3GV.js +8659 -0
  41. package/dist/browser/index.js +49 -117
  42. package/dist/browser/{index.module-BktNOlw2.js → index.module-CFTe1PiT.js} +23 -23
  43. package/dist/browser/integrateKiosk-vlZ9-8EP.js +28 -0
  44. package/dist/browser/{is-webview-DxtfBbGj.js → is-webview-SfodrdWn.js} +1 -1
  45. package/dist/browser/{jsx-runtime-DftMjMlZ.js → jsx-runtime-DEIf9CUU.js} +2 -2
  46. package/dist/browser/{lib-_QD5dt19.js → lib-CCkkeprZ.js} +5 -5
  47. package/dist/browser/loadImage-C356B0zk.js +58 -0
  48. package/dist/browser/{logDeviceInfo-CiCKGxKy.js → logDeviceInfo-UnfHYhqR.js} +9 -9
  49. package/dist/browser/{main-C6h73Uc5.js → main-JnTe8DvY.js} +1 -1
  50. package/dist/browser/mobx-DPek3UBx.js +24 -0
  51. package/dist/browser/optional-boolean-editor-HEZXOpAy.js +20 -0
  52. package/dist/browser/optional-enum-editor-DpN8qtqv.js +34 -0
  53. package/dist/browser/optional-string-editor-iR5VHFAR.js +30 -0
  54. package/dist/browser/{particles.min-CiLQfUCo.js → particles.min-BWlVGdrr.js} +2 -2
  55. package/dist/browser/{prop-types-8E5fCOgQ.js → prop-types-DA-Iew4C.js} +2 -2
  56. package/dist/browser/{react-B9lmaQYI.js → react-C02q0n7M.js} +2 -2
  57. package/dist/browser/{react-dom-CPWfZdj5.js → react-dom-BV1hX9nO.js} +4 -4
  58. package/dist/browser/reset-all-settings-BQgeIRam.js +190 -0
  59. package/dist/browser/{rolldown-runtime-CJax_ib9.js → rolldown-runtime-DYSU24gn.js} +1 -1
  60. package/dist/browser/{enum-editor-BtYkUhft.js → select-D0S5iMvJ.js} +261 -283
  61. package/dist/browser/{settings-BufKqYwI.js → settings-Dw78gtQ_.js} +3 -3
  62. package/dist/browser/{settings-item-D3AzjjoO.js → settings-item-BSR8Iz1R.js} +7 -7
  63. package/dist/browser/{store-DGdGzsa_.js → store-DxRBdgZM.js} +7325 -7643
  64. package/dist/browser/string-editor-BwtRnquZ.js +30 -0
  65. package/dist/browser/text-field-D5x33kIn.js +88 -0
  66. package/dist/browser/{theme-DvIMSzdB.js → theme-uaffdJE1.js} +9 -9
  67. package/dist/browser/ui-jO3fquPn.js +43 -0
  68. package/dist/browser/{useRenderTarget-hqd7cVeW.js → useRenderTarget-NdsPPF5u.js} +5 -5
  69. package/dist/esm/components/Booth/Booth.js +1 -1
  70. package/dist/esm/components/EntityListRow.js +1 -1
  71. package/dist/esm/components/Exhibitor.js +1 -1
  72. package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
  73. package/dist/esm/components/LanguageRowContainer.d.ts +1 -0
  74. package/dist/esm/components/Layout.d.ts +2 -1
  75. package/dist/esm/components/Layout.js +1 -1
  76. package/dist/esm/components/LogoOverlay.js +1 -1
  77. package/dist/esm/components/Map/Map.js +1 -1
  78. package/dist/esm/components/Map/drawing/config/config-bg.d.ts +1 -1
  79. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
  80. package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +1 -1
  81. package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
  82. package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
  83. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
  84. package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
  85. package/dist/esm/components/Maplibre/MaplibreWrapper.js +1 -1
  86. package/dist/esm/components/Maplibre/utils/resolve-map-style.d.ts +15 -0
  87. package/dist/esm/components/Maplibre/utils/resolve-map-style.js +1 -0
  88. package/dist/esm/components/Menu.d.ts +3 -2
  89. package/dist/esm/components/Menu.js +1 -1
  90. package/dist/esm/components/OverlayContainer.d.ts +2 -1
  91. package/dist/esm/components/OverlayContainer.js +1 -1
  92. package/dist/esm/components/Ws.js +1 -1
  93. package/dist/esm/constants.d.ts +7 -13
  94. package/dist/esm/constants.js +1 -1
  95. package/dist/esm/data/fp-payloads.d.ts +27 -0
  96. package/dist/esm/data/fp-payloads.js +1 -0
  97. package/dist/esm/data/fpGeo.js +1 -1
  98. package/dist/esm/data/index.d.ts +8 -2
  99. package/dist/esm/data/index.js +1 -1
  100. package/dist/esm/data/svg.d.ts +4 -1
  101. package/dist/esm/data/svg.js +1 -1
  102. package/dist/esm/floorplan.loader.d.ts +13 -4
  103. package/dist/esm/floorplan.loader.js +1 -1
  104. package/dist/esm/floorplan.ready.d.ts +8 -0
  105. package/dist/esm/floorplan.ready.js +1 -1
  106. package/dist/esm/index.d.ts +0 -1
  107. package/dist/esm/index.js +1 -1
  108. package/dist/esm/intercom/shouldLoad.d.ts +2 -2
  109. package/dist/esm/intercom/shouldLoad.js +1 -1
  110. package/dist/esm/load-dev.d.ts +44 -0
  111. package/dist/esm/load-dev.js +1 -0
  112. package/dist/esm/load.d.ts +3 -3
  113. package/dist/esm/load.js +3 -3
  114. package/dist/esm/renderer/engine-core/fonts.js +1 -1
  115. package/dist/esm/services/URLFilterManager.d.ts +15 -0
  116. package/dist/esm/services/URLFilterManager.js +1 -1
  117. package/dist/esm/services/multi-slug.d.ts +20 -0
  118. package/dist/esm/services/multi-slug.js +1 -0
  119. package/dist/esm/services/url-dispatch.d.ts +24 -0
  120. package/dist/esm/services/url-dispatch.js +1 -0
  121. package/dist/esm/services/url-sync.d.ts +36 -0
  122. package/dist/esm/services/url-sync.js +1 -0
  123. package/dist/esm/store/BoothStore.d.ts +2 -1
  124. package/dist/esm/store/ExhibitorStore.d.ts +3 -2
  125. package/dist/esm/store/ExhibitorStore.js +1 -1
  126. package/dist/esm/store/LayerStore.js +1 -1
  127. package/dist/esm/store/MaplibreStore.js +1 -1
  128. package/dist/esm/store/PoiTypeStore.d.ts +1 -1
  129. package/dist/esm/store/SearchStore.js +1 -1
  130. package/dist/esm/store/UIState.d.ts +1 -5
  131. package/dist/esm/store/UIState.js +1 -1
  132. package/dist/esm/store/init/init-bookmarks.d.ts +2 -0
  133. package/dist/esm/store/init/init-booths.js +1 -1
  134. package/dist/esm/store/init/init-categories.js +1 -1
  135. package/dist/esm/store/init/init-events.js +1 -1
  136. package/dist/esm/store/init/init-exhibitors.js +1 -1
  137. package/dist/esm/store/init/init-layers.js +1 -1
  138. package/dist/esm/store/types.d.ts +2 -1
  139. package/dist/esm/tools/event-not-found.d.ts +4 -3
  140. package/dist/esm/tools/gtag.d.ts +3 -2
  141. package/dist/esm/tools/gtag.js +1 -1
  142. package/dist/esm/tools/handleDebugMode.d.ts +17 -0
  143. package/dist/esm/tools/handleDebugMode.js +1 -1
  144. package/dist/esm/tools/loaders.d.ts +0 -2
  145. package/dist/esm/tools/loaders.js +1 -1
  146. package/dist/esm/tools/rebookingUrl.js +1 -1
  147. package/dist/esm/tools/reset.js +1 -1
  148. package/dist/esm/tools/settings.js +1 -1
  149. package/dist/esm/tools/track-event.js +1 -1
  150. package/dist/esm/types/drawing.types.d.ts +18 -0
  151. package/dist/esm/types.d.ts +52 -38
  152. package/dist/esm/utils/areLayersEnabled.js +1 -1
  153. package/dist/esm/utils/camera-map-settings.d.ts +20 -0
  154. package/dist/esm/utils/camera-map-settings.js +1 -0
  155. package/dist/esm/utils/customCommands.js +1 -1
  156. package/dist/esm/utils/getLogoUrl.d.ts +8 -1
  157. package/dist/esm/utils/getLogoUrl.js +1 -1
  158. package/dist/esm/utils/heatmap-enabled.d.ts +13 -0
  159. package/dist/esm/utils/heatmap-enabled.js +1 -0
  160. package/dist/esm/utils/i18n.js +1 -1
  161. package/dist/esm/utils/imageloader.js +1 -1
  162. package/dist/esm/utils/is-debug.d.ts +0 -8
  163. package/dist/esm/utils/is-debug.js +1 -1
  164. package/dist/esm/utils/legacy-storage-keys.d.ts +16 -0
  165. package/dist/esm/utils/legacy-storage-keys.js +1 -0
  166. package/dist/esm/utils/loadCustomCss.d.ts +2 -2
  167. package/dist/esm/utils/mapEntity.d.ts +1 -0
  168. package/dist/esm/utils/preview-exhibitor.d.ts +1 -1
  169. package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +1 -1
  170. package/dist/esm/wayfinding/adapters/graphDataSource.js +1 -1
  171. package/package.json +8 -5
  172. package/dist/browser/CookieConsent-DmWcbyRQ.js +0 -38
  173. package/dist/browser/ShowKiosk-CpIQKRDF.js +0 -28
  174. package/dist/browser/efp-debug-init-B-EZE_S2.js +0 -42
  175. package/dist/browser/floorplan.ready-CX4L0Qyc.js +0 -1406
  176. package/dist/browser/i18n-BqlnpLSm.js +0 -3942
  177. package/dist/browser/loadImage-CvnSDOL0.js +0 -121
  178. package/dist/browser/mobx-71cpvuRe.js +0 -24
  179. package/dist/browser/reset-all-settings-CAVnp-HU.js +0 -141
  180. package/dist/browser/string-editor-BEBEF1X7.js +0 -108
  181. package/dist/browser/ui-DIQ3vheI.js +0 -43
  182. package/dist/esm/_NEW_types.d.ts +0 -6
  183. package/dist/esm/_NEW_types.js +0 -1
  184. package/dist/esm/_misc_to_move/manifest.d.ts +0 -14
  185. package/dist/esm/_misc_to_move/ref.d.ts +0 -6
  186. package/dist/esm/_misc_to_move/ref.js +0 -1
  187. package/dist/esm/data/Flags.d.ts +0 -23
  188. package/dist/esm/data/Flags.js +0 -1
  189. package/dist/esm/data/validate-data.d.ts +0 -3
  190. package/dist/esm/data/validate-data.js +0 -1
  191. package/dist/esm/services/routing.d.ts +0 -7
  192. package/dist/esm/services/routing.js +0 -1
  193. package/dist/esm/utils/mergeExhibitors.d.ts +0 -3
  194. package/dist/esm/utils/mergeExhibitors.js +0 -1
  195. /package/dist/esm/{_misc_to_move/manifest.js → types/drawing.types.js} +0 -0
@@ -1,1406 +0,0 @@
1
- (function() {
2
- try {
3
- var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
- e.SENTRY_RELEASE = { id: "3.11.12" };
5
- var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "69204426-3799-4caf-bb16-7eaea550bf97", e._sentryDebugIdIdentifier = "sentry-dbid-69204426-3799-4caf-bb16-7eaea550bf97");
7
- } catch {}
8
- })();
9
- import { r as e } from "./rolldown-runtime-CJax_ib9.js";
10
- import { t } from "./react-B9lmaQYI.js";
11
- import { t as n } from "./jsx-runtime-DftMjMlZ.js";
12
- import { t as r } from "./browser-pQxW93uF.js";
13
- import { G as i, K as a, W as o, Y as s, l as c, n as l, r as u, v as d } from "./i18n-BqlnpLSm.js";
14
- import { a as f, i as p, n as ee, r as m, t as te } from "./floorplan.loader-DSx2rwZS.js";
15
- import { _ as h, et as ne, i as re, mt as g, n as ie, v as ae, x as oe } from "./exports-BtXbxSeU.js";
16
- import { t as se } from "./client-Be_UxAZT.js";
17
- import { A as ce, C as le, D as ue, F as de, K as fe, N as pe, O as me, P as he, W as ge, Z as _, cn as _e, ct as ve, k as ye, lt as be, q as v, s as y, tn as xe, tt as Se, w as Ce, x as we, y as b } from "./store-DGdGzsa_.js";
18
- import { t as Te } from "./components-RZNETvKi.js";
19
- //#region ../../node_modules/.pnpm/@sentry+browser@10.62.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
20
- function Ee(e = {}) {
21
- let t = m.document, n = (t == null ? void 0 : t.head) || (t == null ? void 0 : t.body);
22
- if (!n) {
23
- ee && g.error("[showReportDialog] Global document not defined");
24
- return;
25
- }
26
- let r = ae(), i = h(), a = i == null ? void 0 : i.getDsn();
27
- if (!a) {
28
- ee && g.error("[showReportDialog] DSN not configured");
29
- return;
30
- }
31
- let o = {
32
- ...e,
33
- user: {
34
- ...r.getUser(),
35
- ...e.user
36
- },
37
- eventId: e.eventId || re()
38
- }, s = m.document.createElement("script");
39
- s.async = !0, s.crossOrigin = "anonymous", s.src = p(a, o);
40
- let { onLoad: c, onClose: l } = o;
41
- if (c && (s.onload = c), l) {
42
- let e = (t) => {
43
- if (t.data === "__sentry_reportdialog_closed__") try {
44
- l();
45
- } finally {
46
- m.removeEventListener("message", e);
47
- }
48
- };
49
- m.addEventListener("message", e);
50
- }
51
- n.appendChild(s);
52
- }
53
- //#endregion
54
- //#region ../../node_modules/.pnpm/@sentry+react@10.62.0_react@19.2.7/node_modules/@sentry/react/build/esm/debug-build.js
55
- var De = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, x = /* @__PURE__ */ e(t());
56
- function Oe(e) {
57
- let t = e.match(/^([^.]+)/);
58
- return t !== null && parseInt(t[0]) >= 17;
59
- }
60
- function ke(e, t) {
61
- let n = /* @__PURE__ */ new WeakSet();
62
- function r(e, t) {
63
- if (!n.has(e)) {
64
- if (e.cause) return n.add(e), r(e.cause, t);
65
- e.cause = t;
66
- }
67
- }
68
- r(e, t);
69
- }
70
- function Ae(e, { componentStack: t }, n) {
71
- if (Oe(x.version) && ne(e) && t) {
72
- let n = Error(e.message);
73
- n.name = `React ErrorBoundary ${e.name}`, n.stack = t, ke(e, n);
74
- }
75
- return ie(e, n);
76
- }
77
- //#endregion
78
- //#region ../../node_modules/.pnpm/@sentry+react@10.62.0_react@19.2.7/node_modules/@sentry/react/build/esm/errorboundary.js
79
- var S = {
80
- componentStack: null,
81
- error: null,
82
- eventId: null
83
- }, je = class extends x.Component {
84
- constructor(e) {
85
- super(e), this.state = S, this._openFallbackReportDialog = !0;
86
- let t = h();
87
- t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
88
- !t.type && this._lastEventId && t.event_id === this._lastEventId && Ee({
89
- ...e.dialogOptions,
90
- eventId: this._lastEventId
91
- });
92
- }));
93
- }
94
- componentDidCatch(e, t) {
95
- let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
96
- oe((s) => {
97
- r && r(s, e, n);
98
- let c = Ae(e, t, { mechanism: {
99
- handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
100
- type: "auto.function.react.error_boundary"
101
- } });
102
- i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && Ee({
103
- ...o,
104
- eventId: c
105
- })), this.setState({
106
- error: e,
107
- componentStack: n,
108
- eventId: c
109
- });
110
- });
111
- }
112
- componentDidMount() {
113
- let { onMount: e } = this.props;
114
- e && e();
115
- }
116
- componentWillUnmount() {
117
- let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
118
- r && (this.state === S ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
119
- }
120
- resetErrorBoundary() {
121
- let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
122
- e && e(t, n, r), this.setState(S);
123
- }
124
- render() {
125
- let { fallback: e, children: t } = this.props, n = this.state;
126
- if (n.componentStack === null) return typeof t == "function" ? t() : t;
127
- let r = typeof e == "function" ? x.createElement(e, {
128
- error: n.error,
129
- componentStack: n.componentStack,
130
- resetError: () => this.resetErrorBoundary(),
131
- eventId: n.eventId
132
- }) : e;
133
- return x.isValidElement(r) ? r : (e && De && g.warn("fallback did not produce a valid ReactElement"), null);
134
- }
135
- }, Me = /* @__PURE__ */ e(r(), 1), Ne = se(), Pe = be();
136
- function Fe() {
137
- let e = new URLSearchParams(window.location.search).get(o), t = c ? window.localStorage.getItem(o) : null, n = e == null ? t : e;
138
- return n == null ? c && Se() != null : n === "1";
139
- }
140
- function C() {
141
- let e = window.location.hostname.split(".");
142
- return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
143
- }
144
- function Ie() {
145
- return C() ? window.location.hostname.split(".")[0] : "main";
146
- }
147
- function Le(e) {
148
- if ((e == null ? void 0 : e.free) === !0) return "Free";
149
- let t = e == null ? void 0 : e.trialExpiresAt;
150
- if (t) {
151
- let e = new Date(t).getTime();
152
- if (!Number.isNaN(e)) return Date.now() < e ? "Trial Active" : "Trial Expired";
153
- }
154
- return "Active";
155
- }
156
- function Re() {
157
- return !1;
158
- }
159
- function ze(e) {
160
- return e;
161
- }
162
- function Be(e) {
163
- if (Re() || !C() || Fe() || !window.navigator.onLine) return null;
164
- let t = ze({
165
- subDomain: Ie(),
166
- subscriptionStatus: Le(e)
167
- });
168
- return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
169
- }
170
- Object.freeze({ status: "aborted" });
171
- function w(e, t, n) {
172
- var r;
173
- function i(n, r) {
174
- if (n._zod || Object.defineProperty(n, "_zod", {
175
- value: {
176
- def: r,
177
- constr: s,
178
- traits: /* @__PURE__ */ new Set()
179
- },
180
- enumerable: !1
181
- }), n._zod.traits.has(e)) return;
182
- n._zod.traits.add(e), t(n, r);
183
- let i = s.prototype, a = Object.keys(i);
184
- for (let e = 0; e < a.length; e++) {
185
- let t = a[e];
186
- t in n || (n[t] = i[t].bind(n));
187
- }
188
- }
189
- let a = (r = n == null ? void 0 : n.Parent) == null ? Object : r;
190
- class o extends a {}
191
- Object.defineProperty(o, "name", { value: e });
192
- function s(e) {
193
- var t;
194
- let r = n != null && n.Parent ? new o() : this;
195
- i(r, e), (t = r._zod).deferred != null || (t.deferred = []);
196
- for (let e of r._zod.deferred) e();
197
- return r;
198
- }
199
- return Object.defineProperty(s, "init", { value: i }), Object.defineProperty(s, Symbol.hasInstance, { value: (t) => {
200
- var r;
201
- return n != null && n.Parent && t instanceof n.Parent ? !0 : t == null || (r = t._zod) == null || (r = r.traits) == null ? void 0 : r.has(e);
202
- } }), Object.defineProperty(s, "name", { value: e }), s;
203
- }
204
- var T = class extends Error {
205
- constructor() {
206
- super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
207
- }
208
- }, E = {};
209
- function D(e) {
210
- return e && Object.assign(E, e), E;
211
- }
212
- //#endregion
213
- //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js
214
- function Ve(e, t) {
215
- return typeof t == "bigint" ? t.toString() : t;
216
- }
217
- function He(e) {
218
- return { get value() {
219
- {
220
- let t = e();
221
- return Object.defineProperty(this, "value", { value: t }), t;
222
- }
223
- throw Error("cached value already set");
224
- } };
225
- }
226
- function Ue(e) {
227
- let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
228
- return e.slice(t, n);
229
- }
230
- var O = Symbol("evaluating");
231
- function k(e, t, n) {
232
- let r;
233
- Object.defineProperty(e, t, {
234
- get() {
235
- if (r !== O) return r === void 0 && (r = O, r = n()), r;
236
- },
237
- set(n) {
238
- Object.defineProperty(e, t, { value: n });
239
- },
240
- configurable: !0
241
- });
242
- }
243
- var A = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
244
- function We(e) {
245
- return typeof e == "object" && !!e && !Array.isArray(e);
246
- }
247
- function Ge(e, t, n) {
248
- let r = new e._zod.constr(t == null ? e._zod.def : t);
249
- return (!t || n != null && n.parent) && (r._zod.parent = e), r;
250
- }
251
- function j(e) {
252
- let t = e;
253
- if (!t) return {};
254
- if (typeof t == "string") return { error: () => t };
255
- if ((t == null ? void 0 : t.message) !== void 0) {
256
- if ((t == null ? void 0 : t.error) !== void 0) throw Error("Cannot specify both `message` and `error` params");
257
- t.error = t.message;
258
- }
259
- return delete t.message, typeof t.error == "string" ? {
260
- ...t,
261
- error: () => t.error
262
- } : t;
263
- }
264
- function Ke(e) {
265
- return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
266
- }
267
- -Number.MAX_VALUE, Number.MAX_VALUE;
268
- function M(e, t = 0) {
269
- if (e.aborted === !0) return !0;
270
- for (let r = t; r < e.issues.length; r++) {
271
- var n;
272
- if (((n = e.issues[r]) == null ? void 0 : n.continue) !== !0) return !0;
273
- }
274
- return !1;
275
- }
276
- function N(e, t) {
277
- return t.map((t) => {
278
- var n;
279
- return (n = t).path != null || (n.path = []), t.path.unshift(e), t;
280
- });
281
- }
282
- function P(e) {
283
- return typeof e == "string" ? e : e == null ? void 0 : e.message;
284
- }
285
- function F(e, t, n) {
286
- var r;
287
- let i = {
288
- ...e,
289
- path: (r = e.path) == null ? [] : r
290
- };
291
- if (!e.message) {
292
- var a, o, s, c, l, u, d, f, p;
293
- i.message = (a = (o = (s = (c = P((l = e.inst) == null || (l = l._zod.def) == null || (u = l.error) == null ? void 0 : u.call(l, e))) == null ? P(t == null || (d = t.error) == null ? void 0 : d.call(t, e)) : c) == null ? P((f = n.customError) == null ? void 0 : f.call(n, e)) : s) == null ? P((p = n.localeError) == null ? void 0 : p.call(n, e)) : o) == null ? "Invalid input" : a;
294
- }
295
- return delete i.inst, delete i.continue, t != null && t.reportInput || delete i.input, i;
296
- }
297
- function qe(...e) {
298
- let [t, n, r] = e;
299
- return typeof t == "string" ? {
300
- message: t,
301
- code: "custom",
302
- input: n,
303
- inst: r
304
- } : { ...t };
305
- }
306
- //#endregion
307
- //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js
308
- var I = (e, t) => {
309
- e.name = "$ZodError", Object.defineProperty(e, "_zod", {
310
- value: e._zod,
311
- enumerable: !1
312
- }), Object.defineProperty(e, "issues", {
313
- value: t,
314
- enumerable: !1
315
- }), e.message = JSON.stringify(t, Ve, 2), Object.defineProperty(e, "toString", {
316
- value: () => e.message,
317
- enumerable: !1
318
- });
319
- }, Je = w("$ZodError", I), L = w("$ZodError", I, { Parent: Error }), Ye = /* @__PURE__*/ ((e) => (t, n, r, i) => {
320
- let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
321
- value: n,
322
- issues: []
323
- }, a);
324
- if (o instanceof Promise) throw new T();
325
- if (o.issues.length) {
326
- var s;
327
- let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => F(e, a, D())));
328
- throw A(t, i == null ? void 0 : i.callee), t;
329
- }
330
- return o.value;
331
- })(L), Xe = /* @__PURE__*/ ((e) => async (t, n, r, i) => {
332
- let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
333
- value: n,
334
- issues: []
335
- }, a);
336
- if (o instanceof Promise && (o = await o), o.issues.length) {
337
- var s;
338
- let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => F(e, a, D())));
339
- throw A(t, i == null ? void 0 : i.callee), t;
340
- }
341
- return o.value;
342
- })(L), R = /* @__PURE__*/ ((e) => (t, n, r) => {
343
- let i = r ? {
344
- ...r,
345
- async: !1
346
- } : { async: !1 }, a = t._zod.run({
347
- value: n,
348
- issues: []
349
- }, i);
350
- if (a instanceof Promise) throw new T();
351
- return a.issues.length ? {
352
- success: !1,
353
- error: new (e == null ? Je : e)(a.issues.map((e) => F(e, i, D())))
354
- } : {
355
- success: !0,
356
- data: a.value
357
- };
358
- })(L), Ze = /* @__PURE__*/ ((e) => async (t, n, r) => {
359
- let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
360
- value: n,
361
- issues: []
362
- }, i);
363
- return a instanceof Promise && (a = await a), a.issues.length ? {
364
- success: !1,
365
- error: new e(a.issues.map((e) => F(e, i, D())))
366
- } : {
367
- success: !0,
368
- data: a.value
369
- };
370
- })(L), Qe = (e) => {
371
- var t, n;
372
- let r = e ? `[\\s\\S]{${(t = e == null ? void 0 : e.minimum) == null ? 0 : t},${(n = e == null ? void 0 : e.maximum) == null ? "" : n}}` : "[\\s\\S]*";
373
- return RegExp(`^${r}$`);
374
- }, $e = /^-?\d+(?:\.\d+)?$/, et = /*@__PURE__*/ w("$ZodCheck", (e, t) => {
375
- var n;
376
- e._zod != null || (e._zod = {}), e._zod.def = t, (n = e._zod).onattach != null || (n.onattach = []);
377
- }), tt = {
378
- major: 4,
379
- minor: 3,
380
- patch: 5
381
- }, z = /*@__PURE__*/ w("$ZodType", (e, t) => {
382
- var n, r;
383
- e != null || (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = tt;
384
- let i = [...(n = e._zod.def.checks) == null ? [] : n];
385
- e._zod.traits.has("$ZodCheck") && i.unshift(e);
386
- for (let t of i) for (let n of t._zod.onattach) n(e);
387
- if (i.length === 0) {
388
- var a;
389
- (r = e._zod).deferred != null || (r.deferred = []), (a = e._zod.deferred) == null || a.push(() => {
390
- e._zod.run = e._zod.parse;
391
- });
392
- } else {
393
- let t = (e, t, n) => {
394
- let r = M(e), i;
395
- for (let o of t) {
396
- if (o._zod.def.when) {
397
- if (!o._zod.def.when(e)) continue;
398
- } else if (r) continue;
399
- let t = e.issues.length, s = o._zod.check(e);
400
- if (s instanceof Promise && (n == null ? void 0 : n.async) === !1) throw new T();
401
- if (i || s instanceof Promise) {
402
- var a;
403
- i = ((a = i) == null ? Promise.resolve() : a).then(async () => {
404
- await s, e.issues.length !== t && (r || (r = M(e, t)));
405
- });
406
- } else {
407
- if (e.issues.length === t) continue;
408
- r || (r = M(e, t));
409
- }
410
- }
411
- return i ? i.then(() => e) : e;
412
- }, n = (n, r, a) => {
413
- if (M(n)) return n.aborted = !0, n;
414
- let o = t(r, i, a);
415
- if (o instanceof Promise) {
416
- if (a.async === !1) throw new T();
417
- return o.then((t) => e._zod.parse(t, a));
418
- }
419
- return e._zod.parse(o, a);
420
- };
421
- e._zod.run = (r, a) => {
422
- if (a.skipChecks) return e._zod.parse(r, a);
423
- if (a.direction === "backward") {
424
- let t = e._zod.parse({
425
- value: r.value,
426
- issues: []
427
- }, {
428
- ...a,
429
- skipChecks: !0
430
- });
431
- return t instanceof Promise ? t.then((e) => n(e, r, a)) : n(t, r, a);
432
- }
433
- let o = e._zod.parse(r, a);
434
- if (o instanceof Promise) {
435
- if (a.async === !1) throw new T();
436
- return o.then((e) => t(e, i, a));
437
- }
438
- return t(o, i, a);
439
- };
440
- }
441
- k(e, "~standard", () => ({
442
- validate: (t) => {
443
- try {
444
- var n;
445
- let r = R(e, t);
446
- return r.success ? { value: r.data } : { issues: (n = r.error) == null ? void 0 : n.issues };
447
- } catch {
448
- return Ze(e, t).then((e) => {
449
- var t;
450
- return e.success ? { value: e.data } : { issues: (t = e.error) == null ? void 0 : t.issues };
451
- });
452
- }
453
- },
454
- vendor: "zod",
455
- version: 1
456
- }));
457
- }), nt = /*@__PURE__*/ w("$ZodString", (e, t) => {
458
- var n, r, i;
459
- z.init(e, t), e._zod.pattern = (n = [...(r = e == null || (i = e._zod.bag) == null ? void 0 : i.patterns) == null ? [] : r].pop()) == null ? Qe(e._zod.bag) : n, e._zod.parse = (n, r) => {
460
- if (t.coerce) try {
461
- n.value = String(n.value);
462
- } catch {}
463
- return typeof n.value == "string" || n.issues.push({
464
- expected: "string",
465
- code: "invalid_type",
466
- input: n.value,
467
- inst: e
468
- }), n;
469
- };
470
- }), rt = /*@__PURE__*/ w("$ZodNumber", (e, t) => {
471
- var n;
472
- z.init(e, t), e._zod.pattern = (n = e._zod.bag.pattern) == null ? $e : n, e._zod.parse = (n, r) => {
473
- if (t.coerce) try {
474
- n.value = Number(n.value);
475
- } catch {}
476
- let i = n.value;
477
- if (typeof i == "number" && !Number.isNaN(i) && Number.isFinite(i)) return n;
478
- let a = typeof i == "number" ? Number.isNaN(i) ? "NaN" : Number.isFinite(i) ? void 0 : "Infinity" : void 0;
479
- return n.issues.push({
480
- expected: "number",
481
- code: "invalid_type",
482
- input: i,
483
- inst: e,
484
- ...a ? { received: a } : {}
485
- }), n;
486
- };
487
- }), it = /*@__PURE__*/ w("$ZodNever", (e, t) => {
488
- z.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
489
- expected: "never",
490
- code: "invalid_type",
491
- input: t.value,
492
- inst: e
493
- }), t);
494
- });
495
- function at(e, t, n) {
496
- e.issues.length && t.issues.push(...N(n, e.issues)), t.value[n] = e.value;
497
- }
498
- var ot = /*@__PURE__*/ w("$ZodArray", (e, t) => {
499
- z.init(e, t), e._zod.parse = (n, r) => {
500
- let i = n.value;
501
- if (!Array.isArray(i)) return n.issues.push({
502
- expected: "array",
503
- code: "invalid_type",
504
- input: i,
505
- inst: e
506
- }), n;
507
- n.value = Array(i.length);
508
- let a = [];
509
- for (let e = 0; e < i.length; e++) {
510
- let o = i[e], s = t.element._zod.run({
511
- value: o,
512
- issues: []
513
- }, r);
514
- s instanceof Promise ? a.push(s.then((t) => at(t, n, e))) : at(s, n, e);
515
- }
516
- return a.length ? Promise.all(a).then(() => n) : n;
517
- };
518
- });
519
- function B(e, t, n, r, i) {
520
- if (e.issues.length) {
521
- if (i && !(n in r)) return;
522
- t.issues.push(...N(n, e.issues));
523
- }
524
- e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
525
- }
526
- function st(e) {
527
- let t = Object.keys(e.shape);
528
- for (let r of t) {
529
- var n;
530
- if (!(!((n = e.shape) == null || (n = n[r]) == null || (n = n._zod) == null || (n = n.traits) == null) && n.has("$ZodType"))) throw Error(`Invalid element at key "${r}": expected a Zod schema`);
531
- }
532
- let r = Ke(e.shape);
533
- return {
534
- ...e,
535
- keys: t,
536
- keySet: new Set(t),
537
- numKeys: t.length,
538
- optionalKeys: new Set(r)
539
- };
540
- }
541
- function ct(e, t, n, r, i, a) {
542
- let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
543
- for (let i in t) {
544
- if (s.has(i)) continue;
545
- if (l === "never") {
546
- o.push(i);
547
- continue;
548
- }
549
- let a = c.run({
550
- value: t[i],
551
- issues: []
552
- }, r);
553
- a instanceof Promise ? e.push(a.then((e) => B(e, n, i, t, u))) : B(a, n, i, t, u);
554
- }
555
- return o.length && n.issues.push({
556
- code: "unrecognized_keys",
557
- keys: o,
558
- input: t,
559
- inst: a
560
- }), e.length ? Promise.all(e).then(() => n) : n;
561
- }
562
- var lt = /*@__PURE__*/ w("$ZodObject", (e, t) => {
563
- z.init(e, t);
564
- let n = Object.getOwnPropertyDescriptor(t, "shape");
565
- if (!(n != null && n.get)) {
566
- let e = t.shape;
567
- Object.defineProperty(t, "shape", { get: () => {
568
- let n = { ...e };
569
- return Object.defineProperty(t, "shape", { value: n }), n;
570
- } });
571
- }
572
- let r = He(() => st(t));
573
- k(e._zod, "propValues", () => {
574
- let e = t.shape, n = {};
575
- for (let t in e) {
576
- let r = e[t]._zod;
577
- if (r.values) {
578
- n[t] != null || (n[t] = /* @__PURE__ */ new Set());
579
- for (let e of r.values) n[t].add(e);
580
- }
581
- }
582
- return n;
583
- });
584
- let i = We, a = t.catchall, o;
585
- e._zod.parse = (t, n) => {
586
- o != null || (o = r.value);
587
- let s = t.value;
588
- if (!i(s)) return t.issues.push({
589
- expected: "object",
590
- code: "invalid_type",
591
- input: s,
592
- inst: e
593
- }), t;
594
- t.value = {};
595
- let c = [], l = o.shape;
596
- for (let e of o.keys) {
597
- let r = l[e], i = r._zod.optout === "optional", a = r._zod.run({
598
- value: s[e],
599
- issues: []
600
- }, n);
601
- a instanceof Promise ? c.push(a.then((n) => B(n, t, e, s, i))) : B(a, t, e, s, i);
602
- }
603
- return a ? ct(c, s, t, n, r.value, e) : c.length ? Promise.all(c).then(() => t) : t;
604
- };
605
- });
606
- function ut(e, t) {
607
- return e.issues.length && t === void 0 ? {
608
- issues: [],
609
- value: void 0
610
- } : e;
611
- }
612
- var dt = /*@__PURE__*/ w("$ZodOptional", (e, t) => {
613
- z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", k(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), k(e._zod, "pattern", () => {
614
- let e = t.innerType._zod.pattern;
615
- return e ? RegExp(`^(${Ue(e.source)})?$`) : void 0;
616
- }), e._zod.parse = (e, n) => {
617
- if (t.innerType._zod.optin === "optional") {
618
- let r = t.innerType._zod.run(e, n);
619
- return r instanceof Promise ? r.then((t) => ut(t, e.value)) : ut(r, e.value);
620
- }
621
- return e.value === void 0 ? e : t.innerType._zod.run(e, n);
622
- };
623
- }), ft = /*@__PURE__*/ w("$ZodCustom", (e, t) => {
624
- et.init(e, t), z.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
625
- let r = n.value, i = t.fn(r);
626
- if (i instanceof Promise) return i.then((t) => pt(t, n, r, e));
627
- pt(i, n, r, e);
628
- };
629
- });
630
- function pt(e, t, n, r) {
631
- if (!e) {
632
- var i;
633
- let e = {
634
- code: "custom",
635
- input: n,
636
- inst: r,
637
- path: [...(i = r._zod.def.path) == null ? [] : i],
638
- continue: !r._zod.def.abort
639
- };
640
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(qe(e));
641
- }
642
- }
643
- //#endregion
644
- //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js
645
- // @__NO_SIDE_EFFECTS__
646
- function mt(e, t) {
647
- return new e({
648
- type: "string",
649
- ...j(t)
650
- });
651
- }
652
- // @__NO_SIDE_EFFECTS__
653
- function ht(e, t) {
654
- return new e({
655
- type: "number",
656
- checks: [],
657
- ...j(t)
658
- });
659
- }
660
- // @__NO_SIDE_EFFECTS__
661
- function gt(e, t) {
662
- return new e({
663
- type: "never",
664
- ...j(t)
665
- });
666
- }
667
- // @__NO_SIDE_EFFECTS__
668
- function _t(e, t, n) {
669
- return new e({
670
- type: "custom",
671
- check: "custom",
672
- fn: t,
673
- ...j(n)
674
- });
675
- }
676
- //#endregion
677
- //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js
678
- var V = /*@__PURE__*/ w("ZodMiniType", (e, t) => {
679
- if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
680
- z.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => Ye(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => R(e, t, n), e.parseAsync = async (t, n) => Xe(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ze(e, t, n), e.check = (...n) => {
681
- var r;
682
- return e.clone({
683
- ...t,
684
- checks: [...(r = t.checks) == null ? [] : r, ...n.map((e) => typeof e == "function" ? { _zod: {
685
- check: e,
686
- def: { check: "custom" },
687
- onattach: []
688
- } } : e)]
689
- }, { parent: !0 });
690
- }, e.with = e.check, e.clone = (t, n) => Ge(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
691
- }), vt = /*@__PURE__*/ w("ZodMiniString", (e, t) => {
692
- nt.init(e, t), V.init(e, t);
693
- });
694
- // @__NO_SIDE_EFFECTS__
695
- function yt(e) {
696
- return /* @__PURE__ */ mt(vt, e);
697
- }
698
- var bt = /*@__PURE__*/ w("ZodMiniNumber", (e, t) => {
699
- rt.init(e, t), V.init(e, t);
700
- });
701
- // @__NO_SIDE_EFFECTS__
702
- function H(e) {
703
- return /* @__PURE__ */ ht(bt, e);
704
- }
705
- var xt = /*@__PURE__*/ w("ZodMiniNever", (e, t) => {
706
- it.init(e, t), V.init(e, t);
707
- });
708
- // @__NO_SIDE_EFFECTS__
709
- function St(e) {
710
- return /* @__PURE__ */ gt(xt, e);
711
- }
712
- var Ct = /*@__PURE__*/ w("ZodMiniArray", (e, t) => {
713
- ot.init(e, t), V.init(e, t);
714
- });
715
- // @__NO_SIDE_EFFECTS__
716
- function wt(e, t) {
717
- return new Ct({
718
- type: "array",
719
- element: e,
720
- ...j(t)
721
- });
722
- }
723
- var Tt = /*@__PURE__*/ w("ZodMiniObject", (e, t) => {
724
- lt.init(e, t), V.init(e, t), k(e, "shape", () => t.shape);
725
- });
726
- // @__NO_SIDE_EFFECTS__
727
- function U(e, t) {
728
- return new Tt({
729
- type: "object",
730
- shape: e,
731
- catchall: /* @__PURE__ */ St(),
732
- ...j(t)
733
- });
734
- }
735
- var Et = /*@__PURE__*/ w("ZodMiniOptional", (e, t) => {
736
- dt.init(e, t), V.init(e, t);
737
- });
738
- // @__NO_SIDE_EFFECTS__
739
- function W(e) {
740
- return new Et({
741
- type: "optional",
742
- innerType: e
743
- });
744
- }
745
- var Dt = /*@__PURE__*/ w("ZodMiniCustom", (e, t) => {
746
- ft.init(e, t), V.init(e, t);
747
- });
748
- // @__NO_SIDE_EFFECTS__
749
- function Ot(e, t = {}) {
750
- return /* @__PURE__ */ _t(Dt, e, t);
751
- }
752
- //#endregion
753
- //#region src/schemas/sdk.schemas.ts
754
- var kt = /* @__PURE__ */ U({
755
- x: /* @__PURE__ */ H(),
756
- y: /* @__PURE__ */ H()
757
- }), At = /* @__PURE__ */ U({
758
- leftTop: kt,
759
- rightBottom: kt
760
- }), jt = (/* @__PURE__ */ U({
761
- name: /* @__PURE__ */ W(/* @__PURE__ */ yt()),
762
- externalId: /* @__PURE__ */ W(/* @__PURE__ */ yt())
763
- })).check(/* @__PURE__ */ Ot((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Mt = (/* @__PURE__ */ U({
764
- booths: /* @__PURE__ */ W(/* @__PURE__ */ wt(jt)),
765
- exhibitors: /* @__PURE__ */ W(/* @__PURE__ */ wt(jt))
766
- })).check(/* @__PURE__ */ Ot((e) => {
767
- var t, n;
768
- return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
769
- }, "Selector must contain booths or exhibitors")), Nt = /* @__PURE__ */ W(/* @__PURE__ */ U({ padding: /* @__PURE__ */ W(/* @__PURE__ */ H()) }));
770
- //#endregion
771
- //#region src/tools/reset.ts
772
- function Pt() {
773
- G("floorplan"), G("__data"), G("__dataUrlBase"), G("__searchi"), G("__wfData"), G("__mobxGlobals"), G("__store"), G("__mobxInstanceCount");
774
- for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && G(e);
775
- }
776
- function G(e) {
777
- Ft(e) ? delete window[e] : window[e] = void 0;
778
- }
779
- function Ft(e) {
780
- let t = Object.getOwnPropertyDescriptor(window, e);
781
- return t && t.configurable;
782
- }
783
- //#endregion
784
- //#region src/utils/mapEntity.ts
785
- function K(e) {
786
- switch (e.entity.type) {
787
- case "booth":
788
- var t, n;
789
- return {
790
- id: e.id,
791
- name: J(e.name),
792
- externalId: J(e.externalId),
793
- isSpecial: e.entity.variant === "special",
794
- exhibitors: q(e.exhibitors),
795
- layer: {
796
- name: J((t = e.layer) == null ? void 0 : t.name),
797
- description: J((n = e.layer) == null ? void 0 : n.description)
798
- },
799
- meta: e.meta,
800
- description: J(e.description),
801
- entity: e.entity,
802
- title: J(e.title)
803
- };
804
- case "category": return {
805
- id: e.id,
806
- name: J(e.name),
807
- exhibitors: q(e.exhibitors),
808
- entity: e.entity,
809
- slug: J(e.slug)
810
- };
811
- case "exhibitor": return {
812
- id: e.id,
813
- name: J(e.name),
814
- externalId: J(e.externalId),
815
- booths: q(e.booths),
816
- entity: e.entity,
817
- slug: J(e.slug)
818
- };
819
- case "schedule": return {
820
- id: e.id,
821
- externalId: J(e.externalId),
822
- boothId: e.boothId,
823
- exhibitorId: e.exhibitorId,
824
- name: J(e.name),
825
- description: J(e.description),
826
- startDate: J(e.startDate),
827
- endDate: J(e.endDate),
828
- link: J(e.link),
829
- entity: e.entity,
830
- isEnded: e.isEnded
831
- };
832
- case i: return {
833
- id: e.id,
834
- name: J(e.name),
835
- entity: e.entity
836
- };
837
- case "heatmap-yah": return {
838
- id: J(e.id),
839
- name: J(e.name),
840
- viewCount: e.viewCount || 0,
841
- x: e.x || 0,
842
- y: e.y || 0,
843
- z: e.z,
844
- entity: e.entity
845
- };
846
- default: return e;
847
- }
848
- }
849
- function q(e) {
850
- return Array.isArray(e) ? e.filter(Boolean).map((e) => e.id).filter(Boolean) : [];
851
- }
852
- function J(e) {
853
- return typeof e == "string" ? e : "";
854
- }
855
- //#endregion
856
- //#region src/floorplan.ready.tsx
857
- var Y = n(), X = (0, Me.default)("efp:api");
858
- (0, Pe.install)();
859
- var It = class extends te {
860
- constructor(...e) {
861
- super(...e), this.root = void 0;
862
- }
863
- init() {
864
- this.ignoreQuery || ce(this.offHistory), ue("load"), y.fp = this, Ce(this.allowConsent), le(b.Load, ""), this.root = (0, Ne.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, Y.jsx)(je, { children: /* @__PURE__ */ (0, Y.jsx)(Te, {
865
- offHistory: this.offHistory,
866
- allowConsent: this.allowConsent
867
- }) })), le(b.Rendered, ""), d(() => y.layerStore.layersLoaded, () => {
868
- if (this.resolveReady(), !y.initialized) {
869
- var e;
870
- (e = this.onInit) == null || e.call(this, this);
871
- }
872
- y.initialized = !0;
873
- });
874
- let e = Be(window.__data);
875
- e && import("./bootIntercom-D41iCVYM.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
876
- }
877
- selectBooth(e) {
878
- if (typeof e != "string" && !Array.isArray(e)) {
879
- $("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
880
- return;
881
- }
882
- let t = y.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
883
- y.selectBooth(t);
884
- }
885
- selectExhibitor(e) {
886
- if (typeof e != "string" && !Array.isArray(e)) {
887
- $("selectExhibitor", "Parameter must be a string or an array of strings.", "EFP000100");
888
- return;
889
- }
890
- if (!(e != null && e.length)) {
891
- y.uiState.menu = !1, y.searchStore.resetSearchBox(), y.uiState.details = null;
892
- return;
893
- }
894
- let t = y.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
895
- if (!(t != null && t.length)) return;
896
- if (typeof e == "string") {
897
- y.selectExhibitor(t[0]), y.moveToList([t[0]]);
898
- return;
899
- }
900
- let n = t.flatMap((e) => e.booths.map((e) => e.layer)), { description: r } = n.reduce((e, t) => (e.freq[t.description] = (e.freq[t.description] || 0) + 1, e.freq[t.description] > e.maxCount && (e.maxCount = e.freq[t.description], e.mostFrequent = t), e), {
901
- freq: {},
902
- mostFrequent: n[0],
903
- maxCount: 0
904
- }).mostFrequent;
905
- y.layerStore.updateVisibility(r, !0), y.uiState.menu = !1, y.searchStore.resetSearchBox(), y.uiState.details = null, y.uiState.list = {
906
- type: "filter",
907
- items: t,
908
- query: {
909
- key: "exhibitors",
910
- value: t.map((e) => e.externalId).join(",")
911
- }
912
- }, y.moveToList();
913
- }
914
- highlightExhibitors(e) {
915
- Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), y.boothStore.highlightedByExternalIds = [], y.exhibitorStore.highlightedByExternalIds = [...e];
916
- }
917
- highlightBooths(e) {
918
- Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), y.exhibitorStore.highlightedByExternalIds = [], y.boothStore.highlightedByExternalIds = [...e];
919
- }
920
- highlightEntities(e) {
921
- Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
922
- let { boothExternalIds: t, exhibitorExternalIds: n } = de(e);
923
- y.boothStore.highlightedByExternalIds = [...t], y.exhibitorStore.highlightedByExternalIds = [...n];
924
- }
925
- selectRoute(e, t) {
926
- if (Array.isArray(e)) {
927
- let t = [...e], n = t.shift(), r = t.pop();
928
- if (t.length > 8) throw Error("The maximum number of waypoints is 8.");
929
- if (!n || !r) {
930
- $("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
931
- return;
932
- }
933
- y.routeStore.selectRoute(new pe(Z(n), Z(r), t.map(Z)));
934
- return;
935
- }
936
- e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), y.routeStore.selectRoute(new pe(Z(e), Z(t)));
937
- }
938
- getOptimizedRoutes(e) {
939
- if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
940
- if (e.length > 8) throw Error("The maximum number of waypoints is 8.");
941
- let t = e.map(Z).filter((e) => !!e);
942
- if (!t.length) throw Error("No booths found for the provided waypoints.");
943
- let n = /* @__PURE__ */ new Map();
944
- for (let e of t) {
945
- var r, i;
946
- let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
947
- a ? a.push(e) : n.set(t, [e]);
948
- }
949
- return Array.from(n.values()).map((e) => ({ waypoints: ge(e.map((e) => [e.name, {
950
- x: e.rect.center.x,
951
- y: e.rect.center.y
952
- }])) }));
953
- }
954
- selectCurrentPosition(e, t, n) {
955
- var r;
956
- let i = v(e.x) && v(e.y), a = v(e.lng) && v(e.lat);
957
- !i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), y.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
958
- }
959
- setBookmarks(e) {
960
- (!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
961
- let t = y.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
962
- t && (t.bookmarked = e.bookmarked);
963
- });
964
- }
965
- setEntitiesBookmarks(e) {
966
- if (!Array.isArray(e) || !e.length) {
967
- $("setEntitiesBookmarks", "Parameter must be an array.", "EFP000701");
968
- return;
969
- }
970
- let t = [
971
- "exhibitor",
972
- "event",
973
- "speaker",
974
- "booth"
975
- ], n = e.find((e) => !e.type || !t.includes(e.type));
976
- if (n) {
977
- $("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
978
- return;
979
- }
980
- let r = _e("bookmarked"), i = {
981
- exhibitor: {
982
- existingIds: new Set(r.exhibitors || []),
983
- finder: (e) => y.exhibitorStore.findExhibitor(e),
984
- replacer: (e) => y.exhibitorStore.replaceBookmarked(e)
985
- },
986
- event: {
987
- existingIds: new Set(r.events || []),
988
- finder: (e) => y.eventStore.findByNameOrSlug(e),
989
- replacer: (e) => y.eventStore.replaceBookmarked(e)
990
- },
991
- speaker: {
992
- existingIds: new Set(r.speakers || []),
993
- finder: (e) => y.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
994
- replacer: (e) => y.speakerStore.replaceBookmarked(e)
995
- },
996
- booth: {
997
- existingIds: new Set(r.booths || []),
998
- finder: (e) => {
999
- let t = y.boothStore.findBooth(e);
1000
- return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
1001
- },
1002
- replacer: (e) => y.boothStore.replaceBookmarked(e)
1003
- }
1004
- };
1005
- e.forEach((e) => {
1006
- let t = i[e.type], n = e.name || e.externalId || "", r = t.finder(n);
1007
- r ? e.bookmarked ? t.existingIds.add(r.id) : t.existingIds.delete(r.id) : console.warn(`Entity not found: ${e.type} with query "${n}"`);
1008
- }), Object.values(i).forEach((e) => {
1009
- e.replacer(Array.from(e.existingIds));
1010
- });
1011
- }
1012
- setEntitiesVisited(e) {
1013
- if (!Array.isArray(e) || !e.length) {
1014
- $("setEntitiesVisited", "Parameter must be an array.", "EFP000703");
1015
- return;
1016
- }
1017
- let t = ["exhibitor", "event"], n = e.find((e) => !e.type || !t.includes(e.type));
1018
- if (n) {
1019
- $("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
1020
- return;
1021
- }
1022
- let r = _e("visited"), i = {
1023
- exhibitor: {
1024
- existingIds: new Set(r.exhibitors || []),
1025
- finder: (e) => y.exhibitorStore.findExhibitor(e),
1026
- replacer: (e) => y.exhibitorStore.replaceVisited(e)
1027
- },
1028
- event: {
1029
- existingIds: new Set(r.events || []),
1030
- finder: (e) => y.eventStore.findByNameOrSlug(e),
1031
- replacer: (e) => y.eventStore.replaceVisited(e)
1032
- }
1033
- };
1034
- e.forEach((e) => {
1035
- let t = i[e.type], n = e.name || e.externalId || "", r = t.finder(n);
1036
- r ? e.visited ? t.existingIds.add(r.id) : t.existingIds.delete(r.id) : console.warn(`Entity not found: ${e.type} with query "${n}"`);
1037
- }), Object.values(i).forEach((e) => {
1038
- e.replacer(Array.from(e.existingIds));
1039
- });
1040
- }
1041
- setMarkers(e) {
1042
- if (!e || !Array.isArray(e.icons) || !Array.isArray(e.markers)) {
1043
- $("setMarkers", "Invalid input.", "EFP000800");
1044
- return;
1045
- }
1046
- y.routeStore.setMarkers(e);
1047
- }
1048
- selectMarker(e, t = !0) {
1049
- return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), y.routeStore.selectMarker(e, t);
1050
- }
1051
- drawCircles(e) {
1052
- Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), y.uiState.debugCircles = e;
1053
- }
1054
- checkRoutes() {
1055
- y.routeStore.checkRoutes();
1056
- }
1057
- updateLayerVisibility(e, t) {
1058
- typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"), y.layerStore.updateVisibility(e, t);
1059
- }
1060
- getCenterCoordinates() {
1061
- return y.fp.getCenterCoordinates();
1062
- }
1063
- exhibitorsList() {
1064
- return y.exhibitorStore.exhibitors.map((e) => K(e));
1065
- }
1066
- boothsList() {
1067
- return y.boothStore.booths.map((e) => K(e));
1068
- }
1069
- categoriesList() {
1070
- return y.categoryStore.categories.map((e) => K(e));
1071
- }
1072
- selectCategory(e) {
1073
- if (e == null || typeof e != "string") {
1074
- y.searchStore.selectSearch();
1075
- return;
1076
- }
1077
- let t = e == null ? void 0 : e.toLowerCase(), n = y.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
1078
- if (!n) {
1079
- $("selectCategory", `Category ${e} not found.`, "EFP000C01");
1080
- return;
1081
- }
1082
- y.selectCategory(n);
1083
- }
1084
- applyParameters(e) {
1085
- typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), me(e);
1086
- }
1087
- getVisibility() {
1088
- return y.uiState.visibility;
1089
- }
1090
- setVisibility(e) {
1091
- (typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), y.uiState.setVisibility(e);
1092
- }
1093
- findLocation() {
1094
- y.routeStore.findLocation();
1095
- }
1096
- zoomIn() {
1097
- y.uiState.zoomIn();
1098
- }
1099
- zoomOut() {
1100
- y.uiState.zoomOut();
1101
- }
1102
- switchView() {
1103
- y.maplibreStore.activateMaplibre();
1104
- }
1105
- zoomTo(e, t) {
1106
- X("zoomTo called with selectors=%O options=%O", e, t);
1107
- let n = Mt.safeParse(e);
1108
- if (!n.success) {
1109
- $("zoomTo", n.error.message, "EFP001600");
1110
- return;
1111
- }
1112
- let r = Nt.safeParse(t);
1113
- if (!r.success) {
1114
- $("zoomTo", r.error.message, "EFP001601");
1115
- return;
1116
- }
1117
- let i = this.getBounds(e);
1118
- i && this.fitBounds(i, t);
1119
- }
1120
- getBounds(e) {
1121
- var t, n;
1122
- X("getBounds called with selectors=%O", e);
1123
- let r = Mt.safeParse(e);
1124
- if (!r.success) {
1125
- $("getBounds", r.error.message, "EFP001400");
1126
- return;
1127
- }
1128
- let i = [];
1129
- if ((t = e.booths) == null || t.forEach((e) => {
1130
- let t;
1131
- e.externalId ? t = y.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = y.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
1132
- }), (n = e.exhibitors) == null || n.forEach((e) => {
1133
- var t;
1134
- let n;
1135
- e.externalId ? n = y.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = y.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
1136
- e.rect && i.push(e.rect);
1137
- });
1138
- }), i.length === 0) return;
1139
- let a = xe.fromUnion(...i);
1140
- return {
1141
- leftTop: {
1142
- x: a.min.x,
1143
- y: a.min.y
1144
- },
1145
- rightBottom: {
1146
- x: a.max.x,
1147
- y: a.max.y
1148
- }
1149
- };
1150
- }
1151
- fitBounds(e, t) {
1152
- if (X("fitBounds called with bounds=%O options=%O", e, t), !e) {
1153
- y.uiState.fitBounds();
1154
- return;
1155
- }
1156
- let n = At.safeParse(e);
1157
- if (!n.success) {
1158
- $("fitBounds", n.error.message, "EFP001500");
1159
- return;
1160
- }
1161
- let r = Nt.safeParse(t);
1162
- if (!r.success) {
1163
- $("fitBounds", r.error.message, "EFP001501");
1164
- return;
1165
- }
1166
- let i = xe.fromMinMax({
1167
- x: e.leftTop.x,
1168
- y: e.leftTop.y
1169
- }, {
1170
- x: e.rightBottom.x,
1171
- y: e.rightBottom.y
1172
- });
1173
- y.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
1174
- }
1175
- getBoothRect(e) {
1176
- var t;
1177
- typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
1178
- let n = (t = he(e)) == null ? void 0 : t.rect;
1179
- return n ? Lt.fromBox(n) : void 0;
1180
- }
1181
- convertToGeo(e, t) {
1182
- var n;
1183
- if (!(!(_ == null || (n = _.properties) == null) && n.config)) {
1184
- $("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
1185
- return;
1186
- }
1187
- if (!e || !t) {
1188
- $("convertToGeo", "Both coordinates must be passed.", "EFP001001");
1189
- return;
1190
- }
1191
- return fe(e, t, _.properties.config);
1192
- }
1193
- getGeoConfig() {
1194
- var e, t;
1195
- let n = _ == null || (e = _.properties) == null ? void 0 : e.config;
1196
- return n ? {
1197
- bearing: (t = n.bearing) == null ? 0 : t,
1198
- p0: n.p0,
1199
- p1: n.p1,
1200
- p2: n.p2
1201
- } : null;
1202
- }
1203
- unstable_destroy() {
1204
- let e = window.__efpElement.firstChild;
1205
- Pt(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", f), y.maplibreStore.dispose(), ye(), ve(), we(), [...document.getElementsByTagName("script")].filter((e) => e.src.indexOf("/fp.svg") > -1 || e.src.indexOf("/wf.data.js") > -1 || e.src.indexOf("/data.js") > -1).forEach((e) => e.remove()), this.root.unmount(), e.remove();
1206
- }
1207
- search(e) {
1208
- return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), y.fuzzySearchEngineStore.loadEngine().then(() => (y.searchStore.selectSearch(e), y.uiState.fuzzySearchItems.map((e) => ({
1209
- item: K(e.item),
1210
- score: e.score
1211
- }))));
1212
- }
1213
- getFloors() {
1214
- return y.layerStore.floors.map((e) => ({
1215
- name: e.name,
1216
- shortName: e.shortName,
1217
- description: e.description,
1218
- active: e.active,
1219
- disabled: e.disabled,
1220
- index: e.index
1221
- }));
1222
- }
1223
- activateFloor(e) {
1224
- if (!(e != null && e.name) && (e == null ? void 0 : e.index) == null) {
1225
- $("activateFloor", "Invalid floorId. It must contain either a name or an index.", "EFP001200");
1226
- return;
1227
- }
1228
- let t = this.getFloors();
1229
- if (e.name) {
1230
- let n = t.find((t) => t.name === e.name || t.shortName === e.name);
1231
- if (!n) {
1232
- $("activateFloor", `Floor with name "${e.name}" not found.`, "EFP001201");
1233
- return;
1234
- }
1235
- if (n.active) return;
1236
- this.updateLayerVisibility(n.name, !0);
1237
- return;
1238
- }
1239
- if (e.index !== null) {
1240
- let n = t.find((t) => t.index === e.index), r = n == null ? void 0 : n.name;
1241
- if (!r) {
1242
- $("activateFloor", `Floor at index ${e.index} does not exist.`, "EFP001203");
1243
- return;
1244
- }
1245
- if (n.active) return;
1246
- this.updateLayerVisibility(r, !0);
1247
- return;
1248
- }
1249
- }
1250
- showPathway(e, t) {
1251
- let n = new URLSearchParams();
1252
- if (n.set(s, e), t != null && t.length) {
1253
- let { boothExternalIds: e, exhibitorExternalIds: r } = de(t);
1254
- e.length > 0 && n.set("booths", e.join(",")), r.length > 0 && n.set("exhibitors", r.join(","));
1255
- }
1256
- this.applyParameters(n.toString());
1257
- }
1258
- showPathwayOnly(e, t) {
1259
- this.activateFloor({ name: t }), y.layerStore.showPathWay(e), y.uiState.setPathwayOnlyMode(!0);
1260
- let n = y.layerStore.findLayer(e), r = y.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
1261
- if (i != null && i.rect || i != null && i.viewbox) {
1262
- var a;
1263
- let e = (a = i.viewbox) == null ? i.rect : a;
1264
- y.uiState.moveToRect = e.clone();
1265
- }
1266
- }
1267
- hidePathways() {
1268
- this.highlightBooths([]), y.layerStore.hidePathways(), y.uiState.setPathwayOnlyMode(!1);
1269
- }
1270
- showSearch() {
1271
- y.selectSearch("");
1272
- }
1273
- changeLanguage(e) {
1274
- var t;
1275
- let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
1276
- if (!u(n)) {
1277
- $("changeLanguage", `Language "${e}" was not found. Available languages: ${l().map((e) => e.id).join(",")}`, "EFP001300");
1278
- return;
1279
- }
1280
- let r = new URLSearchParams();
1281
- r.set(a, n), this.applyParameters(r.toString());
1282
- }
1283
- isGpsTrackingEnabled() {
1284
- return y.routeStore.gpsEnabled;
1285
- }
1286
- setGpsTrackingEnabled(e) {
1287
- y.routeStore.setGpsTrackingEnabled(e);
1288
- }
1289
- deselectCurrentPosition() {
1290
- y.routeStore.selectCurrentPosition(null, !1);
1291
- }
1292
- deselectRoute() {
1293
- y.routeStore.selectRoute(null), y.routeStore.setOnlyAccessible(!1);
1294
- }
1295
- reset() {
1296
- if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), y.uiState.kioskData && y.resetCameraFn) {
1297
- var e;
1298
- (e = y.resetCameraFn) == null || e.call(y);
1299
- } else this.fitBounds();
1300
- }
1301
- selectAccessibleRoute(e) {
1302
- y.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
1303
- }
1304
- };
1305
- function Z(e) {
1306
- return typeof e == "string" ? he(e) : y.routeStore.getNearestBooth(e);
1307
- }
1308
- var Q = 0;
1309
- function $(e, t, n) {
1310
- let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
1311
- if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), y.fp.disableRuntimeAlerts) return;
1312
- y.uiState.setGlobalErrorMessage({
1313
- title: r,
1314
- body: /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
1315
- i,
1316
- " ",
1317
- /* @__PURE__ */ (0, Y.jsx)("a", {
1318
- href: a,
1319
- target: "_blank",
1320
- rel: "noreferrer",
1321
- children: a
1322
- })
1323
- ] })
1324
- }), clearTimeout(Q);
1325
- let o = 8e3;
1326
- Q = window.setTimeout(() => {
1327
- let e = async () => {
1328
- y.uiState.globalErrorMessages.length > 0 && (y.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
1329
- };
1330
- e();
1331
- }, o);
1332
- }
1333
- var Lt = class e {
1334
- get h() {
1335
- return Math.abs(this.y2 - this.y1);
1336
- }
1337
- get w() {
1338
- return Math.abs(this.x2 - this.x1);
1339
- }
1340
- get cx() {
1341
- return (this.x1 + this.x2) / 2;
1342
- }
1343
- get cy() {
1344
- return (this.y1 + this.y2) / 2;
1345
- }
1346
- constructor(e, t, n, r) {
1347
- if (this.x1 = void 0, this.y1 = void 0, this.x2 = void 0, this.y2 = void 0, e > n) {
1348
- let t = e;
1349
- e = n, n = t;
1350
- }
1351
- if (t > r) {
1352
- let e = t;
1353
- t = r, r = e;
1354
- }
1355
- this.x1 = e, this.y1 = t, this.x2 = n, this.y2 = r;
1356
- }
1357
- static fromBox(t) {
1358
- return new e(t.min.x, t.min.y, t.max.x, t.max.y);
1359
- }
1360
- static fromCxcywh(t, n, r, i) {
1361
- return new e(t - r / 2, n - i / 2, t + r / 2, n + i / 2);
1362
- }
1363
- contains(e) {
1364
- return e.x1 >= this.x1 && e.x2 <= this.x2 && e.y1 >= this.y1 && e.y2 <= this.y2;
1365
- }
1366
- intersects(e) {
1367
- let t = Math.max(this.x1, e.x1), n = Math.min(this.x2, e.x2), r = Math.max(this.y1, e.y1), i = Math.min(this.y2, e.y2);
1368
- return n >= t && i >= r;
1369
- }
1370
- getIntersection(t) {
1371
- let n = Math.max(this.x1, t.x1), r = Math.min(this.x2, t.x2), i = Math.max(this.y1, t.y1), a = Math.min(this.y2, t.y2);
1372
- return r >= n && a >= i ? new e(n, i, r, a) : new e(0, 0, 0, 0);
1373
- }
1374
- getRotated90() {
1375
- return e.fromCxcywh(this.cx, this.cy, this.h, this.w);
1376
- }
1377
- normalize(t, n) {
1378
- return new e(this.x1 / t, this.y1 / n, this.x2 / t, this.y2 / n);
1379
- }
1380
- withPadding(t, n = t) {
1381
- return this.w < t * 2 || this.h < n * 2 ? this : e.fromCxcywh(this.cx, this.cy, this.w - t * 2, this.h - n * 2);
1382
- }
1383
- scale(t) {
1384
- return new e(this.x1 * t, this.y1 * t, this.x2 * t, this.y2 * t);
1385
- }
1386
- getArea() {
1387
- return this.w * this.h;
1388
- }
1389
- clone() {
1390
- return new e(this.x1, this.y1, this.x2, this.y2);
1391
- }
1392
- translate(e, t) {
1393
- return this.x1 += e, this.x2 += e, this.y1 += t, this.y2 += t, this;
1394
- }
1395
- equals(e) {
1396
- return e.x1 === this.x1 && e.x2 === this.x2 && e.y1 === this.y1 && e.y2 === this.y2;
1397
- }
1398
- toString() {
1399
- return this.x1 + "," + this.y1 + "," + this.w + "," + this.h;
1400
- }
1401
- containsPoint(e, t) {
1402
- return e >= this.x1 && e <= this.x2 && t >= this.y1 && t <= this.y2;
1403
- }
1404
- };
1405
- //#endregion
1406
- export { It as default };