@mapvx/web-components 0.0.30 → 0.0.32

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 (62) hide show
  1. package/dist/cjs/base-floor-selector-IDYKUTl3.cjs +2 -0
  2. package/dist/cjs/class-map-CGHo1D7M.cjs +12 -0
  3. package/dist/cjs/{compact-floor-selector-BS7CViXm.cjs → compact-floor-selector-Co8Y3T2c.cjs} +4 -4
  4. package/dist/cjs/{consume-D8FiYlnP.cjs → consume-BWIh7rxI.cjs} +3 -3
  5. package/dist/cjs/custom-map--UZ5N3Lg.cjs +97 -0
  6. package/dist/cjs/floor-selector-CNuGDuNc.cjs +15 -0
  7. package/dist/cjs/lazy-load-Dy0Wc6yS.cjs +56 -0
  8. package/dist/cjs/map-view-with-modal.cjs +1 -2
  9. package/dist/cjs/qr-modal-Dq7dOqh6.cjs +16 -0
  10. package/dist/cjs/{route-options-DtyFIre-.cjs → route-options-B45xnSu4.cjs} +2 -2
  11. package/dist/cjs/route-view-totems.cjs +3 -3
  12. package/dist/cjs/styles-Bt354u5n.cjs +2 -0
  13. package/dist/es/assets/accessibility-D3Vyfstu.js +2 -0
  14. package/dist/es/assets/back_arrow-B3RltzaY.js +2 -0
  15. package/dist/es/assets/{compact-floor-selector-CwFw5Bzm.js → compact-floor-selector-BQ0lsGyg.js} +12 -105
  16. package/dist/es/assets/components-CNuu24gs.js +234 -0
  17. package/dist/es/assets/icon-destination-point-DEI58b8w.js +2 -0
  18. package/dist/es/assets/icon-origin-point-GS06gE2l.js +2 -0
  19. package/dist/es/assets/map-view-with-modal-JX4bFkkK.js +77 -0
  20. package/dist/es/assets/repeat_icon-DN4_p9eh.js +2 -0
  21. package/dist/es/assets/route-view-totems-B-1OEdkb.js +71 -0
  22. package/dist/es/assets/styles-BByP6ECU.js +2 -0
  23. package/dist/es/assets/utils-DslQaI0J.js +2 -0
  24. package/dist/es/assets/walking-BggsSG4g.js +2 -0
  25. package/dist/es/index.js +1 -2
  26. package/dist/es/route-view-totems.js +1 -2
  27. package/dist/iife/map-view-with-modal.js +28 -34
  28. package/dist/iife/route-view-totems.js +75 -80
  29. package/dist/update-timestamp.txt +1 -0
  30. package/package.json +58 -42
  31. package/dist/cjs/base-floor-selector-yrQVnvtZ.cjs +0 -2
  32. package/dist/cjs/class-map-7neI3FKM.cjs +0 -12
  33. package/dist/cjs/custom-map-B1nAQRfN.cjs +0 -97
  34. package/dist/cjs/floor-selector-DmKlivaW.cjs +0 -15
  35. package/dist/cjs/lazy-load-DbvIE8M6.cjs +0 -61
  36. package/dist/cjs/maplibre-gl-BNL6ASmq.cjs +0 -2
  37. package/dist/cjs/qr-modal-Br6Jn39i.cjs +0 -16
  38. package/dist/components/custom-map.d.ts +0 -13
  39. package/dist/components/custom-map.js +0 -64
  40. package/dist/components/floor-selector.d.ts +0 -6
  41. package/dist/components/floor-selector.js +0 -40
  42. package/dist/components/qr-modal.d.ts +0 -7
  43. package/dist/components/qr-modal.js +0 -69
  44. package/dist/components/route-options.d.ts +0 -6
  45. package/dist/components/route-options.js +0 -51
  46. package/dist/components/zoom-controls.d.ts +0 -6
  47. package/dist/components/zoom-controls.js +0 -40
  48. package/dist/es/assets/accessibility-Cnj-vwGM.js +0 -4
  49. package/dist/es/assets/back_arrow-B4vxoqtW.js +0 -4
  50. package/dist/es/assets/components-CWs4A5q7.js +0 -3854
  51. package/dist/es/assets/icon-destination-point-DY-ha1KN.js +0 -4
  52. package/dist/es/assets/icon-origin-point-v4_9Pmls.js +0 -4
  53. package/dist/es/assets/map-view-with-modal-CLey7TyU.js +0 -325
  54. package/dist/es/assets/maplibre-gl-BKzNcqp_.js +0 -4
  55. package/dist/es/assets/repeat_icon-CY61-fSZ.js +0 -4
  56. package/dist/es/assets/route-view-totems-BJkNb_vw.js +0 -469
  57. package/dist/es/assets/utils-CqnEla0O.js +0 -13046
  58. package/dist/es/assets/walking-BmgeFukv.js +0 -4
  59. package/dist/route-view-totems.d.ts +0 -16
  60. package/dist/route-view-totems.js +0 -58
  61. package/dist/utils/styles.d.ts +0 -2
  62. package/dist/utils/styles.js +0 -5
@@ -0,0 +1,234 @@
1
+ import{a as t,x as e,r as n,i as o,t as r,T as i}from"./route-view-totems-B-1OEdkb.js";import{R as s,M as a}from"./utils-DslQaI0J.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2021 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */let l=class extends Event{constructor(t,e,n,o){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=n,this.subscribe=o??!1}};
7
+ /**
8
+ * @license
9
+ * Copyright 2021 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */
12
+ /**
13
+ * @license
14
+ * Copyright 2021 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ */
17
+ let c=class{constructor(t,e,n,o){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=t.subscribe??!1}else this.context=e,this.callback=n,this.subscribe=o??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new l(this.context,this.host,this.t,this.subscribe))}};
18
+ /**
19
+ * @license
20
+ * Copyright 2021 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */class d{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:e}]of this.subscriptions)t(this.o,e)},void 0!==t&&(this.value=t)}addCallback(t,e,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}}
23
+ /**
24
+ * @license
25
+ * Copyright 2021 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */let u=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h=class extends d{constructor(t,e,n){super(void 0!==e.context?e.initialValue:n),this.onContextRequest=t=>{if(t.context!==this.context)return;const e=t.contextTarget??t.composedPath()[0];e!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,e,t.subscribe))},this.onProviderRequest=t=>{if(t.context!==this.context)return;if((t.contextTarget??t.composedPath()[0])===this.host)return;const e=new Set;for(const[n,{consumerHost:o}]of this.subscriptions)e.has(n)||(e.add(n),o.dispatchEvent(new l(this.context,o,n,!0)));t.stopPropagation()},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new u(this.context,this.host))}};
28
+ /**
29
+ * @license
30
+ * Copyright 2022 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */
33
+ function p({context:t,subscribe:e}){return(n,o)=>{"object"==typeof o?o.addInitializer(function(){new c(this,{context:t,callback:t=>{n.set.call(this,t)},subscribe:e})}):n.constructor.addInitializer(n=>{new c(n,{context:t,callback:t=>{n[o]=t},subscribe:e})})}}const f="lazarillo-sdk";var g=Object.defineProperty,m=Object.getOwnPropertyDescriptor,b=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?m(e,n):e,s=t.length-1;s>=0;s--)(r=t[s])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&g(e,n,i),i};let x=class extends t{constructor(){super(),this.mapReady=!1,this.routeAnimationHandlers={onRouteAnimationFinished:()=>{this.dispatchEvent(new CustomEvent("routeAnimationFinished",{bubbles:!0,composed:!0}))},onFloorChange:t=>{this.dispatchEvent(new CustomEvent("floorChange",{detail:t,bubbles:!0,composed:!0}))},onStartRouteAnimation:()=>{this.dispatchEvent(new CustomEvent("startRouteAnimation",{bubbles:!0,composed:!0}))},onShowMapModal:t=>{this.modalData=t},onDismissModal:()=>{this.modalData=void 0}},this.mapContainer=null,this.pendingUpdateMarkers=!1,this.pendingUpdateCamera=!1,this.routeAnimationController=new s(this,this.routeAnimationHandlers),this.markerController=new a(this)}async firstUpdated(){if(this.shadowRoot){const t=document.createElement("style");t.textContent=(await import("./styles-BByP6ECU.js")).default,this.shadowRoot.appendChild(t)}}async updated(){if(this.updateAttributes(),!this.sdkData?.sdk)return;const{sdk:t,parentPlace:e,locale:n,generalConfig:o,currentFloor:r,markers:i,route:s,isRouteAnimating:a,cameraInitialized:l}=this.sdkData;if(!this.lzMap&&t&&e&&n&&this.shadowRoot&&o){this.routeAnimationController.setParentPlace(e),this.routeAnimationController.setLocale(n),this.routeAnimationController.setConfig(o),this.mapContainer=this.shadowRoot.getElementById("map"),this.shadowRoot?.appendChild(this.mapContainer),this.config=o;const r={zoom:o.initialZoom||18,parentPlaceId:e?.lazarilloId,center:o.initialCenter||{lat:0,lng:0},minZoom:o.limitZoomOut||15,maxZoom:o.limitZoomIn||22,showCompass:!1,navigationPosition:"bottom-right",pitch:o.pitch||0,lang:n,maxBounds:o.pointsOfInterest||[],otherPotentialParentPlacesIds:o.potentialParentPlaces||[],onMapReady:()=>{this.mapReady=!0,this.markerController.setMapReady(!0),this.pendingUpdateCamera=!0,this.dispatchEvent(new CustomEvent("mapReady",{detail:{},bubbles:!0,composed:!0}))},onFloorChange:t=>{this.setCurrentMapFloor(t)}};this.lzMap=t.createMap(this.mapContainer,r),this.lzMap.setParentPlace(e,!1),this.routeAnimationController.setMap(this.lzMap),this.markerController.setMap(this.lzMap),this.markerController.setParentPlace(e),this.markerController.setConfig(o)}r&&r.key!==this._currentMapFloor&&this.mapReady&&this.setCurrentMapFloor(r.key),(i.some(t=>!this.markerController.getMarkersIds().includes(t.id))||i.length!==this.markerController.getMarkersIds().length)&&(this.mapReady?this.updateMarkers():this.pendingUpdateMarkers=!0),this.pendingUpdateMarkers&&this.mapReady&&this.updateMarkers(),(this.pendingUpdateCamera||!l&&this.mapReady)&&this.sdkData?.destination&&(this._initializeCamera(),this.pendingUpdateCamera=!1);const c=this.routeAnimationController.getCurrentRoute();c&&c.id===s?.id||(c&&this.routeAnimationController.removeRoute(),s&&this.routeAnimationController.startRouteAnimation(s)),!this.routeAnimationController.isAnimating()&&a&&s&&this.routeAnimationController.startRouteAnimation(s)}updateMarkers(){const t=this.sdkData?.markers??[];this.markerController.updateMarkers(t),this.pendingUpdateMarkers=!1}_initializeCamera(){if(!this.lzMap||!this.mapReady||!this.sdkData)return;const{destination:t,origin:e,route:n}=this.sdkData;if(n){const o=e?.inFloors?.[0];if(o&&n.legs){const r=n.legs.flatMap(t=>t.steps).filter(t=>t.startInsideFloor===o||t.endInsideFloor===o).flatMap(t=>t.coordinates);if(r.length>0)setTimeout(()=>{this.lzMap?.fitCoordinates(r,{padding:{top:200,bottom:200,left:200,right:200}})},200);else{const n=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:this.config?.mapRotations?.[e?.lazarilloId??""]?.angle??0,animate:!1,pitch:this.config?.pitch??0,center:n,zoom:this.config?.initialZoom??18})}}else{const n=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:this.config?.mapRotations?.[e?.lazarilloId??""]?.angle??0,animate:!1,pitch:this.config?.pitch??0,center:n,zoom:this.config?.initialZoom??18})}}else{const n=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:this.config?.mapRotations?.[e?.lazarilloId??""]?.angle??0,animate:!1,pitch:this.config?.pitch??0,center:n,zoom:this.config?.initialZoom??18})}const o=t?.inFloors?.[0];o&&this.lzMap?.updateFloor(o),this.dispatchEvent(new CustomEvent("cameraInitialized",{detail:{},bubbles:!0,composed:!0}))}setCurrentMapFloor(t){this._currentMapFloor!==t&&this.lzMap&&(this._currentMapFloor=t,this.lzMap?.updateFloor(t),this.routeAnimationController.setCurrentFloor(t),this.dispatchEvent(new CustomEvent("floorChange",{detail:t,bubbles:!0,composed:!0})))}updateAttributes(){const t=this.closest("map-view-with-modal");if(t){const e=t.hasAttribute("compact-mode"),n=t.getAttribute("zoom-size")||"normal";e?this.setAttribute("compact-mode",""):this.removeAttribute("compact-mode"),this.setAttribute("zoom-size",n)}}render(){return e`<div id="map"></div>
34
+ <div id="modal" style="display: ${this.modalData?"flex":"none"}">
35
+ <div class="modal-content">
36
+ <img class="modal-icon" .src=${this.modalData?.iconPath}></img>
37
+ <p class="modal-text">${this.modalData?.title}</p>
38
+ </div>
39
+ </div>`}};x.styles=[o`
40
+ :host {
41
+ height: 100%;
42
+ width: 100%;
43
+ }
44
+ `,n(':host{display:block;height:100%;width:100%}#map,.maplibregl-canvas{width:100%;height:100%}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 20px 50px 0}.maplibregl-ctrl{bottom:var(--zoom-button-margin, 80px);right:var(--zoom-button-margin, 40px);border:var(--mvx-border-width, 0px) solid var(--mvx-border-color, transparent);padding:0;border-radius:100px;background:#fff;overflow:hidden;display:flex;flex-direction:column;width:var(--zoom-button-size, 70px);height:calc(var(--zoom-button-size, 70px) * 1.8)}.maplibregl-ctrl button{font-family:var(--mvx-font-family, inherit);background-color:transparent;box-shadow:none;border-radius:0;margin:0;font-size:var(--zoom-icon-size, 18px);font-weight:400;width:100%;height:100%;color:var(--zoom-icon-color, var(--mvx-primary-color, #251660));transition:background-color .4s ease,color .4s ease}.maplibregl-ctrl button:hover{background-color:var(--mvx-primary-color, #251660)!important;color:#fff}.maplibregl-ctrl-group .maplibregl-ctrl-icon{background:none!important;display:none!important}.maplibregl-ctrl-group button.maplibregl-ctrl-zoom-in:after{content:"+";display:block;font-size:var(--zoom-icon-size, 18px);font-weight:600;line-height:1;text-align:center}.maplibregl-ctrl-group button.maplibregl-ctrl-zoom-out:after{content:"–";display:block;font-size:var(--zoom-icon-size, 18px);font-weight:600;line-height:1;text-align:center}#modal{position:absolute;width:100%;height:100%;background:#0003;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;justify-items:center;top:0;left:0;z-index:100}.modal-content{min-width:100px;min-height:100px;background-color:#fff;border:1px solid #000;border-radius:10px;padding:10px;width:fit-content;height:fit-content;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}@media(max-width:768px){#modal{align-items:flex-start;padding-top:60px}.modal-content{max-width:90%;margin:0 auto;border-radius:12px;box-shadow:0 4px 12px #00000026}}:host([compact-mode]){border-radius:12px!important;overflow:hidden!important;box-shadow:0 4px 12px #00000026!important}:host([compact-mode]) #map{border-radius:12px}:host([compact-mode]) .maplibregl-canvas{border-radius:12px}.modal-text{font-family:Poppins,sans-serif;font-size:20pt;font-weight:500;color:#000}.modal-icon{height:100px;align-self:center}.maplibregl-marker:has(.popup){z-index:10}.maplibregl-marker:not(:has(.popup)){z-index:5}.maplibregl-ctrl-compass{visibility:hidden;height:0px}'),o`
45
+ :host([compact-mode]) {
46
+ border-radius: 12px !important;
47
+ overflow: hidden !important;
48
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
49
+ border: 2px solid #e9ecef !important;
50
+ }
51
+
52
+ :host([compact-mode]) #map {
53
+ border-radius: 12px !important;
54
+ }
55
+
56
+ :host([compact-mode]) .maplibregl-canvas {
57
+ border-radius: 12px !important;
58
+ }
59
+
60
+ :host([zoom-size='small']) {
61
+ --zoom-button-size: 32px;
62
+ --zoom-button-margin: 8px;
63
+ }
64
+
65
+ :host([zoom-size='normal']) {
66
+ --zoom-button-size: 40px;
67
+ --zoom-button-margin: 12px;
68
+ }
69
+
70
+ :host([zoom-size='large']) {
71
+ --zoom-button-size: 48px;
72
+ --zoom-button-margin: 16px;
73
+ }
74
+
75
+ /* Apply CSS variables to zoom buttons */
76
+ :host([zoom-size='small']) .maplibregl-ctrl {
77
+ width: 32px !important;
78
+ height: 58px !important;
79
+ bottom: 8px !important;
80
+ right: 8px !important;
81
+ }
82
+
83
+ :host([zoom-size='normal']) .maplibregl-ctrl {
84
+ width: 40px !important;
85
+ height: 72px !important;
86
+ bottom: 12px !important;
87
+ right: 12px !important;
88
+ }
89
+
90
+ :host([zoom-size='large']) .maplibregl-ctrl {
91
+ width: 48px !important;
92
+ height: 86px !important;
93
+ bottom: 16px !important;
94
+ right: 16px !important;
95
+ }
96
+
97
+ /* Icon size is independent from container size */
98
+ .maplibregl-ctrl button {
99
+ font-size: var(--zoom-icon-size, 18px) !important;
100
+ }
101
+
102
+ .maplibregl-ctrl-group button::after {
103
+ font-size: var(--zoom-icon-size, 18px) !important;
104
+ }
105
+
106
+ /* Zoom button container customizable via CSS variables */
107
+ .maplibregl-ctrl {
108
+ border: var(--zoom-border-width, 0px) solid var(--zoom-border-color, transparent) !important;
109
+ box-shadow: var(--zoom-shadow, none) !important;
110
+ background: var(--zoom-background, #fff) !important;
111
+ }
112
+
113
+ .maplibregl-ctrl button {
114
+ border: none;
115
+ border-radius: unset;
116
+ }
117
+
118
+ /* Divider between zoom-in and zoom-out buttons, overridable separately */
119
+ .maplibregl-ctrl-group button + button {
120
+ border-top: var(--zoom-divider-width, var(--zoom-border-width, 0px)) solid
121
+ var(--zoom-divider-color, var(--zoom-border-color, transparent)) !important;
122
+ }
123
+
124
+ .maplibregl-ctrl button:hover {
125
+ background-color: var(--zoom-hover-bg, var(--zoom-border-color, #251660)) !important;
126
+ color: var(--zoom-hover-color, #fff) !important;
127
+ }
128
+ `],b([p({context:f,subscribe:!0})],x.prototype,"sdkData",2),x=b([r("custom-map")],x);const v=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get CustomMap(){return x}},Symbol.toStringTag,{value:"Module"})),w=1;
129
+ /**
130
+ * @license
131
+ * Copyright 2017 Google LLC
132
+ * SPDX-License-Identifier: BSD-3-Clause
133
+ */class y{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
134
+ /**
135
+ * @license
136
+ * Copyright 2018 Google LLC
137
+ * SPDX-License-Identifier: BSD-3-Clause
138
+ */const C=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends y{constructor(t){if(super(t),t.type!==w||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const n=t.element.classList;for(const o of this.st)o in e||(n.remove(o),this.st.delete(o));for(const o in e){const t=!!e[o];t===this.st.has(o)||this.nt?.has(o)||(t?(n.add(o),this.st.add(o)):(n.remove(o),this.st.delete(o)))}return i}});var k=Object.defineProperty;class E extends t{getFloors(){if(!this.sdkData)return[];const{parentPlace:t,generalConfig:e}=this.sdkData;let n=t?.innerFloors||[];return e?.enabledFloors?.length>0&&(n=n.filter(t=>e.enabledFloors.includes(t.key))),n}getCurrentFloor(){return this.sdkData?.currentFloor}getEnabledFloors(){return this.sdkData?.enabledFloors||[]}isFloorActive(t){const e=this.getCurrentFloor();return t.key===e?.key}isFloorEnabled(t){return this.getEnabledFloors().some(e=>e.key===t.key)}selectFloor(t){this.dispatchEvent(new CustomEvent("floorChange",{detail:t,bubbles:!0,composed:!0}))}getFloorDisplayName(t){return t.name||t.title||t.key}}((t,e,n)=>{for(var o,r=void 0,i=t.length-1;i>=0;i--)(o=t[i])&&(r=o(e,n,r)||r);r&&k(e,n,r)})([p({context:f,subscribe:!0})],E.prototype,"sdkData");var z=Object.getOwnPropertyDescriptor;let M=class extends E{render(){if(!this.sdkData)return e`<div>No data</div>`;const t=this.getFloors();return e`
139
+ <div class="floor-selector-container">
140
+ ${t.map(t=>{const n=this.isFloorActive(t),o=this.isFloorEnabled(t);return e`
141
+ <div class="floor-btn-container">
142
+ <button
143
+ class=${C({"floor-btn":!0,active:n,disabled:!n&&!o})}
144
+ @click=${()=>o?this.selectFloor(t.key):null}
145
+ >
146
+ <span>${this.getFloorDisplayName(t)}</span>
147
+ </button>
148
+ </div>
149
+ `})}
150
+ </div>
151
+ `}};M.styles=[n(':host{position:absolute;top:0;right:10px}.floor-selector-container{display:flex;flex-direction:row;background:#fff;border-radius:0 0 30px 30px;box-shadow:0 0 15px #00000026;padding:0 6px;gap:8px;height:65px}.btn-floor{height:auto;width:100px;vertical-align:middle;font-size:small!important;word-wrap:break-word!important;font-family:Poppins;font-weight:600;font-size:16pt;border-radius:10px;border:0;box-shadow:0 0 15px #00000026}@media only screen and (max-width:576px){.btn-floor{padding:6px;width:70px;height:auto;font-size:small!important}}.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:0 0 999px 999px;background:#000;color:#fff}.floor-btn{transition:background .2s ease,color .2s ease,transform .2s ease,opacity .2s ease;position:relative;background:transparent;border:none;outline:none;font-family:Poppins,sans-serif;font-weight:600;font-size:13px;border-radius:0 0 30px 30px;cursor:pointer;transition:all .2s ease;height:100%;min-width:65px;display:flex;align-items:center;justify-content:center;color:#000;z-index:1;span{min-width:50px}}.floor-btn.disabled{color:#c5c3c3;background:transparent;pointer-events:none;-webkit-tap-highlight-color:transparent;user-select:none}.floor-btn.active{color:#fff;background:transparent;z-index:2}.floor-btn.active:after{content:"";position:absolute;inset:0 2px;border-radius:0 0 999px 999px;background:#000;color:#fff;z-index:1}.floor-btn.active:before{content:"";position:absolute;inset:0 -3px -3px;border-radius:0 0 999px 999px;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0}.floor-btn.active span{z-index:10}@media(max-width:1100px){.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:999px 0 0 999px;background:#000;color:#fff}.floor-selector-container{right:0;position:fixed;top:50%;transform:translateY(-50%);display:flex;flex-direction:column-reverse;border-radius:30px 0 0 30px;min-width:87px;max-height:100%;height:auto;padding:0;gap:0}.floor-btn-container{padding:0;width:100%}.floor-btn{width:100%;padding:20px;border-radius:999px 0 0 999px}.floor-btn.active:after{position:absolute;inset:2px 0 2px 2px;border-radius:999px 0 0 999px}.floor-btn.active:before{inset:-3px 0 -3px -3px;border-radius:999px 0 0 999px}}')],M=((t,e,n,o)=>{for(var r,i=o>1?void 0:o?z(e,n):e,s=t.length-1;s>=0;s--)(r=t[s])&&(i=r(i)||i);return i})([r("floor-selector")],M);const A=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get FloorSelector(){return M}},Symbol.toStringTag,{value:"Module"}));var P,R,I={};function B(){return R?P:(R=1,P=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var T,D={},F={};function N(){if(T)return F;let t;T=1;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return F.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},F.getSymbolTotalCodewords=function(t){return e[t]},F.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},F.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},F.isKanjiModeEnabled=function(){return void 0!==t},F.toSJIS=function(e){return t(e)},F}var _,L,S,U,j,$={};function O(){return _||(_=1,(t=$).L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(C){return n}}),$;var t}var H,q={};var Y,J={};var K,V={};var Z,Q={};function G(){if(Z)return Q;Z=1;const t=O(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Q.getBlocksCount=function(n,o){switch(o){case t.L:return e[4*(n-1)+0];case t.M:return e[4*(n-1)+1];case t.Q:return e[4*(n-1)+2];case t.H:return e[4*(n-1)+3];default:return}},Q.getTotalCodewordsCount=function(e,o){switch(o){case t.L:return n[4*(e-1)+0];case t.M:return n[4*(e-1)+1];case t.Q:return n[4*(e-1)+2];case t.H:return n[4*(e-1)+3];default:return}},Q}var X,W,tt,et,nt={},ot={};function rt(){return W||(W=1,function(t){const e=function(){if(X)return ot;X=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let n=1;for(let o=0;o<255;o++)t[o]=n,e[n]=o,n<<=1,256&n&&(n^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),ot.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},ot.exp=function(e){return t[e]},ot.mul=function(n,o){return 0===n||0===o?0:t[e[n]+e[o]]},ot}();t.mul=function(t,n){const o=new Uint8Array(t.length+n.length-1);for(let r=0;r<t.length;r++)for(let i=0;i<n.length;i++)o[r+i]^=e.mul(t[r],n[i]);return o},t.mod=function(t,n){let o=new Uint8Array(t);for(;o.length-n.length>=0;){const t=o[0];for(let i=0;i<n.length;i++)o[i]^=e.mul(n[i],t);let r=0;for(;r<o.length&&0===o[r];)r++;o=o.slice(r)}return o},t.generateECPolynomial=function(n){let o=new Uint8Array([1]);for(let r=0;r<n;r++)o=t.mul(o,new Uint8Array([1,e.exp(r)]));return o}}(nt)),nt}var it,st={},at={},lt={};function ct(){return it||(it=1,lt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),lt}var dt,ut,ht,pt={};function ft(){if(dt)return pt;dt=1;const t="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";pt.KANJI=new RegExp(e,"g"),pt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),pt.BYTE=new RegExp(n,"g"),pt.NUMERIC=new RegExp(t,"g"),pt.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+e+"$"),r=new RegExp("^"+t+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return pt.testKanji=function(t){return o.test(t)},pt.testNumeric=function(t){return r.test(t)},pt.testAlphanumeric=function(t){return i.test(t)},pt}function gt(){return ut||(ut=1,function(t){const e=ct(),n=ft();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(C){return n}}}(at)),at}function mt(){return ht||(ht=1,function(t){const e=N(),n=G(),o=O(),r=gt(),i=ct(),s=e.getBCHDigit(7973);function a(t,e){return r.getCharCountIndicator(t,e)+4}function l(t,e){let n=0;return t.forEach(function(t){const o=a(t.mode,e);n+=o+t.getBitsLength()}),n}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,o,s){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===s&&(s=r.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-n.getTotalCodewordsCount(t,o));if(s===r.MIXED)return l;const c=l-a(s,t);switch(s){case r.NUMERIC:return Math.floor(c/10*3);case r.ALPHANUMERIC:return Math.floor(c/11*2);case r.KANJI:return Math.floor(c/13);case r.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let i;const s=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let o=1;o<=40;o++)if(l(e,o)<=t.getCapacity(o,n,r.MIXED))return o}(e,s);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,o){for(let r=1;r<=40;r++)if(n<=t.getCapacity(r,o,e))return r}(i.mode,i.getLength(),s)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;e.getBCHDigit(n)-s>=0;)n^=7973<<e.getBCHDigit(n)-s;return t<<12|n}}(st)),st}var bt,xt={};var vt,wt,yt,Ct,kt,Et,zt,Mt,At={};var Pt,Rt,It,Bt={exports:{}};function Tt(){return Pt||(Pt=1,function(t){var e={single_source_shortest_paths:function(t,n,o){var r={},i={};i[n]=0;var s,a,l,c,d,u,h,p=e.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in a=(s=p.pop()).value,c=s.cost,d=t[a]||{})d.hasOwnProperty(l)&&(u=c+d[l],h=i[l],(void 0===i[l]||h>u)&&(i[l]=u,p.push(l,u),r[l]=a));if(void 0!==o&&void 0===i[o]){var f=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(f)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],o=e;o;)n.push(o),t[o],o=t[o];return n.reverse(),n},find_path:function(t,n,o){var r=e.single_source_shortest_paths(t,n,o);return e.extract_shortest_path_from_predecessor_list(r,o)},PriorityQueue:{make:function(t){var n,o=e.PriorityQueue,r={};for(n in t=t||{},o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=t.sorter||o.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(Bt)),Bt.exports}function Dt(){return Rt||(Rt=1,function(t){const e=gt(),n=function(){if(wt)return vt;wt=1;const t=gt();function e(e){this.mode=t.NUMERIC,this.data=e.toString()}return e.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e,n,o;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),o=parseInt(n,10),t.put(o,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),o=parseInt(n,10),t.put(o,3*r+1))},vt=e}(),o=function(){if(Ct)return yt;Ct=1;const t=gt(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(e){this.mode=t.ALPHANUMERIC,this.data=e}return n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let o=45*e.indexOf(this.data[n]);o+=e.indexOf(this.data[n+1]),t.put(o,11)}this.data.length%2&&t.put(e.indexOf(this.data[n]),6)},yt=n}(),r=function(){if(Et)return kt;Et=1;const t=gt();function e(e){this.mode=t.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}return e.getBitsLength=function(t){return 8*t},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},kt=e}(),i=function(){if(Mt)return zt;Mt=1;const t=gt(),e=N();function n(e){this.mode=t.KANJI,this.data=e}return n.getBitsLength=function(t){return 13*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n;for(n=0;n<this.data.length;n++){let o=e.toSJIS(this.data[n]);if(o>=33088&&o<=40956)o-=33088;else{if(!(o>=57408&&o<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");o-=49472}o=192*(o>>>8&255)+(255&o),t.put(o,13)}},zt=n}(),s=ft(),a=N(),l=Tt();function c(t){return unescape(encodeURIComponent(t)).length}function d(t,e,n){const o=[];let r;for(;null!==(r=t.exec(n));)o.push({data:r[0],index:r.index,mode:e,length:r[0].length});return o}function u(t){const n=d(s.NUMERIC,e.NUMERIC,t),o=d(s.ALPHANUMERIC,e.ALPHANUMERIC,t);let r,i;a.isKanjiModeEnabled()?(r=d(s.BYTE,e.BYTE,t),i=d(s.KANJI,e.KANJI,t)):(r=d(s.BYTE_KANJI,e.BYTE,t),i=[]);return n.concat(o,r,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function h(t,s){switch(s){case e.NUMERIC:return n.getBitsLength(t);case e.ALPHANUMERIC:return o.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return r.getBitsLength(t)}}function p(t,s){let l;const c=e.getBestModeForData(t);if(l=e.from(s,c),l!==e.BYTE&&l.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(c));switch(l!==e.KANJI||a.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new n(t);case e.ALPHANUMERIC:return new o(t);case e.KANJI:return new i(t);case e.BYTE:return new r(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t},[])},t.fromString=function(n,o){const r=function(t){const n=[];for(let o=0;o<t.length;o++){const r=t[o];switch(r.mode){case e.NUMERIC:n.push([r,{data:r.data,mode:e.ALPHANUMERIC,length:r.length},{data:r.data,mode:e.BYTE,length:r.length}]);break;case e.ALPHANUMERIC:n.push([r,{data:r.data,mode:e.BYTE,length:r.length}]);break;case e.KANJI:n.push([r,{data:r.data,mode:e.BYTE,length:c(r.data)}]);break;case e.BYTE:n.push([{data:r.data,mode:e.BYTE,length:c(r.data)}])}}return n}(u(n,a.isKanjiModeEnabled())),i=function(t,n){const o={},r={start:{}};let i=["start"];for(let s=0;s<t.length;s++){const a=t[s],l=[];for(let t=0;t<a.length;t++){const c=a[t],d=""+s+t;l.push(d),o[d]={node:c,lastCount:0},r[d]={};for(let t=0;t<i.length;t++){const s=i[t];o[s]&&o[s].node.mode===c.mode?(r[s][d]=h(o[s].lastCount+c.length,c.mode)-h(o[s].lastCount,c.mode),o[s].lastCount+=c.length):(o[s]&&(o[s].lastCount=c.length),r[s][d]=h(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,n))}}i=l}for(let e=0;e<i.length;e++)r[i[e]].end=0;return{map:r,table:o}}(r,o),s=l.find_path(i.map,"start","end"),d=[];for(let t=1;t<s.length-1;t++)d.push(i.table[s[t]].node);return t.fromArray(function(t){return t.reduce(function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(d))},t.rawSplit=function(e){return t.fromArray(u(e,a.isKanjiModeEnabled()))}}(At)),At}function Ft(){if(It)return D;It=1;const t=N(),e=O(),n=function(){if(S)return L;function t(){this.buffer=[],this.length=0}return S=1,t.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},L=t}(),o=function(){if(j)return U;function t(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return j=1,t.prototype.set=function(t,e,n,o){const r=t*this.size+e;this.data[r]=n,o&&(this.reservedBit[r]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},U=t}(),r=(H||(H=1,function(t){const e=N().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,o=e(t),r=145===o?26:2*Math.ceil((o-13)/(2*n-2)),i=[o-7];for(let e=1;e<n-1;e++)i[e]=i[e-1]-r;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],o=t.getRowColCoords(e),r=o.length;for(let t=0;t<r;t++)for(let e=0;e<r;e++)0===t&&0===e||0===t&&e===r-1||t===r-1&&0===e||n.push([o[t],o[e]]);return n}}(q)),q),i=function(){if(Y)return J;Y=1;const t=N().getSymbolSize;return J.getPositions=function(e){const n=t(e);return[[0,0],[n-7,0],[0,n-7]]},J}(),s=(K||(K=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,n=3,o=40,r=10;function i(e,n,o){switch(e){case t.Patterns.PATTERN000:return(n+o)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return o%3==0;case t.Patterns.PATTERN011:return(n+o)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2==0;case t.Patterns.PATTERN101:return n*o%2+n*o%3==0;case t.Patterns.PATTERN110:return(n*o%2+n*o%3)%2==0;case t.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let o=0,r=0,i=0,s=null,a=null;for(let l=0;l<n;l++){r=i=0,s=a=null;for(let c=0;c<n;c++){let n=t.get(l,c);n===s?r++:(r>=5&&(o+=e+(r-5)),s=n,r=1),n=t.get(c,l),n===a?i++:(i>=5&&(o+=e+(i-5)),a=n,i=1)}r>=5&&(o+=e+(r-5)),i>=5&&(o+=e+(i-5))}return o},t.getPenaltyN2=function(t){const e=t.size;let o=0;for(let n=0;n<e-1;n++)for(let r=0;r<e-1;r++){const e=t.get(n,r)+t.get(n,r+1)+t.get(n+1,r)+t.get(n+1,r+1);4!==e&&0!==e||o++}return o*n},t.getPenaltyN3=function(t){const e=t.size;let n=0,r=0,i=0;for(let o=0;o<e;o++){r=i=0;for(let s=0;s<e;s++)r=r<<1&2047|t.get(o,s),s>=10&&(1488===r||93===r)&&n++,i=i<<1&2047|t.get(s,o),s>=10&&(1488===i||93===i)&&n++}return n*o},t.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let o=0;o<n;o++)e+=t.data[o];return Math.abs(Math.ceil(100*e/n/5)-10)*r},t.applyMask=function(t,e){const n=e.size;for(let o=0;o<n;o++)for(let r=0;r<n;r++)e.isReserved(r,o)||e.xor(r,o,i(t,r,o))},t.getBestMask=function(e,n){const o=Object.keys(t.Patterns).length;let r=0,i=1/0;for(let s=0;s<o;s++){n(s),t.applyMask(s,e);const o=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),o<i&&(i=o,r=s)}return r}}(V)),V),a=G(),l=function(){if(et)return tt;et=1;const t=rt();function e(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(e){this.degree=e,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const o=t.mod(n,this.genPoly),r=this.degree-o.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(o,r),t}return o},tt=e}(),c=mt(),d=function(){if(bt)return xt;bt=1;const t=N(),e=t.getBCHDigit(1335);return xt.getEncodedBits=function(n,o){const r=n.bit<<3|o;let i=r<<10;for(;t.getBCHDigit(i)-e>=0;)i^=1335<<t.getBCHDigit(i)-e;return 21522^(r<<10|i)},xt}(),u=gt(),h=Dt();function p(t,e,n){const o=t.size,r=d.getEncodedBits(e,n);let i,s;for(i=0;i<15;i++)s=1==(r>>i&1),i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(o-15+i,8,s,!0),i<8?t.set(8,o-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(o-8,8,1,!0)}function f(e,o,r){const i=new n;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),u.getCharCountIndicator(t.mode,e)),t.write(i)});const s=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,o));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(s-i.getLengthInBits())/8;for(let t=0;t<c;t++)i.put(t%2?17:236,8);return function(e,n,o){const r=t.getSymbolTotalCodewords(n),i=a.getTotalCodewordsCount(n,o),s=r-i,c=a.getBlocksCount(n,o),d=r%c,u=c-d,h=Math.floor(r/c),p=Math.floor(s/c),f=p+1,g=h-p,m=new l(g);let b=0;const x=new Array(c),v=new Array(c);let w=0;const y=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<u?p:f;x[t]=y.slice(b,b+e),v[t]=m.encode(x[t]),b+=e,w=Math.max(w,e)}const C=new Uint8Array(r);let k,E,z=0;for(k=0;k<w;k++)for(E=0;E<c;E++)k<x[E].length&&(C[z++]=x[E][k]);for(k=0;k<g;k++)for(E=0;E<c;E++)C[z++]=v[E][k];return C}(i,e,o)}function g(e,n,a,l){let d;if(Array.isArray(e))d=h.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=n;if(!t){const n=h.rawSplit(e);t=c.getBestVersionForData(n,a)}d=h.fromString(e,t||40)}}const u=c.getBestVersionForData(d,a);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else n=u;const g=f(n,a,d),m=t.getSymbolSize(n),b=new o(m);return function(t,e){const n=t.size,o=i.getPositions(e);for(let r=0;r<o.length;r++){const e=o[r][0],i=o[r][1];for(let o=-1;o<=7;o++)if(!(e+o<=-1||n<=e+o))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(o>=0&&o<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===o||6===o)||o>=2&&o<=4&&r>=2&&r<=4?t.set(e+o,i+r,!0,!0):t.set(e+o,i+r,!1,!0))}}(b,n),function(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2==0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}(b),function(t,e){const n=r.getPositions(e);for(let o=0;o<n.length;o++){const e=n[o][0],r=n[o][1];for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)-2===n||2===n||-2===o||2===o||0===n&&0===o?t.set(e+n,r+o,!0,!0):t.set(e+n,r+o,!1,!0)}}(b,n),p(b,a,0),n>=7&&function(t,e){const n=t.size,o=c.getEncodedBits(e);let r,i,s;for(let a=0;a<18;a++)r=Math.floor(a/3),i=a%3+n-8-3,s=1==(o>>a&1),t.set(r,i,s,!0),t.set(i,r,s,!0)}(b,n),function(t,e){const n=t.size;let o=-1,r=n-1,i=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!t.isReserved(r,a-n)){let o=!1;s<e.length&&(o=1==(e[s]>>>i&1)),t.set(r,a-n,o),i--,-1===i&&(s++,i=7)}if(r+=o,r<0||n<=r){r-=o,o=-o;break}}}(b,g),isNaN(l)&&(l=s.getBestMask(b,p.bind(null,b,a))),s.applyMask(l,b),p(b,a,l),{modules:b,version:n,errorCorrectionLevel:a,maskPattern:l,segments:d}}return D.create=function(n,o){if(void 0===n||""===n)throw new Error("No input text");let r,i,a=e.M;return void 0!==o&&(a=e.from(o.errorCorrectionLevel,e.M),r=c.from(o.version),i=s.from(o.maskPattern),o.toSJISFunc&&t.setToSJISFunction(o.toSJISFunc)),g(n,r,a,i)},D}var Nt,_t,Lt={},St={};function Ut(){return Nt||(Nt=1,function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,o=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:o,scale:o?4:r,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,n){const o=t.getScale(e,n);return Math.floor((e+2*n.margin)*o)},t.qrToImageData=function(e,n,o){const r=n.modules.size,i=n.modules.data,s=t.getScale(r,o),a=Math.floor((r+2*o.margin)*s),l=o.margin*s,c=[o.color.light,o.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let d=4*(t*a+n),u=o.color.light;if(t>=l&&n>=l&&t<a-l&&n<a-l){u=c[i[Math.floor((t-l)/s)*r+Math.floor((n-l)/s)]?1:0]}e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}}(St)),St}function jt(){return _t||(_t=1,function(t){const e=Ut();t.render=function(t,n,o){let r=o,i=n;void 0!==r||n&&n.getContext||(r=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(C){throw new Error("You need to specify a canvas element")}}()),r=e.getOptions(r);const s=e.getImageWidth(t.modules.size,r),a=i.getContext("2d"),l=a.createImageData(s,s);return e.qrToImageData(l.data,t,r),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(a,i,s),a.putImageData(l,0,0),i},t.renderToDataURL=function(e,n,o){let r=o;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});const i=t.render(e,n,r),s=r.type||"image/png",a=r.rendererOpts||{};return i.toDataURL(s,a.quality)}}(Lt)),Lt}var $t,Ot,Ht={};function qt(){if($t)return Ht;$t=1;const t=Ut();function e(t,e){const n=t.a/255,o=e+'="'+t.hex+'"';return n<1?o+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function n(t,e,n){let o=t+e;return void 0!==n&&(o+=" "+n),o}return Ht.render=function(o,r,i){const s=t.getOptions(r),a=o.modules.size,l=o.modules.data,c=a+2*s.margin,d=s.color.light.a?"<path "+e(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+e(s.color.dark,"stroke")+' d="'+function(t,e,o){let r="",i=0,s=!1,a=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),d=Math.floor(l/e);c||s||(s=!0),t[l]?(a++,l>0&&c>0&&t[l-1]||(r+=s?n("M",c+o,.5+d+o):n("m",i,0),i=0,s=!1),c+1<e&&t[l+1]||(r+=n("h",a),a=0)):i++}return r}(l,a,s.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+h+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof i&&i(null,p),p},Ht}var Yt=function(){if(Ot)return I;Ot=1;const t=B(),e=Ft(),n=jt(),o=qt();function r(n,o,r,i,s){const a=[].slice.call(arguments,1),l=a.length,c="function"==typeof a[l-1];if(!c&&!t())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(r=o,o=i=void 0):2!==l||o.getContext||(i=r,r=o,o=void 0),new Promise(function(t,s){try{const s=e.create(r,i);t(n(s,o,i))}catch(C){s(C)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(s=r,r=o,o=i=void 0):3===l&&(o.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=r,r=o,o=void 0));try{const t=e.create(r,i);s(null,n(t,o,i))}catch(C){s(C)}}return I.create=e.create,I.toCanvas=r.bind(null,n.render),I.toDataURL=r.bind(null,n.renderToDataURL),I.toString=r.bind(null,function(t,e,n){return o.render(t,n)}),I}();var Jt=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,Vt=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Kt(e,n):e,s=t.length-1;s>=0;s--)(r=t[s])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Jt(e,n,i),i};let Zt=class extends t{updated(){const{originId:t,destinationId:e,generalConfig:n}=this.sdkData??{};if((t!==this.lastOriginId||e!==this.lastDestinationId)&&t&&e&&n){this.lastOriginId=t,this.lastDestinationId=e;const{baseUrl:o}=n,r=`${o}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,i={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};Yt.toDataURL(r,i).then(t=>{const e=this.shadowRoot?.getElementById("qr");e&&e instanceof HTMLImageElement&&(e.src=t)})}}render(){const{cameraInitialized:t}=this.sdkData??{};return e`
152
+ <div class=${C({card:!0,hidden:!t})}>
153
+ <div class="modal-content">
154
+ <div class="pin-container">
155
+ <span .innerHTML=${'<svg width="63" height="63" viewBox="0 0 63 63" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_15_10760)">\n<path d="M32.8125 55.125H21C19.6076 55.125 18.2723 54.5719 17.2877 53.5873C16.3031 52.6027 15.75 51.2674 15.75 49.875V13.125C15.75 11.7326 16.3031 10.3973 17.2877 9.41269C18.2723 8.42812 19.6076 7.875 21 7.875H42C43.3924 7.875 44.7277 8.42812 45.7123 9.41269C46.6969 10.3973 47.25 11.7326 47.25 13.125V28.875" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M28.8758 10.4992H34.1258" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M55.4418 52.8193C56.5434 51.7181 57.2937 50.3149 57.5977 48.7872C57.9018 47.2595 57.746 45.676 57.15 44.2369C56.554 42.7978 55.5447 41.5678 54.2496 40.7023C52.9545 39.8369 51.4318 39.375 49.8742 39.375C48.3166 39.375 46.7939 39.8369 45.4988 40.7023C44.2038 41.5678 43.1944 42.7978 42.5984 44.2369C42.0025 45.676 41.8466 47.2595 42.1507 48.7872C42.4548 50.3149 43.205 51.7181 44.3066 52.8193C45.4038 53.9192 47.2597 55.5624 49.8742 57.7517C52.6331 55.4154 54.4916 53.7722 55.4418 52.8193Z" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M49.8742 47.25V47.2757" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M31.5 44.6258V44.6515" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n</g>\n<defs>\n<clipPath id="clip0_15_10760">\n<rect width="63" height="63" fill="white"/>\n</clipPath>\n</defs>\n</svg>\n'}></span>
156
+ </div>
157
+ <div class="qr-text">
158
+ <span>Continúa la ruta en tu celular, escaneando el código QR</span>
159
+ </div>
160
+ <div class="qr-code qr-container">
161
+ <img id="qr" src="" alt="QR Code" />
162
+ </div>
163
+ </div>
164
+ </div>
165
+ `}};Zt.styles=[n(":host{display:block;height:100%;width:100%;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.card{margin-top:15px;background:#11032b;color:#fff;border-radius:24px;z-index:10;width:29.79vw;min-width:415px}.card.hidden{display:none}.modal-content{display:flex;flex-direction:row;align-items:center;gap:16px;padding:16px}.pin-container{display:flex;align-items:center;gap:8px}.qr-text{margin:0;font-size:1rem;font-weight:600;font-family:Poppins}.qr-code{display:flex;justify-content:center;align-items:center}.qr-code img{height:auto}.qr-container{background:#fff;padding:4px}")],Vt([p({context:f,subscribe:!0})],Zt.prototype,"sdkData",2),Zt=Vt([r("qr-modal")],Zt);const Qt=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get QRModal(){return Zt}},Symbol.toStringTag,{value:"Module"}));var Gt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,Wt=(t,e,n,o)=>{for(var r,i=o>1?void 0:o?Xt(e,n):e,s=t.length-1;s>=0;s--)(r=t[s])&&(i=(o?r(e,n,i):r(i))||i);return o&&i&&Gt(e,n,i),i};let te=class extends t{constructor(){super(),this.assets=null,this._loadAssets()}async _loadAssets(){this.assets=await(async()=>{const[t,e,n,o,r,i]=await Promise.all([import("./accessibility-D3Vyfstu.js"),import("./back_arrow-B3RltzaY.js"),import("./icon-destination-point-DEI58b8w.js"),import("./icon-origin-point-GS06gE2l.js"),import("./repeat_icon-DN4_p9eh.js"),import("./walking-BggsSG4g.js")]);return{accessibilityIcon:t.default,backIcon:e.default,destinationPoint:n.default,originPoint:o.default,repeatIcon:r.default,walkingIcon:i.default}})(),this.requestUpdate()}handleBack(){this.dispatchEvent(new CustomEvent("back",{detail:{},bubbles:!0,composed:!0}))}handleAccessibility(){this.dispatchEvent(new CustomEvent("accessibilityChange",{detail:!this.sdkData?.accessibleRoute,bubbles:!0,composed:!0}))}handleRepeatRoute(){this.dispatchEvent(new CustomEvent("repeatRoute",{detail:!0,bubbles:!0,composed:!0}))}handleGenerateRoute(){this.dispatchEvent(new CustomEvent("generateRoute",{detail:{accessible:!!this.sdkData?.accessibleRoute},bubbles:!0,composed:!0}))}render(){if(!this.sdkData)return e``;const{destination:t,accessibleRoute:n,parentPlace:o,origin:r,route:i,isRouteAnimating:s}=this.sdkData,a=n?this.assets?.accessibilityIcon:this.assets?.walkingIcon,l=t?.title??"",c=o?.innerFloors??[],d=(r&&"function"==typeof r.inFloor?r.inFloor(c):void 0)?.name??"",u=(t&&"function"==typeof t.inFloor?t.inFloor(c):void 0)?.name??"",h=s??!1;let p="";return i&&i.legs&&i.legs.length>0&&i.legs[0].distance&&(p=`• ${i.legs[0].distance.toFixed(0)} mts`),e`
166
+ <div class="route-panel">
167
+ <div class="flex flex-col h-full">
168
+ <div class="back-panel" @click=${this.handleBack}>
169
+ <div class="back-content">
170
+ <span .innerHTML=${this.assets?.backIcon}></span>
171
+ <span class="back-text">Volver</span>
172
+ </div>
173
+ </div>
174
+
175
+ <div class="route-modal">
176
+ <div class="entrance-name d-flex align-items-center">
177
+ <div class="icon_switcher_user_type">
178
+ <span .innerHTML=${a}></span>
179
+ </div>
180
+ <span class="justify-content-center place-name"> ${l} </span>
181
+ ${i?e`
182
+ <button class="repeat-route-btn" @click=${this.handleRepeatRoute} ?disabled=${h}>
183
+ <span .innerHTML=${this.assets?.repeatIcon}></span>
184
+ <span>Repetir ruta</span>
185
+ </button>
186
+ `:""}
187
+ </div>
188
+ <div class="floor-specs">
189
+ <span class="floor-name">${u}</span>
190
+ <span class="route-distance">${p}</span>
191
+ </div>
192
+ <div class="d-flex flex-wrap container-controls">
193
+ <div class="flex-fill route-input-wrapper">
194
+ <div class="c-route-input c-route-input-from">
195
+ <div class="c-route-input-icon">
196
+ <img src=${this.assets?.originPoint} alt="" class="icon-point" />
197
+ </div>
198
+ Desde mi ubicación
199
+ <span>${d}</span>
200
+ </div>
201
+ <div class="c-route-input" @click=${this.handleBack}>
202
+ <div class="c-route-input-icon">
203
+ <img src=${this.assets?.destinationPoint} alt="" class="icon-point" />
204
+ </div>
205
+ ${l}
206
+ <span>${u}</span>
207
+ </div>
208
+ </div>
209
+ <div
210
+ class="accessibility-switch ${this.sdkData?.accessibleRoute?"accessible":""}"
211
+ @click=${this.handleAccessibility}
212
+ >
213
+ <div class="accessibility-switch-icon ${this.sdkData?.accessibleRoute?"":"active"}">
214
+ <span .innerHTML=${this.assets?.walkingIcon}></span>
215
+ </div>
216
+ <div class="accessibility-switch-icon ${this.sdkData?.accessibleRoute?"active":""}">
217
+ <span .innerHTML=${this.assets?.accessibilityIcon}></span>
218
+ </div>
219
+ </div>
220
+ </div>
221
+
222
+ ${i?"":e`
223
+ <div class="generate-route-container d-flex justify-content-center align-items-center mt-3">
224
+ <button class="generate-route-btn" @click=${this.handleGenerateRoute}>
225
+ <span> Generar ruta</span>
226
+ </button>
227
+ </div>
228
+ `}
229
+ </div>
230
+ </div>
231
+ </div>
232
+ <qr-modal></qr-modal>
233
+ `}};te.styles=[n(":host{position:absolute;top:0;left:0;padding:1rem;z-index:10;font-family:Poppins!important;user-select:none}svg{vertical-align:middle}.back-panel{background-color:#11032b;color:#fff;margin-bottom:5px;padding-left:1.2rem;align-items:center;height:55px;position:relative}.back-content{margin:0;position:relative;top:50%;transform:translateY(-50%);font-size:22px;color:#fff;display:flex;align-items:center;gap:8px;cursor:pointer}.route-panel{width:29.79vw;min-width:415px;max-height:75vh;overflow-y:auto;overflow-x:hidden;border-radius:24px;background:#fff;box-shadow:0 0 24px #00000026}.back-text{font-size:24px;font-weight:600}.back-content img{vertical-align:middle}.route-modal{padding:19px 13px 22px 32px}.icon_switcher_user_type{position:relative;color:#000}.d-flex{display:flex!important}.flex-fill{flex:1 1 auto!important}.place-name{font-weight:700;font-size:32px;line-height:1;letter-spacing:-1.6px;color:#333;margin-left:2px}.repeat-route-btn{display:flex;gap:10px;justify-content:center;align-items:center;text-align:center;background-color:#fff;border:2px solid #000000;border-radius:999px;margin-left:auto;margin-right:0;padding:12px 20px;font-size:20px;font-weight:700;line-height:20px;letter-spacing:-1px;color:#000;transition:background-color .3s ease,color .3s ease;cursor:pointer}.repeat-route-btn[disabled]{color:gray;border-color:gray;cursor:not-allowed;pointer-events:none}.floor-name{font-size:1rem;color:#427553}.floor-specs{font-family:Poppins;font-weight:600;line-height:14px;size:18px}.route-distance{color:#666}.container-controls{margin-top:16px;align-items:end;gap:11px}.c-route-input{color:#000;display:flex;padding:15px;font-size:16px;font-style:normal;font-weight:600;line-height:16px;letter-spacing:-.8px;align-items:center;gap:9px;border-radius:30px;background:#fff;box-shadow:0 0 10px #0000001a;position:relative;margin-top:12px}.c-route-input .c-route-input-icon svg{width:22px;height:22px}.c-route-input-from{margin-top:0}.c-route-input-from:after{content:\"\";position:absolute;bottom:-50%;left:24px;width:3.998px;height:34.5px;z-index:1;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='38' viewBox='0 0 4 38' fill='none'%3E%3Cpath d='M-0.00028944 18.9386C-0.00028944 17.8347 0.894666 16.9397 1.99864 16.9397C3.10259 16.9397 3.99756 17.8347 3.99756 18.9386C3.99756 20.0426 3.10259 20.9375 1.99864 20.9375C0.894666 20.9375 -0.00028944 20.0426 -0.00028944 18.9386ZM-0.00028944 27.2198C-0.00028944 26.1159 0.894666 25.2209 1.99864 25.2209C3.10259 25.2209 3.99756 26.1159 3.99756 27.2198C3.99756 28.3238 3.10259 29.2188 1.99864 29.2188C0.894666 29.2188 -0.00028944 28.3238 -0.00028944 27.2198ZM-0.00028944 35.5011C-0.00028944 34.3971 0.894666 33.5021 1.99864 33.5021C3.10259 33.5021 3.99756 34.3971 3.99756 35.5011C3.99756 36.605 3.10259 37.5 1.99864 37.5C0.894666 37.5 -0.00028944 36.605 -0.00028944 35.5011Z' fill='%23D0D0D0'/%3E%3Cpath d='M1.99864 8.49999C0.894666 8.49999 -0.00028944 9.39496 -0.00028944 10.4989C-0.00028944 11.6029 0.894666 12.4978 1.99864 12.4978C3.10259 12.4978 3.99756 11.6029 3.99756 10.4989C3.99756 9.39496 3.10259 8.49999 1.99864 8.49999Z' fill='%23D0D0D0'/%3E%3Cpath d='M1.99864 0C0.894666 0 -0.00028944 0.894973 -0.00028944 1.99892C-0.00028944 3.10289 0.894666 3.99784 1.99864 3.99784C3.10259 3.99784 3.99756 3.10289 3.99756 1.99892C3.99756 0.894973 3.10259 0 1.99864 0Z' fill='%23D0D0D0'/%3E%3C/svg%3E\")}.c-route-input span{padding:0 6px;border-radius:15px;color:#454545;background:#f2f2f2;font-size:10px;font-style:normal;font-weight:600;line-height:14px;letter-spacing:-.5px}.accessibility-switch{display:flex;align-items:center;justify-content:center;min-width:100px;height:50px;border-radius:48px;background-color:#fff;box-shadow:0 0 15px #0003;position:relative}.accessibility-switch:before,.accessibility-switch:after{content:\"\";border-radius:50%;width:50%;height:100%;background:#000;position:absolute;bottom:0;left:0;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0;transition:transform .5s ease}.accessibility-switch:after{background:#000;clip-path:circle(22px);z-index:1}.accessibility-switch.accessible:before,.accessibility-switch.accessible:after{transform:translate(100%)}.accessibility-switch-icon{width:50px;height:100%;display:grid;place-items:center;cursor:pointer;z-index:2;transition:color .5s ease;color:#000}.accessibility-switch-icon.active{color:#fff}.generate-route-btn{border-style:solid;width:100%;border-radius:30px;height:58px;background-color:#11032b;cursor:pointer}.generate-route-btn span{font-family:Poppins;font-size:1rem;line-height:16px;font-weight:600;text-align:center;color:#fff}.generate-route-container{width:100%}.mt-3{margin-top:1rem!important}.align-items-center{align-items:center!important}.justify-content-center{justify-content:center!important}")],Wt([p({context:f,subscribe:!0})],te.prototype,"sdkData",2),te=Wt([r("route-options")],te);const ee=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get RouteOptions(){return te}},Symbol.toStringTag,{value:"Module"}));export{E as B,v as c,C as e,A as f,h as i,Qt as q,ee as r,f as s};
234
+ //# sourceMappingURL=components-CNuu24gs.js.map
@@ -0,0 +1,2 @@
1
+ const C="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Environment'%3e%3cpath%20id='Vector'%20d='M15.8827%204.52335C15.5044%203.65124%2014.9591%202.86161%2014.2775%202.19902C13.5937%201.53045%2012.7875%200.99981%2011.903%200.636077C10.9829%200.254381%2010.0065%200.0615234%209.00007%200.0615234C7.9936%200.0615234%207.01726%200.254381%206.09717%200.634068C5.20721%201.0017%204.40967%201.52804%203.72261%202.19701C3.04143%202.85997%202.49619%203.64951%202.11748%204.52134C1.72574%205.42536%201.52686%206.38563%201.52686%207.37402C1.52686%208.79233%201.86636%2010.2046%202.53333%2011.5667C3.06971%2012.6615%203.81904%2013.7283%204.76324%2014.7428C6.37641%2016.4745%208.06793%2017.5332%208.54806%2017.8164C8.68435%2017.8969%208.83978%2017.9393%208.99806%2017.939C9.15476%2017.939%209.30944%2017.8988%209.44806%2017.8164C9.92819%2017.5332%2011.6197%2016.4745%2013.2329%2014.7428C14.1771%2013.7303%2014.9264%2012.6615%2015.4628%2011.5667C16.1338%2010.2066%2016.4733%208.79634%2016.4733%207.37603C16.4733%206.38764%2016.2744%205.42737%2015.8827%204.52335ZM9.00007%2016.3981C7.67619%2015.5564%202.97328%2012.2236%202.97328%207.37603C2.97328%205.81108%203.59806%204.34054%204.73311%203.23161C5.87217%202.12068%207.3869%201.50795%209.00007%201.50795C10.6132%201.50795%2012.128%202.12068%2013.267%203.23362C14.4021%204.34054%2015.0269%205.81108%2015.0269%207.37603C15.0269%2012.2236%2010.324%2015.5564%209.00007%2016.3981ZM9.00007%203.99902C7.04739%203.99902%205.46436%205.58206%205.46436%207.53474C5.46436%209.48742%207.04739%2011.0705%209.00007%2011.0705C10.9527%2011.0705%2012.5358%209.48742%2012.5358%207.53474C12.5358%205.58206%2010.9527%203.99902%209.00007%203.99902ZM10.5911%209.12581C10.3825%209.33509%2010.1345%209.50105%209.8614%209.61413C9.58834%209.72722%209.29562%209.7852%209.00007%209.78474C8.3994%209.78474%207.83489%209.54969%207.409%209.12581C7.19972%208.91713%207.03376%208.66912%206.92067%208.39606C6.80759%208.12301%206.74961%207.83029%206.75007%207.53474C6.75007%206.93407%206.98511%206.36956%207.409%205.94367C7.83489%205.51777%208.3994%205.28474%209.00007%205.28474C9.60074%205.28474%2010.1652%205.51777%2010.5911%205.94367C11.017%206.36956%2011.2501%206.93407%2011.2501%207.53474C11.2501%208.13541%2011.017%208.69992%2010.5911%209.12581Z'%20fill='black'%20fill-opacity='0.85'/%3e%3c/g%3e%3c/svg%3e";export{C as default};
2
+ //# sourceMappingURL=icon-destination-point-DEI58b8w.js.map
@@ -0,0 +1,2 @@
1
+ const e="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='11'%20cy='11'%20r='11'%20fill='%23E7F1F7'/%3e%3ccircle%20cx='11.0002'%20cy='10.9999'%20r='6.61538'%20fill='%23396FE5'%20stroke='white'%20stroke-width='2'/%3e%3c/svg%3e";export{e as default};
2
+ //# sourceMappingURL=icon-origin-point-GS06gE2l.js.map
@@ -0,0 +1,77 @@
1
+ import{i as e,n as t,a as o,A as r,l as a,b as i,p as s,R as l,x as n,t as c}from"./route-view-totems-B-1OEdkb.js";import{S as p}from"./utils-DslQaI0J.js";var d,h,m,v,f,w,y,x,u,g=Object.defineProperty,b=Object.getOwnPropertyDescriptor,z=e=>{throw TypeError(e)},S=(e,t,o,r)=>{for(var a,i=r>1?void 0:r?b(t,o):t,s=e.length-1;s>=0;s--)(a=e[s])&&(i=(r?a(t,o,i):a(i))||i);return r&&i&&g(t,o,i),i},I=(e,t,o)=>t.has(e)||z("Cannot "+o),k=(e,t,o)=>(I(e,t,"read from private field"),o?o.call(e):t.get(e)),P=(e,t,o)=>t.has(e)?z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),C=(e,t,o,r)=>(I(e,t,"write to private field"),t.set(e,o),o);let _=class extends o{constructor(){super(...arguments),P(this,d,""),P(this,h,""),P(this,m,"es"),P(this,v,""),P(this,f,!1),P(this,w,"normal"),P(this,y,!0),P(this,x,"top-left"),P(this,u,!1),this._swPath="/mvx-tiles-sw.js",this._swScope="/",this.sdkController=new p(this),this.analyticsController=r.getInstance(),this.currentFloorId=""}get apiKey(){return k(this,d)}set apiKey(e){C(this,d,e)}get parentPlaceId(){return k(this,h)}set parentPlaceId(e){C(this,h,e)}get locale(){return k(this,m)}set locale(e){C(this,m,e)}get placeId(){return k(this,v)}set placeId(e){C(this,v,e)}get compactMode(){return k(this,f)}set compactMode(e){C(this,f,e)}get zoomButtonSize(){return k(this,w)}set zoomButtonSize(e){C(this,w,e)}get showFloorSelector(){return k(this,y)}set showFloorSelector(e){C(this,y,e)}get floorSelectorPosition(){return k(this,x)}set floorSelectorPosition(e){C(this,x,e)}get floorSelectorDisabled(){return k(this,u)}set floorSelectorDisabled(e){C(this,u,e)}async _loadComponents(){await Promise.all([a(),i()])}_preloadApiRequests(){const e=this.apiKey||this.getAttribute("apiKey")||"",t=this.parentPlaceId||this.getAttribute("parentPlaceId")||"",o=this.locale||this.getAttribute("locale")||"es";if(!e||!t)return;const r=e=>{const t=`mvx-preload:${e}`;if(document.head.querySelector(`link[data-mvx-preload="${t}"]`))return;const o=document.createElement("link");o.rel="preload",o.as="fetch",o.href=e,o.crossOrigin="anonymous",o.setAttribute("fetchpriority","high"),o.setAttribute("data-mvx-preload",t),document.head.appendChild(o)},a="https://api.mapvx.com/sdk/",i=encodeURIComponent;r(`${a}v3/place?token=${i(e)}&place_id=${i(t)}&lang=${i(o)}`),r(`https://api.mapvx.com/api/configuration?token=${i(e)}&lang=${i(o)}&place_id=${i(t)}`),this.placeId&&r(`${a}v3/place?token=${i(e)}&place_id=${i(this.placeId)}&lang=${i(o)}`)}async _registerTileCacheSW(){if("serviceWorker"in navigator)try{await navigator.serviceWorker.register(this._swPath,{scope:this._swScope})}catch{}}async firstUpdated(){this._registerTileCacheSW();const e=this._loadComponents(),t=s();await Promise.all([e,t]),this.analyticsController.initialize("map-view-with-modal"),l.initialize("map-view-with-modal")}_mapReadyHandler(){this.sdkController.setMapReady(!0),this.analyticsController.trackEvent("map_ready",this.baseParams())}_cameraInitializedHandler(){this.sdkController.setCameraInitialized(!0),this.analyticsController.trackEvent("camera_initialized",this.baseParams())}_updateFloorHandler(e){const t=e.detail;if(this.currentFloorId===t)return;this.currentFloorId=t,this.sdkController.setFloor(t);const o=this.baseParams();o.floor_id=t,this.analyticsController.trackEvent("floor_change",o)}baseParams(){return{apiKey:this.apiKey,locale:this.locale,parentPlaceId:this.parentPlaceId,placeId:this.placeId,host:window.location.host,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer,userAgent:navigator.userAgent,screenWidth:window.innerWidth}}getFloorSelectorPositionStyles(){const e={"top-left":"top: 20px; left: 20px;","top-center":"top: 20px; left: 50%; transform: translateX(-50%);","top-right":"top: 20px; right: 20px;","center-left":"top: 50%; left: 20px; transform: translateY(-50%);","center-right":"top: 50%; right: 20px; transform: translateY(-50%);","bottom-left":"bottom: 20px; left: 20px;","bottom-center":"bottom: 20px; left: 50%; transform: translateX(-50%);","bottom-right":"bottom: 20px; right: 20px;"};return e[this.floorSelectorPosition]||e["top-left"]}updated(e){this.apiKey&&this.locale&&this.parentPlaceId&&(e.has("apiKey")||e.has("locale")||e.has("parentPlaceId"))&&(this._preloadApiRequests(),this.sdkController.prewarm(this.apiKey,this.locale,this.parentPlaceId,{destinationId:this.placeId}),this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId)),this.placeId&&e.has("placeId")&&this.sdkController.setOriginAndDestination("",this.placeId)}render(){return n`
2
+ <div class="route-container" style="height: 100%; width: 100%; position: relative;">
3
+ <custom-map
4
+ class="map-container"
5
+ ?compact-mode=${this.compactMode}
6
+ zoom-size=${this.zoomButtonSize}
7
+ style="
8
+ /* Forward theme to custom-map */
9
+ --zoom-border-color: var(--mvx-zoom-border-color, var(--mvx-border-color));
10
+ --zoom-border-width: var(--mvx-zoom-border-width, var(--mvx-border-width));
11
+ --zoom-shadow: var(--mvx-zoom-shadow, var(--mvx-shadow));
12
+ --zoom-divider-color: var(--mvx-zoom-divider-color, var(--mvx-zoom-border-color, var(--mvx-border-color)));
13
+ --zoom-divider-width: var(--mvx-zoom-divider-width, var(--mvx-zoom-border-width, var(--mvx-border-width)));
14
+ --zoom-icon-size: var(--mvx-zoom-icon-size, 18px);
15
+ --zoom-icon-color: var(--mvx-zoom-icon-color, var(--mvx-primary-color));
16
+ "
17
+ @mapReady=${this._mapReadyHandler}
18
+ @cameraInitialized=${this._cameraInitializedHandler}
19
+ @floorChange=${this._updateFloorHandler}
20
+ ></custom-map>
21
+
22
+ ${this.showFloorSelector?n`
23
+ <!-- Compact floor selector -->
24
+ <div style="position: absolute; ${this.getFloorSelectorPositionStyles()} z-index: 1000;">
25
+ <compact-floor-selector
26
+ @floorChange=${this._updateFloorHandler}
27
+ ?disabled=${this.floorSelectorDisabled}
28
+ style="
29
+ /* Forward theme to floor selector */
30
+ --floor-selector-surface: var(--mvx-surface-color);
31
+ --floor-selector-color: var(--mvx-on-surface-color);
32
+ --floor-selector-border-color: var(--mvx-floor-selector-border-color, var(--mvx-border-color));
33
+ --floor-selector-border-width: var(--mvx-floor-selector-border-width, var(--mvx-border-width));
34
+ --floor-selector-radius: var(--mvx-radius);
35
+ --floor-selector-shadow: var(--mvx-floor-selector-shadow, var(--mvx-shadow));
36
+ --floor-selector-hover-accent: var(--mvx-primary-color);
37
+ --floor-selector-active-bg: #f3e7ff;
38
+ --floor-selector-font-family: var(--mvx-font-family);
39
+ --floor-selector-font-size: var(--mvx-floor-selector-font-size, 14px);
40
+ --floor-selector-font-weight: var(--mvx-floor-selector-font-weight, 500);
41
+ "
42
+ ></compact-floor-selector>
43
+ </div>
44
+ `:""}
45
+ </div>
46
+ `}};d=/* @__PURE__ */new WeakMap,h=/* @__PURE__ */new WeakMap,m=/* @__PURE__ */new WeakMap,v=/* @__PURE__ */new WeakMap,f=/* @__PURE__ */new WeakMap,w=/* @__PURE__ */new WeakMap,y=/* @__PURE__ */new WeakMap,x=/* @__PURE__ */new WeakMap,u=/* @__PURE__ */new WeakMap,_.styles=[e`
47
+ :host {
48
+ display: block;
49
+ height: 100%;
50
+ width: 100%;
51
+
52
+ /* THEME: Base colors */
53
+ --mvx-primary-color: #251660;
54
+ --mvx-surface-color: #ffffff;
55
+ --mvx-on-surface-color: #251660;
56
+
57
+ /* THEME: Border and elevation */
58
+ --mvx-border-color: var(--mvx-primary-color);
59
+ --mvx-border-width: 1px;
60
+ --mvx-radius: 8px;
61
+ --mvx-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
62
+
63
+ /* THEME: Typography */
64
+ --mvx-font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
65
+ }
66
+ `,e`
67
+ .map-container {
68
+ height: 100%;
69
+ width: 100%;
70
+ }
71
+ `,e`
72
+ :host([compact-mode]) .map-container {
73
+ border-radius: 12px;
74
+ overflow: hidden;
75
+ }
76
+ `],S([t({type:String})],_.prototype,"apiKey",1),S([t({type:String})],_.prototype,"parentPlaceId",1),S([t({type:String})],_.prototype,"locale",1),S([t({type:String})],_.prototype,"placeId",1),S([t({type:Boolean,attribute:"compact-mode",reflect:!0})],_.prototype,"compactMode",1),S([t({type:String,attribute:"zoom-size",reflect:!0})],_.prototype,"zoomButtonSize",1),S([t({type:Boolean})],_.prototype,"showFloorSelector",1),S([t({type:String})],_.prototype,"floorSelectorPosition",1),S([t({type:Boolean})],_.prototype,"floorSelectorDisabled",1),_=S([c("map-view-with-modal")],_);export{_ as M};
77
+ //# sourceMappingURL=map-view-with-modal-JX4bFkkK.js.map
@@ -0,0 +1,2 @@
1
+ const C='<svg width="21" height="20" viewBox="0 0 21 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.36016 17.7535C6.43073 18.1345 6.36016 18.4258 6.17199 18.6051C5.98381 18.7843 5.6545 18.8292 5.27816 18.7395L0.691401 17.4622C-0.0848194 17.2605 -0.22595 16.6555 0.362095 16.1401L1.60875 15.042C1.58523 15.0196 1.58523 14.9972 1.56171 14.9748C-0.978649 10.8964 -0.0848196 5.80955 3.39641 2.73953C3.91389 2.26894 4.50194 1.86558 5.13702 1.48462C6.71299 0.588264 8.43008 0.140085 10.1472 0.117676V1.59667C8.71234 1.64149 7.25399 2.02244 5.93677 2.76193C5.39576 3.07566 4.90181 3.4342 4.45489 3.81516C1.53819 6.39219 0.761966 10.6051 2.76132 14.0112L4.0315 12.8908C4.61954 12.3754 5.23111 12.5547 5.39576 13.2941L6.36016 17.7535ZM15.6278 6.70591C15.7924 7.44541 16.404 7.62468 16.992 7.10927L18.2622 5.98883C20.2616 9.39499 19.4853 13.6079 16.5922 16.1849C16.1452 16.5883 15.6513 16.9244 15.1103 17.2381C13.7931 18 12.3347 18.3586 10.8999 18.4034V19.8824C12.617 19.8376 14.3341 19.3894 15.91 18.5154C16.5451 18.1569 17.1332 17.7311 17.6506 17.2605C21.1083 14.1905 21.9786 9.10367 19.4383 5.04765C19.4148 5.02524 19.4148 5.00283 19.3913 4.98042L20.6379 3.88238C21.226 3.36698 21.0848 2.76193 20.3086 2.56025L15.7218 1.30535C15.3455 1.19331 15.0162 1.26053 14.828 1.4398C14.6398 1.61908 14.5458 1.91039 14.6398 2.29135L15.6278 6.70591Z" fill="currentColor"/>\n</svg>\n';export{C as default};
2
+ //# sourceMappingURL=repeat_icon-DN4_p9eh.js.map