@mapvx/web-components 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/KTX2Loader-CNSoekFo.cjs +1 -5
- package/dist/cjs/{base-floor-selector-CbSa9Qw2.cjs → base-floor-selector-6B_D7uUw.cjs} +2 -2
- package/dist/cjs/{class-map-DQkA5L7H.cjs → class-map-CfJw8pY6.cjs} +2 -2
- package/dist/cjs/{compact-floor-selector-C_LgJzzv.cjs → compact-floor-selector-CPK6sXBk.cjs} +2 -2
- package/dist/cjs/{consume-D1MFwxfA.cjs → consume-B4K_oiFc.cjs} +2 -2
- package/dist/cjs/{custom-map-CsX48Rua.cjs → custom-map-CfhrBuF7.cjs} +3 -3
- package/dist/cjs/floor-selector-rW48Tktb.cjs +15 -0
- package/dist/cjs/{geojson-layer-BWursA41.cjs → geojson-layer-wtQbiowp.cjs} +2 -2
- package/dist/cjs/{index-OWjqDH0W.cjs → index-BAYbrXBp.cjs} +2 -2
- package/dist/cjs/{index-D4uHh_zx.cjs → index-DAac9HVL.cjs} +2 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/map-view-with-modal.cjs +1 -1
- package/dist/cjs/{qr-modal-DAjokbee.cjs → qr-modal-fSPvpyzj.cjs} +2 -2
- package/dist/cjs/{route-options-BW6OJ8pz.cjs → route-options-BjMH6A43.cjs} +2 -2
- package/dist/cjs/route-view-totems.cjs +1 -5
- package/dist/cjs/{sdk-controller-BcvviQ36.cjs → sdk-controller-5LmYQQhJ.cjs} +3 -3
- package/dist/es/assets/{compact-floor-selector-DM0rj7tE.js → compact-floor-selector-WL6DewCc.js} +2 -2
- package/dist/es/assets/{components-iq1KFC9T.js → components-BfTs1Lia.js} +9 -9
- package/dist/es/assets/{geojson-layer-BXJPA2B2.js → geojson-layer-CeMb7DTQ.js} +2 -2
- package/dist/es/assets/globe-viewport-CFdegSgy.js +4 -0
- package/dist/es/assets/{index-BV0wWAyE.js → index-D4Krpv5a.js} +2 -2
- package/dist/es/assets/{index-Bp1QRPSH.js → index-wdE7uK4l.js} +2 -6
- package/dist/es/assets/{map-view-with-modal-KAG4NGbk.js → map-view-with-modal-JYZY7d5R.js} +2 -2
- package/dist/es/assets/{route-view-totems-BHOMtYE0.js → route-view-totems-Dvggb-ZM.js} +4 -4
- package/dist/es/assets/{utils-BMph9fmy.js → utils-B4ksZYyJ.js} +3 -3
- package/dist/es/index.js +1 -1
- package/dist/es/route-view-totems.js +1 -1
- package/dist/iife/map-view-with-modal.js +2 -2
- package/dist/iife/route-view-totems.js +20 -20
- package/package.json +1 -1
- package/dist/cjs/floor-selector-DiJexma4.cjs +0 -15
package/dist/es/assets/{compact-floor-selector-DM0rj7tE.js → compact-floor-selector-WL6DewCc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as o,i as r,n as e,d as t}from"./route-view-totems-
|
|
1
|
+
import{c as o,i as r,n as e,d as t}from"./route-view-totems-Dvggb-ZM.js";import{B as s,e as l}from"./components-BfTs1Lia.js";var i,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,d=o=>{throw TypeError(o)},c=(o,r,e,t)=>{for(var s,l=t>1?void 0:t?n(r,e):r,i=o.length-1;i>=0;i--)(s=o[i])&&(l=(t?s(r,e,l):s(l))||l);return t&&l&&a(r,e,l),l},f=(o,r,e)=>r.has(o)||d("Cannot "+e);let p=class extends s{constructor(){var o,r,e;super(...arguments),o=this,e=!1,(r=i).has(o)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(o):r.set(o,e),this.isOpen=!1,this._handleClickOutside=o=>{this.isOpen&&!this.shadowRoot?.contains(o.target)&&(this.isOpen=!1,this.requestUpdate())}}get disabled(){return f(o=this,r=i,"read from private field"),e?e.call(o):r.get(o);var o,r,e}set disabled(o){var r,e,t;t=o,f(r=this,e=i,"write to private field"),e.set(r,t)}_toggleDropdown(o){this.disabled||(o.stopPropagation(),this.isOpen=!this.isOpen,this.requestUpdate())}_selectFloor(o){this.disabled||(this.selectFloor(o),this.isOpen=!1,this.requestUpdate())}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutside)}render(){if(!this.sdkData)return o`<div>No data</div>`;const r=this.getFloors(),e=this.getCurrentFloor(),t=e?this.getFloorDisplayName(e):"Seleccionar piso";return o`
|
|
2
2
|
<div class="floor-dropdown">
|
|
3
3
|
<button
|
|
4
4
|
class=${l({"floor-button":!0,active:!!e,open:this.isOpen})}
|
|
@@ -173,4 +173,4 @@ import{c as o,i as r,n as e,d as t}from"./route-view-totems-BHOMtYE0.js";import{
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
`],c([e({type:Boolean})],p.prototype,"disabled",1),p=c([t("compact-floor-selector")],p);export{p as CompactFloorSelector};
|
|
176
|
-
//# sourceMappingURL=compact-floor-selector-
|
|
176
|
+
//# sourceMappingURL=compact-floor-selector-WL6DewCc.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as t,c as e,e as o,i,n,f as r,d as a,E as s,A as l}from"./route-view-totems-
|
|
1
|
+
import{a as t,c as e,e as o,i,n,f as r,d as a,E as s,A as l}from"./route-view-totems-Dvggb-ZM.js";import{R as d,M as c}from"./utils-B4ksZYyJ.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2021 Google LLC
|
|
@@ -30,7 +30,7 @@ let p=class{constructor(t,e,o,i){if(this.subscribe=!1,this.provided=!1,this.valu
|
|
|
30
30
|
* Copyright 2022 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
function m({context:t,subscribe:e}){return(o,i)=>{"object"==typeof i?i.addInitializer(function(){new p(this,{context:t,callback:t=>{o.set.call(this,t)},subscribe:e})}):o.constructor.addInitializer(o=>{new p(o,{context:t,callback:t=>{o[i]=t},subscribe:e})})}}function b(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const x="lazarillo-sdk",v="https://tiles.mapvx.com/",y="https://mapvx-glb-assets.s3.us-east-1.amazonaws.com/shared",w={enabled:!0,models:{globalOffset:{y:.7},lights:[{type:"directional",color:16777215,intensity:2,position:{x:50,y:100,z:80}},{type:"directional",color:16777215,intensity:1.5,position:{x:-50,y:80,z:-60}},{type:"ambient",color:16777215,intensity:1.5}],assets:[{id:"escalator",url:`${y}/escalator.glb`,defaultScale:1},{id:"escalator-up",url:`${y}/escalator_up.glb`,defaultScale:1},{id:"escalator-down",url:`${y}/escalator_down.glb`,defaultScale:1,defaultRotation:{yaw:180}}],placements:[{id:"esc-raw-0",assetId:"escalator-up",position:{lng:-70.60673112049699,lat:-33.417466557301466},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.966859}},{id:"esc-raw-1",assetId:"escalator-down",position:{lng:-70.6067050272429,lat:-33.41747523259775},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.776211}},{id:"esc-raw-2",assetId:"escalator-up",position:{lng:-70.60776310041547,lat:-33.41801002098207},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.860939}},{id:"esc-raw-3",assetId:"escalator-up",position:{lng:-70.60777282342315,lat:-33.41802219430518},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.28255}},{id:"esc-raw-4",assetId:"escalator-up",position:{lng:-70.60775756835938,lat:-33.418012959371026},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.960876}},{id:"esc-raw-5",assetId:"escalator-up",position:{lng:-70.60776226222515,lat:-33.41802793115885},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:33.424802}},{id:"esc-raw-6",assetId:"escalator-up",position:{lng:-70.60698911547661,lat:-33.41777271078596},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:33.120665}},{id:"esc-raw-7",assetId:"escalator-up",position:{lng:-70.60700537636876,lat:-33.41776361574833},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.727526}},{id:"esc-raw-8",assetId:"escalator-up",position:{lng:-70.60577105730772,lat:-33.41816141780029},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.697247}},{id:"esc-raw-9",assetId:"escalator-up",position:{lng:-70.60578631237149,lat:-33.41815274257297},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.837192}},{id:"esc-raw-10",assetId:"escalator-up",position:{lng:-70.60584850609303,lat:-33.41794327754214},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.554347}},{id:"esc-raw-11",assetId:"escalator-up",position:{lng:-70.60586342588067,lat:-33.41793544183311},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.988498}},{id:"esc-raw-12",assetId:"escalator-up",position:{lng:-70.60587817803025,lat:-33.41792760612319},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.786025}},{id:"esc-pb-0",assetId:"escalator-up",position:{lng:-70.60689389705658,lat:-33.41764873834475},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.58573}},{id:"esc-pb-1",assetId:"escalator-up",position:{lng:-70.60691267251968,lat:-33.41763978321808},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.58573}},{id:"esc-pb-2",assetId:"escalator-up",position:{lng:-70.60700118541718,lat:-33.417717580860256},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.828557}},{id:"esc-pb-3",assetId:"escalator-up",position:{lng:-70.60701996088028,lat:-33.417708066045456},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.412321}},{id:"esc-pb-4",assetId:"escalator-up",position:{lng:-70.60673095285892,lat:-33.4174668371505},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.790905}},{id:"esc-pb-5",assetId:"escalator-up",position:{lng:-70.60671485960484,lat:-33.417474672901996},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.790905}},{id:"esc-pb-6",assetId:"escalator-up",position:{lng:-70.60741692781448,lat:-33.417881011635586},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:33.69006}},{id:"esc-pb-7",assetId:"escalator-up",position:{lng:-70.6074296683073,lat:-33.4178681386758},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:33.111348}},{id:"esc-pb-8",assetId:"escalator-up",position:{lng:-70.60566879808903,lat:-33.41802709161594},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:33.407836}},{id:"esc-pb-9",assetId:"escalator-up",position:{lng:-70.60568355023861,lat:-33.41801981560711},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.855733}},{id:"esc-pb-10",assetId:"escalator-up",position:{lng:-70.60575060546398,lat:-33.41807970272136},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.541778}},{id:"esc-pb-11",assetId:"escalator-up",position:{lng:-70.60576602816582,lat:-33.41807186702446},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.927888}}]},customLayers:{elevatedLinesLayer:{dataUrl:v,binaryData:!1,defaultHeight:5,lineColor:"#cbcbcb",lineWidth:1.5,widthUnits:"pixels"},labelsLayer:{dataUrl:v,binaryData:!1,defaultHeight:5,size:16,color:"#91969b"},iconLayers:{spriteUrl:"https://lazarillo.app/internal/maps/vector-style/cenco-cl-pe-co-ar-3D/sprites_cencosud",storeLogosLayer:{dataUrl:v,binaryData:!1,defaultHeight:5,logoScale:{"logo-Maxi-K":.4,"logo-Ripley":2,"logo-Falabella":2,"logo-CasaIdeas":2,"logo-Sky Costanera":.6,"logo-Easy":1.4,"logo-Jumbo":2,"logo-Decathlon":1.4}},poiIconsLayer:{dataUrl:v,binaryData:!1,defaultHeight:5,size:2}}},hideLayers:["indoor-poi-logo","indoor-poi","indoor-transportation","indoor-transportation-poi","indoor-area_name","indoor-logo-tiendas-ancla","indoor-logo-tiendas-ancla-falabella","indoor-logo-tiendas-ancla-falabella-ALC","indoor-logo-tiendas-ancla-ripley","indoor-logo-tiendas-ancla-ripley-small","indoor-logo-tiendas-ancla-paris","indoor-logo-tiendas-ancla-paris-small","indoor-logo-tiendas-ancla-casaideas","indoor-logo-tiendas-ancla-casaideas-small","indoor-logo-tiendas-ancla-HM","indoor-logo-tiendas-ancla-decathlon","indoor-logo-tiendas-ancla-la-polar","indoor-logo-tiendas-ancla-tricot","indoor-logo-tiendas-ancla-fashions-park","indoor-logo-tiendas-ancla-zara","indoor-logo-tiendas-ancla-zara-small","indoor-logo-tiendas-ancla-maxi-k","indoor-logo-tiendas-ancla-cinemark","indoor-logo-tiendas-ancla-peru-colombia-argentina"]};var C,k,M,E,z,I,P,R,A,B,F,D,_=Object.defineProperty,L=Object.getOwnPropertyDescriptor,T=t=>{throw TypeError(t)},N=(t,e,o,i)=>{for(var n,r=i>1?void 0:i?L(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(i?n(e,o,r):n(r))||r);return i&&r&&_(e,o,r),r},O=(t,e,o)=>e.has(t)||T("Cannot "+o),S=(t,e,o)=>(O(t,e,"read from private field"),o?o.call(t):e.get(t)),j=(t,e,o)=>e.has(t)?T("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),$=(t,e,o,i)=>(O(t,e,"write to private field"),e.set(t,o),o);let U=class extends t{constructor(){super(),j(this,C,0),j(this,k,20.5),j(this,M,20),j(this,E,22.5),j(this,z,-1),j(this,I,-1),j(this,P,-1),j(this,R,-1),j(this,A,"auto"),j(this,B,""),j(this,F,"Cargando..."),j(this,D,!0),this.mapReady=!1,this._clearMapLock=!1,this._isCleared=!1,this.showLoadingOverlay=!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._zoomHandlerRef=null,this._zoomOutButtonRef=null,this._zoomOutButtonHandlerRef=null,this.routeAnimationController=new d(this,this.routeAnimationHandlers),this.markerController=new c(this)}get paddingLeft(){return S(this,C)}set paddingLeft(t){$(this,C,t)}get fitMaxZoom(){return S(this,k)}set fitMaxZoom(t){$(this,k,t)}get singlePointMaxZoom(){return S(this,M)}set singlePointMaxZoom(t){$(this,M,t)}get routeFitMaxZoom(){return S(this,E)}set routeFitMaxZoom(t){$(this,E,t)}get cameraPaddingTop(){return S(this,z)}set cameraPaddingTop(t){$(this,z,t)}get cameraPaddingRight(){return S(this,I)}set cameraPaddingRight(t){$(this,I,t)}get cameraPaddingBottom(){return S(this,P)}set cameraPaddingBottom(t){$(this,P,t)}get cameraPaddingLeft(){return S(this,R)}set cameraPaddingLeft(t){$(this,R,t)}get overlayPaddingMode(){return S(this,A)}set overlayPaddingMode(t){$(this,A,t)}get loadingIcon(){return S(this,B)}set loadingIcon(t){$(this,B,t)}get loadingText(){return S(this,F)}set loadingText(t){$(this,F,t)}get enable3D(){return S(this,D)}set enable3D(t){$(this,D,t)}async firstUpdated(){if(this.shadowRoot){const t=document.createElement("style");t.textContent=(await import("./styles-CsR9mihk.js")).default,this.shadowRoot.appendChild(t)}}disconnectedCallback(){super.disconnectedCallback();const t=this.lzMap?.map;t&&this._zoomHandlerRef&&(t.off("zoom",this._zoomHandlerRef),t.off("zoomend",this._zoomHandlerRef),this._zoomHandlerRef=null),this._zoomOutButtonRef&&this._zoomOutButtonHandlerRef&&(this._zoomOutButtonRef.removeEventListener("click",this._zoomOutButtonHandlerRef,!0),this._zoomOutButtonRef=null,this._zoomOutButtonHandlerRef=null)}_setupZoomListener(){const t=this.lzMap?.map;if(!t?.getZoom)return;const e=()=>{const e=t.getZoom();this.dispatchEvent(new CustomEvent("map-zoom",{detail:{zoom:e},bubbles:!0,composed:!0}))};this._zoomHandlerRef=e,t.on("zoom",e),t.on("zoomend",e),e()}_setupHalfStepZoomOut(){const t=this.shadowRoot?.querySelector(".maplibregl-ctrl-zoom-out"),e=this.lzMap?.map;if(!t||!e?.getZoom||!e?.setZoom)return;const o=e.setZoom.bind(e);this._zoomOutButtonRef&&this._zoomOutButtonHandlerRef&&this._zoomOutButtonRef.removeEventListener("click",this._zoomOutButtonHandlerRef,!0);const i=t=>{t.preventDefault(),t.stopImmediatePropagation();const i=e.getZoom(),n=e.getMinZoom?.()??0,r=Math.max(i-.6,n);e.easeTo?e.easeTo({zoom:r,duration:220,essential:!0}):o(r,{animate:!0})};this._zoomOutButtonRef=t,this._zoomOutButtonHandlerRef=i,t.addEventListener("click",i,!0)}async updated(){if(this.updateAttributes(),!this.sdkData?.sdk)return;const{sdk:t,parentPlace:e,locale:o,generalConfig:i,currentFloor:n,markers:r,route:a,isRouteAnimating:s,cameraInitialized:l,origin:d,destination:c,isLoading:u}=this.sdkData,p=c?.mapvxId,h=void 0!==this.previousDestinationId&&this.previousDestinationId!==p&&void 0!==p;let g=!1;if((h||u)&&(this.showLoadingOverlay=!0,h&&this.mapReady&&(g=!0,this.markerController.clearAllMarkers(),this.routeAnimationController.removeRoute(),this._isCleared=!1)),void 0!==p?this.previousDestinationId=p:c||u||(this.previousDestinationId=void 0),l&&this.showLoadingOverlay&&!u&&(this.showLoadingOverlay=!1),!this.lzMap&&t&&e&&o&&this.shadowRoot&&i){this.routeAnimationController.setParentPlace(e),this.routeAnimationController.setLocale(o),this.routeAnimationController.setConfig(i),this.mapContainer=this.shadowRoot.getElementById("map"),this.shadowRoot?.appendChild(this.mapContainer),this.config=i;const n={zoom:i.initialZoom||18,parentPlaceId:e?.mapvxId,center:i.initialCenter||{lat:0,lng:0},...this.enable3D?{mode:"3D",scene3D:w}:{},minZoom:i.limitZoomOut||15,maxZoom:i.limitZoomIn||22,showCompass:!1,navigationPosition:"bottom-right",pitch:i.pitch||0,lang:o,maxBounds:i.pointsOfInterest||[],otherPotentialParentPlacesIds:i.potentialParentPlaces||[],onMapReady:()=>{this.mapReady=!0,this.markerController.setMapReady(!0),this.pendingUpdateCamera=!0,this._setupZoomListener(),requestAnimationFrame(()=>this._setupHalfStepZoomOut()),this.dispatchEvent(new CustomEvent("mapReady",{detail:{},bubbles:!0,composed:!0}))},onFloorChange:t=>{this.setCurrentMapFloor(t)},tileCache:{enabled:!0,persistToServiceWorker:!0,preloadAdjacentZooms:!1}};this.lzMap=t.createMap(this.mapContainer,n),this.lzMap.setParentPlace(e,!1),this.routeAnimationController.setMap(this.lzMap),this.routeAnimationController.setExtraLeftPadding(this.paddingLeft),this.markerController.setMap(this.lzMap),this.markerController.setParentPlace(e)}this.markerController&&this.routeAnimationController&&(this.routeAnimationController.setExtraLeftPadding(this.paddingLeft),this.routeAnimationController.setCameraPadding(this.computePaddingForModal()),this.routeAnimationController.setFitMaxZoom(this.routeFitMaxZoom)),this.markerController&&this.routeAnimationController&&this.routeAnimationController.setOrigin(d);if(!c&&!d&&!u&&0===r.length&&this.mapReady&&this.lzMap&&i?.initialCenter){const t=i?.mapRotations?.[e?.mapvxId??""]?.angle??0,o=i?.pitch??0;this.lzMap.updateCamera({center:i.initialCenter,bearing:t,pitch:o,zoom:i?.initialZoom??18,animate:!1})}n&&n.key!==this._currentMapFloor&&this.mapReady&&this.setCurrentMapFloor(n.key);const f=this.markerController.getMarkersIds(),m=r.map(t=>t.id);(r.length!==f.length||m.some(t=>!f.includes(t))||f.some(t=>!m.includes(t)))&&!this._isCleared&&(this.mapReady?this.updateMarkers():this.pendingUpdateMarkers=!0),this.pendingUpdateMarkers&&this.mapReady&&!this._isCleared&&this.updateMarkers();const b=this.routeAnimationController.getCurrentRoute(),x=b?.id!==a?.id,v=x&&a;(this.pendingUpdateCamera||!l&&this.mapReady)&&c&&!v&&(this._initializeCamera(),this.pendingUpdateCamera=!1),x&&!g?(this.routeAnimationController.removeRoute(),a&&this.routeAnimationController.startRouteAnimation(a)):!this.routeAnimationController.isAnimating()&&s&&a&&!g&&this.routeAnimationController.restartRouteAnimation()}updateMarkers(){const t=this.sdkData?.markers??[],e=this.sdkData?.destination?.inFloors?.[0]||this.sdkData?.origin?.inFloors?.[0]||this.sdkData?.currentFloor?.key;this.markerController.updateMarkers(t,e),this.pendingUpdateMarkers=!1}clearAllMarkers(){this.markerController.clearAllMarkers()}async clearMap(t=!0,e){if(this._clearMapLock)console.info("[MAP] clearMap called while already in progress, skipping");else{console.info("[MAP] clearMap start",{preserveOrigin:t,loadingMessage:e}),this._clearMapLock=!0;try{if(this._clearMapLoadingText=e||"Limpiando mapa...",this.showLoadingOverlay=!0,this.requestUpdate(),await this.updateComplete,this.routeAnimationController.removeRoute(),t){const t=this.sdkData?.origin?.mapvxId,e=this.markerController.getMarkersIds();t&&e.includes(t)?e.filter(e=>e!==t).forEach(t=>{try{this.lzMap?.removeMarker(t)}catch{}}):(this.markerController.clearAllMarkers(),this._isCleared=!0)}else this.markerController.clearAllMarkers(),this._isCleared=!0;await new Promise(t=>setTimeout(t,100)),console.info("[MAP] clearMap complete")}finally{this.showLoadingOverlay=!1,this._clearMapLoadingText=void 0,this._clearMapLock=!1,this.requestUpdate()}}}getBaseCameraPadding(){const t=this.shadowRoot?.getElementById("map"),e=t?.getBoundingClientRect(),o=(e?.height??window.innerHeight)>(e?.width??window.innerWidth)?{top:100,right:60,bottom:80,left:60}:{top:150,right:80,bottom:80,left:100};return{top:this.cameraPaddingTop>=0?this.cameraPaddingTop:o.top,right:this.cameraPaddingRight>=0?this.cameraPaddingRight:o.right,bottom:this.cameraPaddingBottom>=0?this.cameraPaddingBottom:o.bottom,left:(this.cameraPaddingLeft>=0?this.cameraPaddingLeft:o.left)+this.paddingLeft}}computePaddingForModal(t="route-options"){const e=this.getBaseCameraPadding();if("none"===this.overlayPaddingMode)return e;const o=this.shadowRoot?.getElementById("map"),i=o?.getBoundingClientRect(),n=this.getRootNode(),r=n?.host;if(!r||!r.shadowRoot||!i)return e;const a=r.shadowRoot.querySelector(t),s=r.shadowRoot.querySelector("qr-modal");let l=0,d=0;for(const c of[a,s]){if(!c)continue;const t=c.getBoundingClientRect();l=Math.max(l,t.right-i.left),d=Math.max(d,t.bottom-i.top)}if(0===l)return e;return{top:"auto"===this.overlayPaddingMode&&d>0?Math.max(e.top,Math.min(d+40,.45*i.height)):e.top,bottom:e.bottom,left:Math.max(e.left,l+40),right:e.right}}getMarkerCoordinates(){return{origin:this.sdkData?.origin?.position,destination:this.sdkData?.destination?.position}}areMarkersVisible(){const t={originVisible:!1,destinationVisible:!1,bothVisible:!1};if(!this.lzMap||!this.mapReady)return t;const e=this.shadowRoot?.getElementById("map");if(!e)return t;const o=e.getBoundingClientRect(),i=this.computePaddingForModal(),n=o.left+i.left,r=o.right-i.right,a=o.top+i.top,s=o.bottom-i.bottom;return e.querySelectorAll(".maplibregl-marker").forEach(e=>{const o=e.querySelector('[data-testid^="marker-"]'),i=o?.getAttribute("data-testid");if(!i)return;const l=e.getBoundingClientRect(),d=l.left+l.width/2,c=l.top+l.height/2,u=d>=n&&d<=r&&c>=a&&c<=s;"marker-origin"===i?t.originVisible=u:"marker-destination"===i&&(t.destinationVisible=u)}),t.bothVisible=t.originVisible&&t.destinationVisible,t}isLoadingVisible(){return this.showLoadingOverlay}_initializeCamera(){if(!this.lzMap||!this.mapReady||!this.sdkData)return;const{destination:t,origin:e,route:o}=this.sdkData,i=this.config?.mapRotations?.[e?.mapvxId??""]?.angle??0,n=this.config?.pitch??0,r=this.computePaddingForModal("route-options"),a=t?.inFloors?.[0];if(a&&this.lzMap?.updateFloor(a),o){const a=e?.inFloors?.[0];if(a&&o.legs){const s=o.legs.flatMap(t=>t.steps).filter(t=>t.startInsideFloor===a||t.endInsideFloor===a).flatMap(t=>t.coordinates);if(s.length>0){const t=this.config?.limitZoomIn??24,e=Math.min(t,this.routeFitMaxZoom);this.lzMap?.fitCoordinates(s,{padding:r,bearing:i,pitch:n,animate:!1,maxZoom:e})}else{const o=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:i,pitch:n,center:o,animate:!1})}}else{const o=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:i,pitch:n,center:o,animate:!1})}}else{const o={top:r.top+50,right:r.right+50,bottom:r.bottom+50,left:r.left+50},a=e?.inFloors?.[0],s=t?.inFloors?.[0];if(a&&s&&a===s){const r=[];if(e?.position&&r.push(e.position),t?.position&&r.push(t.position),r.length>1){const t=this.config?.limitZoomIn??24,e=Math.min(t,this.fitMaxZoom);setTimeout(()=>{this.lzMap?.fitCoordinates(r,{padding:o,bearing:i,pitch:n,animate:!1,maxZoom:e})},100)}else if(1===r.length){const t=this.config?.limitZoomIn??24,e=Math.min(t,this.singlePointMaxZoom),o=Math.max(e-.7,0);setTimeout(()=>{this.lzMap?.updateCamera({bearing:i,pitch:n,center:r[0],zoom:o,animate:!1})},100)}}else{const r=this.config?.limitZoomIn??24,a=Math.min(r,this.singlePointMaxZoom),s=t?.position??e?.position;if(s){const t=3e-4,e=[{lat:s.lat-t,lng:s.lng-t},{lat:s.lat+t,lng:s.lng+t}];setTimeout(()=>{this.lzMap?.fitCoordinates(e,{padding:o,bearing:i,pitch:n,animate:!1,maxZoom:a})},100)}}}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"),o=t.getAttribute("zoom-size")||"normal";e?this.setAttribute("compact-mode",""):this.removeAttribute("compact-mode"),this.setAttribute("zoom-size",o)}}render(){const t=this.sdkData?.destination&&!this.sdkData?.cameraInitialized,o=this.showLoadingOverlay||this.sdkData?.isLoading||t,i=this._clearMapLoadingText||this.loadingText;return e`
|
|
33
|
+
function m({context:t,subscribe:e}){return(o,i)=>{"object"==typeof i?i.addInitializer(function(){new p(this,{context:t,callback:t=>{o.set.call(this,t)},subscribe:e})}):o.constructor.addInitializer(o=>{new p(o,{context:t,callback:t=>{o[i]=t},subscribe:e})})}}function b(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const x="lazarillo-sdk",v="https://tiles.mapvx.com/",y="https://mapvx-glb-assets.s3.us-east-1.amazonaws.com/shared",w={enabled:!0,models:{globalOffset:{y:.7},lights:[{type:"directional",color:16777215,intensity:2,position:{x:50,y:100,z:80}},{type:"directional",color:16777215,intensity:1.5,position:{x:-50,y:80,z:-60}},{type:"ambient",color:16777215,intensity:1.5}],assets:[{id:"escalator",url:`${y}/escalator.glb`,defaultScale:1},{id:"escalator-up",url:`${y}/escalator_up.glb`,defaultScale:1},{id:"escalator-down",url:`${y}/escalator_down.glb`,defaultScale:1,defaultRotation:{yaw:180}}],placements:[{id:"esc-raw-0",assetId:"escalator-up",position:{lng:-70.60673112049699,lat:-33.417466557301466},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.966859}},{id:"esc-raw-1",assetId:"escalator-down",position:{lng:-70.6067050272429,lat:-33.41747523259775},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.776211}},{id:"esc-raw-2",assetId:"escalator-up",position:{lng:-70.60776310041547,lat:-33.41801002098207},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.860939}},{id:"esc-raw-3",assetId:"escalator-up",position:{lng:-70.60777282342315,lat:-33.41802219430518},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.28255}},{id:"esc-raw-4",assetId:"escalator-up",position:{lng:-70.60775756835938,lat:-33.418012959371026},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.960876}},{id:"esc-raw-5",assetId:"escalator-up",position:{lng:-70.60776226222515,lat:-33.41802793115885},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:33.424802}},{id:"esc-raw-6",assetId:"escalator-up",position:{lng:-70.60698911547661,lat:-33.41777271078596},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:33.120665}},{id:"esc-raw-7",assetId:"escalator-up",position:{lng:-70.60700537636876,lat:-33.41776361574833},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.727526}},{id:"esc-raw-8",assetId:"escalator-up",position:{lng:-70.60577105730772,lat:-33.41816141780029},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.697247}},{id:"esc-raw-9",assetId:"escalator-up",position:{lng:-70.60578631237149,lat:-33.41815274257297},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.837192}},{id:"esc-raw-10",assetId:"escalator-up",position:{lng:-70.60584850609303,lat:-33.41794327754214},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.554347}},{id:"esc-raw-11",assetId:"escalator-up",position:{lng:-70.60586342588067,lat:-33.41793544183311},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.988498}},{id:"esc-raw-12",assetId:"escalator-up",position:{lng:-70.60587817803025,lat:-33.41792760612319},visibility:{mode:"singleFloor",floorKey:"-NCtxDrJbDWE3gMkZ_45"},rotation:{yaw:32.786025}},{id:"esc-pb-0",assetId:"escalator-up",position:{lng:-70.60689389705658,lat:-33.41764873834475},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.58573}},{id:"esc-pb-1",assetId:"escalator-up",position:{lng:-70.60691267251968,lat:-33.41763978321808},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.58573}},{id:"esc-pb-2",assetId:"escalator-up",position:{lng:-70.60700118541718,lat:-33.417717580860256},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.828557}},{id:"esc-pb-3",assetId:"escalator-up",position:{lng:-70.60701996088028,lat:-33.417708066045456},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.412321}},{id:"esc-pb-4",assetId:"escalator-up",position:{lng:-70.60673095285892,lat:-33.4174668371505},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.790905}},{id:"esc-pb-5",assetId:"escalator-up",position:{lng:-70.60671485960484,lat:-33.417474672901996},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.790905}},{id:"esc-pb-6",assetId:"escalator-up",position:{lng:-70.60741692781448,lat:-33.417881011635586},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:33.69006}},{id:"esc-pb-7",assetId:"escalator-up",position:{lng:-70.6074296683073,lat:-33.4178681386758},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:33.111348}},{id:"esc-pb-8",assetId:"escalator-up",position:{lng:-70.60566879808903,lat:-33.41802709161594},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:33.407836}},{id:"esc-pb-9",assetId:"escalator-up",position:{lng:-70.60568355023861,lat:-33.41801981560711},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.855733}},{id:"esc-pb-10",assetId:"escalator-up",position:{lng:-70.60575060546398,lat:-33.41807970272136},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.541778}},{id:"esc-pb-11",assetId:"escalator-up",position:{lng:-70.60576602816582,lat:-33.41807186702446},visibility:{mode:"singleFloor",floorKey:"-N1OJ6FIVBV6dpjCXEFM"},rotation:{yaw:32.927888}}]},customLayers:{elevatedLinesLayer:{dataUrl:v,binaryData:!1,defaultHeight:5,lineColor:"#cbcbcb",lineWidth:1.5,widthUnits:"pixels"},labelsLayer:{dataUrl:v,binaryData:!1,defaultHeight:5,size:16,color:"#91969b"},iconLayers:{spriteUrl:"https://lazarillo.app/internal/maps/vector-style/cenco-cl-pe-co-ar-3D/sprites_cencosud",storeLogosLayer:{dataUrl:v,binaryData:!1,defaultHeight:5,logoScale:{"logo-Maxi-K":.4,"logo-Ripley":2,"logo-Falabella":2,"logo-CasaIdeas":2,"logo-Sky Costanera":.6,"logo-Easy":1.4,"logo-Jumbo":2,"logo-Decathlon":1.4}},poiIconsLayer:{dataUrl:v,binaryData:!1,defaultHeight:5,size:2}}},hideLayers:["indoor-poi-logo","indoor-poi","indoor-transportation","indoor-transportation-poi","indoor-area_name","indoor-logo-tiendas-ancla","indoor-logo-tiendas-ancla-falabella","indoor-logo-tiendas-ancla-falabella-ALC","indoor-logo-tiendas-ancla-ripley","indoor-logo-tiendas-ancla-ripley-small","indoor-logo-tiendas-ancla-paris","indoor-logo-tiendas-ancla-paris-small","indoor-logo-tiendas-ancla-casaideas","indoor-logo-tiendas-ancla-casaideas-small","indoor-logo-tiendas-ancla-HM","indoor-logo-tiendas-ancla-decathlon","indoor-logo-tiendas-ancla-la-polar","indoor-logo-tiendas-ancla-tricot","indoor-logo-tiendas-ancla-fashions-park","indoor-logo-tiendas-ancla-zara","indoor-logo-tiendas-ancla-zara-small","indoor-logo-tiendas-ancla-maxi-k","indoor-logo-tiendas-ancla-cinemark","indoor-logo-tiendas-ancla-peru-colombia-argentina"]};var C,k,M,E,z,I,P,R,A,B,F,D,_=Object.defineProperty,L=Object.getOwnPropertyDescriptor,N=t=>{throw TypeError(t)},T=(t,e,o,i)=>{for(var n,r=i>1?void 0:i?L(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(i?n(e,o,r):n(r))||r);return i&&r&&_(e,o,r),r},O=(t,e,o)=>e.has(t)||N("Cannot "+o),S=(t,e,o)=>(O(t,e,"read from private field"),o?o.call(t):e.get(t)),j=(t,e,o)=>e.has(t)?N("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),$=(t,e,o,i)=>(O(t,e,"write to private field"),e.set(t,o),o);let U=class extends t{constructor(){super(),j(this,C,0),j(this,k,20.5),j(this,M,20),j(this,E,22.5),j(this,z,-1),j(this,I,-1),j(this,P,-1),j(this,R,-1),j(this,A,"auto"),j(this,B,""),j(this,F,"Cargando..."),j(this,D,!0),this.mapReady=!1,this._clearMapLock=!1,this._isCleared=!1,this.showLoadingOverlay=!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._zoomHandlerRef=null,this._zoomOutButtonRef=null,this._zoomOutButtonHandlerRef=null,this.routeAnimationController=new d(this,this.routeAnimationHandlers),this.markerController=new c(this)}get paddingLeft(){return S(this,C)}set paddingLeft(t){$(this,C,t)}get fitMaxZoom(){return S(this,k)}set fitMaxZoom(t){$(this,k,t)}get singlePointMaxZoom(){return S(this,M)}set singlePointMaxZoom(t){$(this,M,t)}get routeFitMaxZoom(){return S(this,E)}set routeFitMaxZoom(t){$(this,E,t)}get cameraPaddingTop(){return S(this,z)}set cameraPaddingTop(t){$(this,z,t)}get cameraPaddingRight(){return S(this,I)}set cameraPaddingRight(t){$(this,I,t)}get cameraPaddingBottom(){return S(this,P)}set cameraPaddingBottom(t){$(this,P,t)}get cameraPaddingLeft(){return S(this,R)}set cameraPaddingLeft(t){$(this,R,t)}get overlayPaddingMode(){return S(this,A)}set overlayPaddingMode(t){$(this,A,t)}get loadingIcon(){return S(this,B)}set loadingIcon(t){$(this,B,t)}get loadingText(){return S(this,F)}set loadingText(t){$(this,F,t)}get enable3D(){return S(this,D)}set enable3D(t){$(this,D,t)}async firstUpdated(){if(this.shadowRoot){const t=document.createElement("style");t.textContent=(await import("./styles-CsR9mihk.js")).default,this.shadowRoot.appendChild(t)}}disconnectedCallback(){super.disconnectedCallback();const t=this.lzMap?.map;t&&this._zoomHandlerRef&&(t.off("zoom",this._zoomHandlerRef),t.off("zoomend",this._zoomHandlerRef),this._zoomHandlerRef=null),this._zoomOutButtonRef&&this._zoomOutButtonHandlerRef&&(this._zoomOutButtonRef.removeEventListener("click",this._zoomOutButtonHandlerRef,!0),this._zoomOutButtonRef=null,this._zoomOutButtonHandlerRef=null)}_setupZoomListener(){const t=this.lzMap?.map;if(!t?.getZoom)return;const e=()=>{const e=t.getZoom();this.dispatchEvent(new CustomEvent("map-zoom",{detail:{zoom:e},bubbles:!0,composed:!0}))};this._zoomHandlerRef=e,t.on("zoom",e),t.on("zoomend",e),e()}_setupHalfStepZoomOut(){const t=this.shadowRoot?.querySelector(".maplibregl-ctrl-zoom-out"),e=this.lzMap?.map;if(!t||!e?.getZoom||!e?.setZoom)return;const o=e.setZoom.bind(e);this._zoomOutButtonRef&&this._zoomOutButtonHandlerRef&&this._zoomOutButtonRef.removeEventListener("click",this._zoomOutButtonHandlerRef,!0);const i=t=>{t.preventDefault(),t.stopImmediatePropagation();const i=e.getZoom(),n=e.getMinZoom?.()??0,r=Math.max(i-.6,n);e.easeTo?e.easeTo({zoom:r,duration:220,essential:!0}):o(r,{animate:!0})};this._zoomOutButtonRef=t,this._zoomOutButtonHandlerRef=i,t.addEventListener("click",i,!0)}async updated(){if(this.updateAttributes(),!this.sdkData?.sdk)return;const{sdk:t,parentPlace:e,locale:o,generalConfig:i,currentFloor:n,markers:r,route:a,isRouteAnimating:s,cameraInitialized:l,origin:d,destination:c,isLoading:u}=this.sdkData,p=c?.mapvxId,h=void 0!==this.previousDestinationId&&this.previousDestinationId!==p&&void 0!==p;let g=!1;if((h||u)&&(this.showLoadingOverlay=!0,h&&this.mapReady&&(g=!0,this.markerController.clearAllMarkers(),this.routeAnimationController.removeRoute(),this._isCleared=!1)),void 0!==p?this.previousDestinationId=p:c||u||(this.previousDestinationId=void 0),l&&this.showLoadingOverlay&&!u&&(this.showLoadingOverlay=!1),!this.lzMap&&t&&e&&o&&this.shadowRoot&&i){this.routeAnimationController.setParentPlace(e),this.routeAnimationController.setLocale(o),this.routeAnimationController.setConfig(i),this.mapContainer=this.shadowRoot.getElementById("map"),this.shadowRoot?.appendChild(this.mapContainer),this.config=i;const n={zoom:i.initialZoom||18,parentPlaceId:e?.mapvxId,center:i.initialCenter||{lat:0,lng:0},...this.enable3D&&"-N19VjzEVIj2RDKu7i4r"===e?.mapvxId?{mode:"3D",scene3D:w}:{},minZoom:i.limitZoomOut||15,maxZoom:i.limitZoomIn||22,showCompass:!1,navigationPosition:"bottom-right",pitch:i.pitch||0,lang:o,maxBounds:i.pointsOfInterest||[],otherPotentialParentPlacesIds:i.potentialParentPlaces||[],onMapReady:()=>{this.mapReady=!0,this.markerController.setMapReady(!0),this.pendingUpdateCamera=!0,this._setupZoomListener(),requestAnimationFrame(()=>this._setupHalfStepZoomOut()),this.dispatchEvent(new CustomEvent("mapReady",{detail:{},bubbles:!0,composed:!0}))},onFloorChange:t=>{this.setCurrentMapFloor(t)},tileCache:{enabled:!0,persistToServiceWorker:!0,preloadAdjacentZooms:!1}};this.lzMap=t.createMap(this.mapContainer,n),this.lzMap.setParentPlace(e,!1),this.routeAnimationController.setMap(this.lzMap),this.routeAnimationController.setExtraLeftPadding(this.paddingLeft),this.markerController.setMap(this.lzMap),this.markerController.setParentPlace(e)}this.markerController&&this.routeAnimationController&&(this.routeAnimationController.setExtraLeftPadding(this.paddingLeft),this.routeAnimationController.setCameraPadding(this.computePaddingForModal()),this.routeAnimationController.setFitMaxZoom(this.routeFitMaxZoom)),this.markerController&&this.routeAnimationController&&this.routeAnimationController.setOrigin(d);if(!c&&!d&&!u&&0===r.length&&this.mapReady&&this.lzMap&&i?.initialCenter){const t=i?.mapRotations?.[e?.mapvxId??""]?.angle??0,o=i?.pitch??0;this.lzMap.updateCamera({center:i.initialCenter,bearing:t,pitch:o,zoom:i?.initialZoom??18,animate:!1})}n&&n.key!==this._currentMapFloor&&this.mapReady&&this.setCurrentMapFloor(n.key);const f=this.markerController.getMarkersIds(),m=r.map(t=>t.id);(r.length!==f.length||m.some(t=>!f.includes(t))||f.some(t=>!m.includes(t)))&&!this._isCleared&&(this.mapReady?this.updateMarkers():this.pendingUpdateMarkers=!0),this.pendingUpdateMarkers&&this.mapReady&&!this._isCleared&&this.updateMarkers();const b=this.routeAnimationController.getCurrentRoute(),x=b?.id!==a?.id,v=x&&a;(this.pendingUpdateCamera||!l&&this.mapReady)&&c&&!v&&(this._initializeCamera(),this.pendingUpdateCamera=!1),x&&!g?(this.routeAnimationController.removeRoute(),a&&this.routeAnimationController.startRouteAnimation(a)):!this.routeAnimationController.isAnimating()&&s&&a&&!g&&this.routeAnimationController.restartRouteAnimation()}updateMarkers(){const t=this.sdkData?.markers??[],e=this.sdkData?.destination?.inFloors?.[0]||this.sdkData?.origin?.inFloors?.[0]||this.sdkData?.currentFloor?.key;this.markerController.updateMarkers(t,e),this.pendingUpdateMarkers=!1}clearAllMarkers(){this.markerController.clearAllMarkers()}async clearMap(t=!0,e){if(this._clearMapLock)console.info("[MAP] clearMap called while already in progress, skipping");else{console.info("[MAP] clearMap start",{preserveOrigin:t,loadingMessage:e}),this._clearMapLock=!0;try{if(this._clearMapLoadingText=e||"Limpiando mapa...",this.showLoadingOverlay=!0,this.requestUpdate(),await this.updateComplete,this.routeAnimationController.removeRoute(),t){const t=this.sdkData?.origin?.mapvxId,e=this.markerController.getMarkersIds();t&&e.includes(t)?e.filter(e=>e!==t).forEach(t=>{try{this.lzMap?.removeMarker(t)}catch{}}):(this.markerController.clearAllMarkers(),this._isCleared=!0)}else this.markerController.clearAllMarkers(),this._isCleared=!0;await new Promise(t=>setTimeout(t,100)),console.info("[MAP] clearMap complete")}finally{this.showLoadingOverlay=!1,this._clearMapLoadingText=void 0,this._clearMapLock=!1,this.requestUpdate()}}}getBaseCameraPadding(){const t=this.shadowRoot?.getElementById("map"),e=t?.getBoundingClientRect(),o=(e?.height??window.innerHeight)>(e?.width??window.innerWidth)?{top:100,right:60,bottom:80,left:60}:{top:150,right:80,bottom:80,left:100};return{top:this.cameraPaddingTop>=0?this.cameraPaddingTop:o.top,right:this.cameraPaddingRight>=0?this.cameraPaddingRight:o.right,bottom:this.cameraPaddingBottom>=0?this.cameraPaddingBottom:o.bottom,left:(this.cameraPaddingLeft>=0?this.cameraPaddingLeft:o.left)+this.paddingLeft}}computePaddingForModal(t="route-options"){const e=this.getBaseCameraPadding();if("none"===this.overlayPaddingMode)return e;const o=this.shadowRoot?.getElementById("map"),i=o?.getBoundingClientRect(),n=this.getRootNode(),r=n?.host;if(!r||!r.shadowRoot||!i)return e;const a=r.shadowRoot.querySelector(t),s=r.shadowRoot.querySelector("qr-modal");let l=0,d=0;for(const c of[a,s]){if(!c)continue;const t=c.getBoundingClientRect();l=Math.max(l,t.right-i.left),d=Math.max(d,t.bottom-i.top)}if(0===l)return e;return{top:"auto"===this.overlayPaddingMode&&d>0?Math.max(e.top,Math.min(d+40,.45*i.height)):e.top,bottom:e.bottom,left:Math.max(e.left,l+40),right:e.right}}getMarkerCoordinates(){return{origin:this.sdkData?.origin?.position,destination:this.sdkData?.destination?.position}}areMarkersVisible(){const t={originVisible:!1,destinationVisible:!1,bothVisible:!1};if(!this.lzMap||!this.mapReady)return t;const e=this.shadowRoot?.getElementById("map");if(!e)return t;const o=e.getBoundingClientRect(),i=this.computePaddingForModal(),n=o.left+i.left,r=o.right-i.right,a=o.top+i.top,s=o.bottom-i.bottom;return e.querySelectorAll(".maplibregl-marker").forEach(e=>{const o=e.querySelector('[data-testid^="marker-"]'),i=o?.getAttribute("data-testid");if(!i)return;const l=e.getBoundingClientRect(),d=l.left+l.width/2,c=l.top+l.height/2,u=d>=n&&d<=r&&c>=a&&c<=s;"marker-origin"===i?t.originVisible=u:"marker-destination"===i&&(t.destinationVisible=u)}),t.bothVisible=t.originVisible&&t.destinationVisible,t}isLoadingVisible(){return this.showLoadingOverlay}_initializeCamera(){if(!this.lzMap||!this.mapReady||!this.sdkData)return;const{destination:t,origin:e,route:o}=this.sdkData,i=this.config?.mapRotations?.[e?.mapvxId??""]?.angle??0,n=this.config?.pitch??0,r=this.computePaddingForModal("route-options"),a=t?.inFloors?.[0];if(a&&this.lzMap?.updateFloor(a),o){const a=e?.inFloors?.[0];if(a&&o.legs){const s=o.legs.flatMap(t=>t.steps).filter(t=>t.startInsideFloor===a||t.endInsideFloor===a).flatMap(t=>t.coordinates);if(s.length>0){const t=this.config?.limitZoomIn??24,e=Math.min(t,this.routeFitMaxZoom);this.lzMap?.fitCoordinates(s,{padding:r,bearing:i,pitch:n,animate:!1,maxZoom:e})}else{const o=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:i,pitch:n,center:o,animate:!1})}}else{const o=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:i,pitch:n,center:o,animate:!1})}}else{const o={top:r.top+50,right:r.right+50,bottom:r.bottom+50,left:r.left+50},a=e?.inFloors?.[0],s=t?.inFloors?.[0];if(a&&s&&a===s){const r=[];if(e?.position&&r.push(e.position),t?.position&&r.push(t.position),r.length>1){const t=this.config?.limitZoomIn??24,e=Math.min(t,this.fitMaxZoom);setTimeout(()=>{this.lzMap?.fitCoordinates(r,{padding:o,bearing:i,pitch:n,animate:!1,maxZoom:e})},100)}else if(1===r.length){const t=this.config?.limitZoomIn??24,e=Math.min(t,this.singlePointMaxZoom),o=Math.max(e-.7,0);setTimeout(()=>{this.lzMap?.updateCamera({bearing:i,pitch:n,center:r[0],zoom:o,animate:!1})},100)}}else{const r=this.config?.limitZoomIn??24,a=Math.min(r,this.singlePointMaxZoom),s=t?.position??e?.position;if(s){const t=3e-4,e=[{lat:s.lat-t,lng:s.lng-t},{lat:s.lat+t,lng:s.lng+t}];setTimeout(()=>{this.lzMap?.fitCoordinates(e,{padding:o,bearing:i,pitch:n,animate:!1,maxZoom:a})},100)}}}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"),o=t.getAttribute("zoom-size")||"normal";e?this.setAttribute("compact-mode",""):this.removeAttribute("compact-mode"),this.setAttribute("zoom-size",o)}}render(){const t=this.sdkData?.destination&&!this.sdkData?.cameraInitialized,o=this.showLoadingOverlay||this.sdkData?.isLoading||t,i=this._clearMapLoadingText||this.loadingText;return e`
|
|
34
34
|
<div id="map" data-testid="map-container"></div>
|
|
35
35
|
<div id="modal" data-testid="floor-change-modal" style="display: ${this.modalData?"flex":"none"}">
|
|
36
36
|
<div class="modal-content">
|
|
@@ -186,7 +186,7 @@ function m({context:t,subscribe:e}){return(o,i)=>{"object"==typeof i?i.addInitia
|
|
|
186
186
|
transform: rotate(360deg);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
`],
|
|
189
|
+
`],T([m({context:x,subscribe:!0})],U.prototype,"sdkData",2),T([n({type:Number,attribute:"padding-left"})],U.prototype,"paddingLeft",1),T([n({type:Number,attribute:"fit-max-zoom"})],U.prototype,"fitMaxZoom",1),T([n({type:Number,attribute:"single-point-max-zoom"})],U.prototype,"singlePointMaxZoom",1),T([n({type:Number,attribute:"route-fit-max-zoom"})],U.prototype,"routeFitMaxZoom",1),T([n({type:Number,attribute:"camera-padding-top"})],U.prototype,"cameraPaddingTop",1),T([n({type:Number,attribute:"camera-padding-right"})],U.prototype,"cameraPaddingRight",1),T([n({type:Number,attribute:"camera-padding-bottom"})],U.prototype,"cameraPaddingBottom",1),T([n({type:Number,attribute:"camera-padding-left"})],U.prototype,"cameraPaddingLeft",1),T([n({type:String,attribute:"overlay-padding-mode"})],U.prototype,"overlayPaddingMode",1),T([n({type:String,attribute:"loading-icon"})],U.prototype,"loadingIcon",1),T([n({type:String,attribute:"loading-text"})],U.prototype,"loadingText",1),T([n({type:Boolean,attribute:"enable-3d"})],U.prototype,"enable3D",1),T([r()],U.prototype,"_clearMapLoadingText",2),T([r()],U.prototype,"showLoadingOverlay",2),U=T([a("custom-map")],U);const Z=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get CustomMap(){return U}},Symbol.toStringTag,{value:"Module"})),H=1;
|
|
190
190
|
/**
|
|
191
191
|
* @license
|
|
192
192
|
* Copyright 2017 Google LLC
|
|
@@ -196,12 +196,12 @@ function m({context:t,subscribe:e}){return(o,i)=>{"object"==typeof i?i.addInitia
|
|
|
196
196
|
* @license
|
|
197
197
|
* Copyright 2018 Google LLC
|
|
198
198
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
199
|
-
*/const
|
|
199
|
+
*/const K=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends V{constructor(t){if(super(t),t.type!==H||"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 o=t.element.classList;for(const i of this.st)i in e||(o.remove(i),this.st.delete(i));for(const i in e){const t=!!e[i];t===this.st.has(i)||this.nt?.has(i)||(t?(o.add(i),this.st.add(i)):(o.remove(i),this.st.delete(i)))}return s}});var J=Object.defineProperty;class q extends t{getFloors(){if(!this.sdkData)return[];const{parentPlace:t,generalConfig:e}=this.sdkData;let o=t?.innerFloors||[];const i=e?.enabledFloors;return i&&i.length>0&&(o=o.filter(t=>i.includes(t.key))),o}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.key}}((t,e,o)=>{for(var i,n=void 0,r=t.length-1;r>=0;r--)(i=t[r])&&(n=i(e,o,n)||n);n&&J(e,o,n)})([m({context:x,subscribe:!0})],q.prototype,"sdkData");var W=Object.getOwnPropertyDescriptor;let Y=class extends q{render(){if(!this.sdkData)return e`<div>No data</div>`;const t=this.getFloors();return e`
|
|
200
200
|
<div class="floor-selector-container">
|
|
201
201
|
${t.map(t=>{const o=this.isFloorActive(t),i=this.isFloorEnabled(t);return e`
|
|
202
202
|
<div class="floor-btn-container">
|
|
203
203
|
<button
|
|
204
|
-
class=${
|
|
204
|
+
class=${K({"floor-btn":!0,active:o,disabled:!o&&!i})}
|
|
205
205
|
@click=${()=>i?this.selectFloor(t.key):null}
|
|
206
206
|
>
|
|
207
207
|
<span>${this.getFloorDisplayName(t)}</span>
|
|
@@ -209,8 +209,8 @@ function m({context:t,subscribe:e}){return(o,i)=>{"object"==typeof i?i.addInitia
|
|
|
209
209
|
</div>
|
|
210
210
|
`})}
|
|
211
211
|
</div>
|
|
212
|
-
`}};Y.styles=[o(':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}}')],Y=((t,e,o,i)=>{for(var n,r=i>1?void 0:i?W(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=n(r)||r);return r})([a("floor-selector")],Y);const X=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get FloorSelector(){return Y}},Symbol.toStringTag,{value:"Module"}));var Q,G,tt={};function et(){return G?Q:(G=1,Q=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var ot,it={},nt={};function rt(){if(ot)return nt;let t;ot=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 nt.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},nt.getSymbolTotalCodewords=function(t){return e[t]},nt.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},nt.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},nt.isKanjiModeEnabled=function(){return void 0!==t},nt.toSJIS=function(e){return t(e)},nt}var at,st,lt,dt,ct,ut={};function pt(){return at||(at=1,(t=ut).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,o){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(J){return o}}),ut;var t}var ht,gt={};var ft,mt={};var bt,xt={};var vt,yt={};function wt(){if(vt)return yt;vt=1;const t=pt(),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],o=[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 yt.getBlocksCount=function(o,i){switch(i){case t.L:return e[4*(o-1)+0];case t.M:return e[4*(o-1)+1];case t.Q:return e[4*(o-1)+2];case t.H:return e[4*(o-1)+3];default:return}},yt.getTotalCodewordsCount=function(e,i){switch(i){case t.L:return o[4*(e-1)+0];case t.M:return o[4*(e-1)+1];case t.Q:return o[4*(e-1)+2];case t.H:return o[4*(e-1)+3];default:return}},yt}var Ct,kt,Mt,Et,zt={},It={};function Pt(){return kt||(kt=1,function(t){const e=function(){if(Ct)return It;Ct=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let o=1;for(let i=0;i<255;i++)t[i]=o,e[o]=i,o<<=1,256&o&&(o^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),It.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},It.exp=function(e){return t[e]},It.mul=function(o,i){return 0===o||0===i?0:t[e[o]+e[i]]},It}();t.mul=function(t,o){const i=new Uint8Array(t.length+o.length-1);for(let n=0;n<t.length;n++)for(let r=0;r<o.length;r++)i[n+r]^=e.mul(t[n],o[r]);return i},t.mod=function(t,o){let i=new Uint8Array(t);for(;i.length-o.length>=0;){const t=i[0];for(let r=0;r<o.length;r++)i[r]^=e.mul(o[r],t);let n=0;for(;n<i.length&&0===i[n];)n++;i=i.slice(n)}return i},t.generateECPolynomial=function(o){let i=new Uint8Array([1]);for(let n=0;n<o;n++)i=t.mul(i,new Uint8Array([1,e.exp(n)]));return i}}(zt)),zt}var Rt,At={},Bt={},Ft={};function Dt(){return Rt||(Rt=1,Ft.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Ft}var _t,Lt,Tt,Nt={};function Ot(){if(_t)return Nt;_t=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 o="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Nt.KANJI=new RegExp(e,"g"),Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Nt.BYTE=new RegExp(o,"g"),Nt.NUMERIC=new RegExp(t,"g"),Nt.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+e+"$"),n=new RegExp("^"+t+"$"),r=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Nt.testKanji=function(t){return i.test(t)},Nt.testNumeric=function(t){return n.test(t)},Nt.testAlphanumeric=function(t){return r.test(t)},Nt}function St(){return Lt||(Lt=1,function(t){const e=Dt(),o=Ot();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,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.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,o){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(J){return o}}}(Bt)),Bt}function jt(){return Tt||(Tt=1,function(t){const e=rt(),o=wt(),i=pt(),n=St(),r=Dt(),a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let o=0;return t.forEach(function(t){const i=s(t.mode,e);o+=i+t.getBitsLength()}),o}t.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,i,a){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,i));if(a===n.MIXED)return l;const d=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(d/10*3);case n.ALPHANUMERIC:return Math.floor(d/11*2);case n.KANJI:return Math.floor(d/13);case n.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,o){let r;const a=i.from(o,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,o){for(let i=1;i<=40;i++)if(l(e,i)<=t.getCapacity(i,o,n.MIXED))return i}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,o,i){for(let n=1;n<=40;n++)if(o<=t.getCapacity(n,i,e))return n}(r.mode,r.getLength(),a)},t.getEncodedBits=function(t){if(!r.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;e.getBCHDigit(o)-a>=0;)o^=7973<<e.getBCHDigit(o)-a;return t<<12|o}}(At)),At}var $t,Ut={};var Zt,Ht,Vt,Jt,Kt,qt,Wt,Yt,Xt={};var Qt,Gt,te,ee={exports:{}};function oe(){return Qt||(Qt=1,function(t){var e={single_source_shortest_paths:function(t,o,i){var n={},r={};r[o]=0;var a,s,l,d,c,u,p,h=e.PriorityQueue.make();for(h.push(o,0);!h.empty();)for(l in s=(a=h.pop()).value,d=a.cost,c=t[s]||{})c.hasOwnProperty(l)&&(u=d+c[l],p=r[l],(void 0===r[l]||p>u)&&(r[l]=u,h.push(l,u),n[l]=s));if(void 0!==i&&void 0===r[i]){var g=["Could not find a path from ",o," to ",i,"."].join("");throw new Error(g)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var o=[],i=e;i;)o.push(i),t[i],i=t[i];return o.reverse(),o},find_path:function(t,o,i){var n=e.single_source_shortest_paths(t,o,i);return e.extract_shortest_path_from_predecessor_list(n,i)},PriorityQueue:{make:function(t){var o,i=e.PriorityQueue,n={};for(o in t=t||{},i)i.hasOwnProperty(o)&&(n[o]=i[o]);return n.queue=[],n.sorter=t.sorter||i.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var o={value:t,cost:e};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ee)),ee.exports}function ie(){return Gt||(Gt=1,function(t){const e=St(),o=function(){if(Ht)return Zt;Ht=1;const t=St();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,o,i;for(e=0;e+3<=this.data.length;e+=3)o=this.data.substr(e,3),i=parseInt(o,10),t.put(i,10);const n=this.data.length-e;n>0&&(o=this.data.substr(e),i=parseInt(o,10),t.put(i,3*n+1))},Zt=e}(),i=function(){if(Jt)return Vt;Jt=1;const t=St(),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 o(e){this.mode=t.ALPHANUMERIC,this.data=e}return o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let i=45*e.indexOf(this.data[o]);i+=e.indexOf(this.data[o+1]),t.put(i,11)}this.data.length%2&&t.put(e.indexOf(this.data[o]),6)},Vt=o}(),n=function(){if(qt)return Kt;qt=1;const t=St();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,o=this.data.length;e<o;e++)t.put(this.data[e],8)},Kt=e}(),r=function(){if(Yt)return Wt;Yt=1;const t=St(),e=rt();function o(e){this.mode=t.KANJI,this.data=e}return o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let o;for(o=0;o<this.data.length;o++){let i=e.toSJIS(this.data[o]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13)}},Wt=o}(),a=Ot(),s=rt(),l=oe();function d(t){return unescape(encodeURIComponent(t)).length}function c(t,e,o){const i=[];let n;for(;null!==(n=t.exec(o));)i.push({data:n[0],index:n.index,mode:e,length:n[0].length});return i}function u(t){const o=c(a.NUMERIC,e.NUMERIC,t),i=c(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,r;s.isKanjiModeEnabled()?(n=c(a.BYTE,e.BYTE,t),r=c(a.KANJI,e.KANJI,t)):(n=c(a.BYTE_KANJI,e.BYTE,t),r=[]);return o.concat(i,n,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,a){switch(a){case e.NUMERIC:return o.getBitsLength(t);case e.ALPHANUMERIC:return i.getBitsLength(t);case e.KANJI:return r.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function h(t,a){let l;const d=e.getBestModeForData(t);if(l=e.from(a,d),l!==e.BYTE&&l.bit<d.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(d));switch(l!==e.KANJI||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new o(t);case e.ALPHANUMERIC:return new i(t);case e.KANJI:return new r(t);case e.BYTE:return new n(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(h(e,null)):e.data&&t.push(h(e.data,e.mode)),t},[])},t.fromString=function(o,i){const n=function(t){const o=[];for(let i=0;i<t.length;i++){const n=t[i];switch(n.mode){case e.NUMERIC:o.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:o.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:o.push([n,{data:n.data,mode:e.BYTE,length:d(n.data)}]);break;case e.BYTE:o.push([{data:n.data,mode:e.BYTE,length:d(n.data)}])}}return o}(u(o,s.isKanjiModeEnabled())),r=function(t,o){const i={},n={start:{}};let r=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const d=s[t],c=""+a+t;l.push(c),i[c]={node:d,lastCount:0},n[c]={};for(let t=0;t<r.length;t++){const a=r[t];i[a]&&i[a].node.mode===d.mode?(n[a][c]=p(i[a].lastCount+d.length,d.mode)-p(i[a].lastCount,d.mode),i[a].lastCount+=d.length):(i[a]&&(i[a].lastCount=d.length),n[a][c]=p(d.length,d.mode)+4+e.getCharCountIndicator(d.mode,o))}}r=l}for(let e=0;e<r.length;e++)n[r[e]].end=0;return{map:n,table:i}}(n,i),a=l.find_path(r.map,"start","end"),c=[];for(let t=1;t<a.length-1;t++)c.push(r.table[a[t]].node);return t.fromArray(function(t){return t.reduce(function(t,e){const o=t.length-1>=0?t[t.length-1]:null;return o&&o.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(c))},t.rawSplit=function(e){return t.fromArray(u(e,s.isKanjiModeEnabled()))}}(Xt)),Xt}function ne(){if(te)return it;te=1;const t=rt(),e=pt(),o=function(){if(lt)return st;function t(){this.buffer=[],this.length=0}return lt=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 o=0;o<e;o++)this.putBit(1==(t>>>e-o-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++}},st=t}(),i=function(){if(ct)return dt;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 ct=1,t.prototype.set=function(t,e,o,i){const n=t*this.size+e;this.data[n]=o,i&&(this.reservedBit[n]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,o){this.data[t*this.size+e]^=o},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},dt=t}(),n=(ht||(ht=1,function(t){const e=rt().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const o=Math.floor(t/7)+2,i=e(t),n=145===i?26:2*Math.ceil((i-13)/(2*o-2)),r=[i-7];for(let e=1;e<o-1;e++)r[e]=r[e-1]-n;return r.push(6),r.reverse()},t.getPositions=function(e){const o=[],i=t.getRowColCoords(e),n=i.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||o.push([i[t],i[e]]);return o}}(gt)),gt),r=function(){if(ft)return mt;ft=1;const t=rt().getSymbolSize;return mt.getPositions=function(e){const o=t(e);return[[0,0],[o-7,0],[0,o-7]]},mt}(),a=(bt||(bt=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,o=3,i=40,n=10;function r(e,o,i){switch(e){case t.Patterns.PATTERN000:return(o+i)%2==0;case t.Patterns.PATTERN001:return o%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(o+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return o*i%2+o*i%3==0;case t.Patterns.PATTERN110:return(o*i%2+o*i%3)%2==0;case t.Patterns.PATTERN111:return(o*i%3+(o+i)%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 o=t.size;let i=0,n=0,r=0,a=null,s=null;for(let l=0;l<o;l++){n=r=0,a=s=null;for(let d=0;d<o;d++){let o=t.get(l,d);o===a?n++:(n>=5&&(i+=e+(n-5)),a=o,n=1),o=t.get(d,l),o===s?r++:(r>=5&&(i+=e+(r-5)),s=o,r=1)}n>=5&&(i+=e+(n-5)),r>=5&&(i+=e+(r-5))}return i},t.getPenaltyN2=function(t){const e=t.size;let i=0;for(let o=0;o<e-1;o++)for(let n=0;n<e-1;n++){const e=t.get(o,n)+t.get(o,n+1)+t.get(o+1,n)+t.get(o+1,n+1);4!==e&&0!==e||i++}return i*o},t.getPenaltyN3=function(t){const e=t.size;let o=0,n=0,r=0;for(let i=0;i<e;i++){n=r=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(i,a),a>=10&&(1488===n||93===n)&&o++,r=r<<1&2047|t.get(a,i),a>=10&&(1488===r||93===r)&&o++}return o*i},t.getPenaltyN4=function(t){let e=0;const o=t.data.length;for(let i=0;i<o;i++)e+=t.data[i];return Math.abs(Math.ceil(100*e/o/5)-10)*n},t.applyMask=function(t,e){const o=e.size;for(let i=0;i<o;i++)for(let n=0;n<o;n++)e.isReserved(n,i)||e.xor(n,i,r(t,n,i))},t.getBestMask=function(e,o){const i=Object.keys(t.Patterns).length;let n=0,r=1/0;for(let a=0;a<i;a++){o(a),t.applyMask(a,e);const i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),i<r&&(r=i,n=a)}return n}}(xt)),xt),s=wt(),l=function(){if(Et)return Mt;Et=1;const t=Pt();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 o=new Uint8Array(e.length+this.degree);o.set(e);const i=t.mod(o,this.genPoly),n=this.degree-i.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(i,n),t}return i},Mt=e}(),d=jt(),c=function(){if($t)return Ut;$t=1;const t=rt(),e=t.getBCHDigit(1335);return Ut.getEncodedBits=function(o,i){const n=o.bit<<3|i;let r=n<<10;for(;t.getBCHDigit(r)-e>=0;)r^=1335<<t.getBCHDigit(r)-e;return 21522^(n<<10|r)},Ut}(),u=St(),p=ie();function h(t,e,o){const i=t.size,n=c.getEncodedBits(e,o);let r,a;for(r=0;r<15;r++)a=1==(n>>r&1),r<6?t.set(r,8,a,!0):r<8?t.set(r+1,8,a,!0):t.set(i-15+r,8,a,!0),r<8?t.set(8,i-r-1,a,!0):r<9?t.set(8,15-r-1+1,a,!0):t.set(8,15-r-1,a,!0);t.set(i-8,8,1,!0)}function g(e,i,n){const r=new o;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),u.getCharCountIndicator(t.mode,e)),t.write(r)});const a=8*(t.getSymbolTotalCodewords(e)-s.getTotalCodewordsCount(e,i));for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const d=(a-r.getLengthInBits())/8;for(let t=0;t<d;t++)r.put(t%2?17:236,8);return function(e,o,i){const n=t.getSymbolTotalCodewords(o),r=s.getTotalCodewordsCount(o,i),a=n-r,d=s.getBlocksCount(o,i),c=n%d,u=d-c,p=Math.floor(n/d),h=Math.floor(a/d),g=h+1,f=p-h,m=new l(f);let b=0;const x=new Array(d),v=new Array(d);let y=0;const w=new Uint8Array(e.buffer);for(let t=0;t<d;t++){const e=t<u?h:g;x[t]=w.slice(b,b+e),v[t]=m.encode(x[t]),b+=e,y=Math.max(y,e)}const C=new Uint8Array(n);let k,M,E=0;for(k=0;k<y;k++)for(M=0;M<d;M++)k<x[M].length&&(C[E++]=x[M][k]);for(k=0;k<f;k++)for(M=0;M<d;M++)C[E++]=v[M][k];return C}(r,e,i)}function f(e,o,s,l){let c;if(Array.isArray(e))c=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=o;if(!t){const o=p.rawSplit(e);t=d.getBestVersionForData(o,s)}c=p.fromString(e,t||40)}}const u=d.getBestVersionForData(c,s);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(o){if(o<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 o=u;const f=g(o,s,c),m=t.getSymbolSize(o),b=new i(m);return function(t,e){const o=t.size,i=r.getPositions(e);for(let n=0;n<i.length;n++){const e=i[n][0],r=i[n][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||o<=e+i))for(let n=-1;n<=7;n++)r+n<=-1||o<=r+n||(i>=0&&i<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===i||6===i)||i>=2&&i<=4&&n>=2&&n<=4?t.set(e+i,r+n,!0,!0):t.set(e+i,r+n,!1,!0))}}(b,o),function(t){const e=t.size;for(let o=8;o<e-8;o++){const e=o%2==0;t.set(o,6,e,!0),t.set(6,o,e,!0)}}(b),function(t,e){const o=n.getPositions(e);for(let i=0;i<o.length;i++){const e=o[i][0],n=o[i][1];for(let o=-2;o<=2;o++)for(let i=-2;i<=2;i++)-2===o||2===o||-2===i||2===i||0===o&&0===i?t.set(e+o,n+i,!0,!0):t.set(e+o,n+i,!1,!0)}}(b,o),h(b,s,0),o>=7&&function(t,e){const o=t.size,i=d.getEncodedBits(e);let n,r,a;for(let s=0;s<18;s++)n=Math.floor(s/3),r=s%3+o-8-3,a=1==(i>>s&1),t.set(n,r,a,!0),t.set(r,n,a,!0)}(b,o),function(t,e){const o=t.size;let i=-1,n=o-1,r=7,a=0;for(let s=o-1;s>0;s-=2)for(6===s&&s--;;){for(let o=0;o<2;o++)if(!t.isReserved(n,s-o)){let i=!1;a<e.length&&(i=1==(e[a]>>>r&1)),t.set(n,s-o,i),r--,-1===r&&(a++,r=7)}if(n+=i,n<0||o<=n){n-=i,i=-i;break}}}(b,f),isNaN(l)&&(l=a.getBestMask(b,h.bind(null,b,s))),a.applyMask(l,b),h(b,s,l),{modules:b,version:o,errorCorrectionLevel:s,maskPattern:l,segments:c}}return it.create=function(o,i){if(void 0===o||""===o)throw new Error("No input text");let n,r,s=e.M;return void 0!==i&&(s=e.from(i.errorCorrectionLevel,e.M),n=d.from(i.version),r=a.from(i.maskPattern),i.toSJISFunc&&t.setToSJISFunction(i.toSJISFunc)),f(o,n,s,r)},it}var re,ae,se={},le={};function de(){return re||(re=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 o=parseInt(e.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const o=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:i,scale:i?4:n,margin:o,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,o){const i=t.getScale(e,o);return Math.floor((e+2*o.margin)*i)},t.qrToImageData=function(e,o,i){const n=o.modules.size,r=o.modules.data,a=t.getScale(n,i),s=Math.floor((n+2*i.margin)*a),l=i.margin*a,d=[i.color.light,i.color.dark];for(let t=0;t<s;t++)for(let o=0;o<s;o++){let c=4*(t*s+o),u=i.color.light;if(t>=l&&o>=l&&t<s-l&&o<s-l){u=d[r[Math.floor((t-l)/a)*n+Math.floor((o-l)/a)]?1:0]}e[c++]=u.r,e[c++]=u.g,e[c++]=u.b,e[c]=u.a}}}(le)),le}function ce(){return ae||(ae=1,function(t){const e=de();t.render=function(t,o,i){let n=i,r=o;void 0!==n||o&&o.getContext||(n=o,o=void 0),o||(r=function(){try{return document.createElement("canvas")}catch(J){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=r.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,o){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=o,e.width=o,e.style.height=o+"px",e.style.width=o+"px"}(s,r,a),s.putImageData(l,0,0),r},t.renderToDataURL=function(e,o,i){let n=i;void 0!==n||o&&o.getContext||(n=o,o=void 0),n||(n={});const r=t.render(e,o,n),a=n.type||"image/png",s=n.rendererOpts||{};return r.toDataURL(a,s.quality)}}(se)),se}var ue,pe,he={};function ge(){if(ue)return he;ue=1;const t=de();function e(t,e){const o=t.a/255,i=e+'="'+t.hex+'"';return o<1?i+" "+e+'-opacity="'+o.toFixed(2).slice(1)+'"':i}function o(t,e,o){let i=t+e;return void 0!==o&&(i+=" "+o),i}return he.render=function(i,n,r){const a=t.getOptions(n),s=i.modules.size,l=i.modules.data,d=s+2*a.margin,c=a.color.light.a?"<path "+e(a.color.light,"fill")+' d="M0 0h'+d+"v"+d+'H0z"/>':"",u="<path "+e(a.color.dark,"stroke")+' d="'+function(t,e,i){let n="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const d=Math.floor(l%e),c=Math.floor(l/e);d||a||(a=!0),t[l]?(s++,l>0&&d>0&&t[l-1]||(n+=a?o("M",d+i,.5+c+i):o("m",r,0),r=0,a=!1),d+1<e&&t[l+1]||(n+=o("h",s),s=0)):r++}return n}(l,s,a.margin)+'"/>',p='viewBox="0 0 '+d+" "+d+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+p+' shape-rendering="crispEdges">'+c+u+"</svg>\n";return"function"==typeof r&&r(null,h),h},he}var fe=function(){if(pe)return tt;pe=1;const t=et(),e=ne(),o=ce(),i=ge();function n(o,i,n,r,a){const s=[].slice.call(arguments,1),l=s.length,d="function"==typeof s[l-1];if(!d&&!t())throw new Error("Callback required as last argument");if(!d){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=i,i=r=void 0):2!==l||i.getContext||(r=n,n=i,i=void 0),new Promise(function(t,a){try{const a=e.create(n,r);t(o(a,i,r))}catch(J){a(J)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=i,i=r=void 0):3===l&&(i.getContext&&void 0===a?(a=r,r=void 0):(a=r,r=n,n=i,i=void 0));try{const t=e.create(n,r);a(null,o(t,i,r))}catch(J){a(J)}}return tt.create=e.create,tt.toCanvas=n.bind(null,o.render),tt.toDataURL=n.bind(null,o.renderToDataURL),tt.toString=n.bind(null,function(t,e,o){return i.render(t,o)}),tt}();var me=Object.defineProperty,be=Object.getOwnPropertyDescriptor,xe=(t,e,o,i)=>{for(var n,r=i>1?void 0:i?be(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(i?n(e,o,r):n(r))||r);return i&&r&&me(e,o,r),r};let ve=class extends t{updated(){const{originId:t,destinationId:e,generalConfig:o}=this.sdkData??{};if((t!==this.lastOriginId||e!==this.lastDestinationId)&&t&&e&&o){this.lastOriginId=t,this.lastDestinationId=e;const{baseUrl:i}=o,n=`${i}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,r={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};fe.toDataURL(n,r).then(o=>{const i=this.shadowRoot?.getElementById("qr");i&&i instanceof HTMLImageElement&&(i.src=o,l.getInstance().trackEvent("qr_modal_displayed",{origin_id:t,destination_id:e,qr_url:n}))})}}render(){const{cameraInitialized:t}=this.sdkData??{};return e`
|
|
213
|
-
<div class=${
|
|
212
|
+
`}};Y.styles=[o(':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;z-index:9999}.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;z-index:9999}.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}}')],Y=((t,e,o,i)=>{for(var n,r=i>1?void 0:i?W(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=n(r)||r);return r})([a("floor-selector")],Y);const X=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get FloorSelector(){return Y}},Symbol.toStringTag,{value:"Module"}));var Q,G,tt={};function et(){return G?Q:(G=1,Q=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var ot,it={},nt={};function rt(){if(ot)return nt;let t;ot=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 nt.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},nt.getSymbolTotalCodewords=function(t){return e[t]},nt.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},nt.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},nt.isKanjiModeEnabled=function(){return void 0!==t},nt.toSJIS=function(e){return t(e)},nt}var at,st,lt,dt,ct,ut={};function pt(){return at||(at=1,(t=ut).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,o){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(K){return o}}),ut;var t}var ht,gt={};var ft,mt={};var bt,xt={};var vt,yt={};function wt(){if(vt)return yt;vt=1;const t=pt(),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],o=[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 yt.getBlocksCount=function(o,i){switch(i){case t.L:return e[4*(o-1)+0];case t.M:return e[4*(o-1)+1];case t.Q:return e[4*(o-1)+2];case t.H:return e[4*(o-1)+3];default:return}},yt.getTotalCodewordsCount=function(e,i){switch(i){case t.L:return o[4*(e-1)+0];case t.M:return o[4*(e-1)+1];case t.Q:return o[4*(e-1)+2];case t.H:return o[4*(e-1)+3];default:return}},yt}var Ct,kt,Mt,Et,zt={},It={};function Pt(){return kt||(kt=1,function(t){const e=function(){if(Ct)return It;Ct=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let o=1;for(let i=0;i<255;i++)t[i]=o,e[o]=i,o<<=1,256&o&&(o^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),It.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},It.exp=function(e){return t[e]},It.mul=function(o,i){return 0===o||0===i?0:t[e[o]+e[i]]},It}();t.mul=function(t,o){const i=new Uint8Array(t.length+o.length-1);for(let n=0;n<t.length;n++)for(let r=0;r<o.length;r++)i[n+r]^=e.mul(t[n],o[r]);return i},t.mod=function(t,o){let i=new Uint8Array(t);for(;i.length-o.length>=0;){const t=i[0];for(let r=0;r<o.length;r++)i[r]^=e.mul(o[r],t);let n=0;for(;n<i.length&&0===i[n];)n++;i=i.slice(n)}return i},t.generateECPolynomial=function(o){let i=new Uint8Array([1]);for(let n=0;n<o;n++)i=t.mul(i,new Uint8Array([1,e.exp(n)]));return i}}(zt)),zt}var Rt,At={},Bt={},Ft={};function Dt(){return Rt||(Rt=1,Ft.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Ft}var _t,Lt,Nt,Tt={};function Ot(){if(_t)return Tt;_t=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 o="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Tt.KANJI=new RegExp(e,"g"),Tt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Tt.BYTE=new RegExp(o,"g"),Tt.NUMERIC=new RegExp(t,"g"),Tt.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+e+"$"),n=new RegExp("^"+t+"$"),r=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Tt.testKanji=function(t){return i.test(t)},Tt.testNumeric=function(t){return n.test(t)},Tt.testAlphanumeric=function(t){return r.test(t)},Tt}function St(){return Lt||(Lt=1,function(t){const e=Dt(),o=Ot();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,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.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,o){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(K){return o}}}(Bt)),Bt}function jt(){return Nt||(Nt=1,function(t){const e=rt(),o=wt(),i=pt(),n=St(),r=Dt(),a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let o=0;return t.forEach(function(t){const i=s(t.mode,e);o+=i+t.getBitsLength()}),o}t.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,i,a){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,i));if(a===n.MIXED)return l;const d=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(d/10*3);case n.ALPHANUMERIC:return Math.floor(d/11*2);case n.KANJI:return Math.floor(d/13);case n.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,o){let r;const a=i.from(o,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,o){for(let i=1;i<=40;i++)if(l(e,i)<=t.getCapacity(i,o,n.MIXED))return i}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,o,i){for(let n=1;n<=40;n++)if(o<=t.getCapacity(n,i,e))return n}(r.mode,r.getLength(),a)},t.getEncodedBits=function(t){if(!r.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;e.getBCHDigit(o)-a>=0;)o^=7973<<e.getBCHDigit(o)-a;return t<<12|o}}(At)),At}var $t,Ut={};var Zt,Ht,Vt,Kt,Jt,qt,Wt,Yt,Xt={};var Qt,Gt,te,ee={exports:{}};function oe(){return Qt||(Qt=1,function(t){var e={single_source_shortest_paths:function(t,o,i){var n={},r={};r[o]=0;var a,s,l,d,c,u,p,h=e.PriorityQueue.make();for(h.push(o,0);!h.empty();)for(l in s=(a=h.pop()).value,d=a.cost,c=t[s]||{})c.hasOwnProperty(l)&&(u=d+c[l],p=r[l],(void 0===r[l]||p>u)&&(r[l]=u,h.push(l,u),n[l]=s));if(void 0!==i&&void 0===r[i]){var g=["Could not find a path from ",o," to ",i,"."].join("");throw new Error(g)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var o=[],i=e;i;)o.push(i),t[i],i=t[i];return o.reverse(),o},find_path:function(t,o,i){var n=e.single_source_shortest_paths(t,o,i);return e.extract_shortest_path_from_predecessor_list(n,i)},PriorityQueue:{make:function(t){var o,i=e.PriorityQueue,n={};for(o in t=t||{},i)i.hasOwnProperty(o)&&(n[o]=i[o]);return n.queue=[],n.sorter=t.sorter||i.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var o={value:t,cost:e};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ee)),ee.exports}function ie(){return Gt||(Gt=1,function(t){const e=St(),o=function(){if(Ht)return Zt;Ht=1;const t=St();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,o,i;for(e=0;e+3<=this.data.length;e+=3)o=this.data.substr(e,3),i=parseInt(o,10),t.put(i,10);const n=this.data.length-e;n>0&&(o=this.data.substr(e),i=parseInt(o,10),t.put(i,3*n+1))},Zt=e}(),i=function(){if(Kt)return Vt;Kt=1;const t=St(),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 o(e){this.mode=t.ALPHANUMERIC,this.data=e}return o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let i=45*e.indexOf(this.data[o]);i+=e.indexOf(this.data[o+1]),t.put(i,11)}this.data.length%2&&t.put(e.indexOf(this.data[o]),6)},Vt=o}(),n=function(){if(qt)return Jt;qt=1;const t=St();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,o=this.data.length;e<o;e++)t.put(this.data[e],8)},Jt=e}(),r=function(){if(Yt)return Wt;Yt=1;const t=St(),e=rt();function o(e){this.mode=t.KANJI,this.data=e}return o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let o;for(o=0;o<this.data.length;o++){let i=e.toSJIS(this.data[o]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13)}},Wt=o}(),a=Ot(),s=rt(),l=oe();function d(t){return unescape(encodeURIComponent(t)).length}function c(t,e,o){const i=[];let n;for(;null!==(n=t.exec(o));)i.push({data:n[0],index:n.index,mode:e,length:n[0].length});return i}function u(t){const o=c(a.NUMERIC,e.NUMERIC,t),i=c(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,r;s.isKanjiModeEnabled()?(n=c(a.BYTE,e.BYTE,t),r=c(a.KANJI,e.KANJI,t)):(n=c(a.BYTE_KANJI,e.BYTE,t),r=[]);return o.concat(i,n,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,a){switch(a){case e.NUMERIC:return o.getBitsLength(t);case e.ALPHANUMERIC:return i.getBitsLength(t);case e.KANJI:return r.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function h(t,a){let l;const d=e.getBestModeForData(t);if(l=e.from(a,d),l!==e.BYTE&&l.bit<d.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(d));switch(l!==e.KANJI||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new o(t);case e.ALPHANUMERIC:return new i(t);case e.KANJI:return new r(t);case e.BYTE:return new n(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(h(e,null)):e.data&&t.push(h(e.data,e.mode)),t},[])},t.fromString=function(o,i){const n=function(t){const o=[];for(let i=0;i<t.length;i++){const n=t[i];switch(n.mode){case e.NUMERIC:o.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:o.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:o.push([n,{data:n.data,mode:e.BYTE,length:d(n.data)}]);break;case e.BYTE:o.push([{data:n.data,mode:e.BYTE,length:d(n.data)}])}}return o}(u(o,s.isKanjiModeEnabled())),r=function(t,o){const i={},n={start:{}};let r=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const d=s[t],c=""+a+t;l.push(c),i[c]={node:d,lastCount:0},n[c]={};for(let t=0;t<r.length;t++){const a=r[t];i[a]&&i[a].node.mode===d.mode?(n[a][c]=p(i[a].lastCount+d.length,d.mode)-p(i[a].lastCount,d.mode),i[a].lastCount+=d.length):(i[a]&&(i[a].lastCount=d.length),n[a][c]=p(d.length,d.mode)+4+e.getCharCountIndicator(d.mode,o))}}r=l}for(let e=0;e<r.length;e++)n[r[e]].end=0;return{map:n,table:i}}(n,i),a=l.find_path(r.map,"start","end"),c=[];for(let t=1;t<a.length-1;t++)c.push(r.table[a[t]].node);return t.fromArray(function(t){return t.reduce(function(t,e){const o=t.length-1>=0?t[t.length-1]:null;return o&&o.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(c))},t.rawSplit=function(e){return t.fromArray(u(e,s.isKanjiModeEnabled()))}}(Xt)),Xt}function ne(){if(te)return it;te=1;const t=rt(),e=pt(),o=function(){if(lt)return st;function t(){this.buffer=[],this.length=0}return lt=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 o=0;o<e;o++)this.putBit(1==(t>>>e-o-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++}},st=t}(),i=function(){if(ct)return dt;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 ct=1,t.prototype.set=function(t,e,o,i){const n=t*this.size+e;this.data[n]=o,i&&(this.reservedBit[n]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,o){this.data[t*this.size+e]^=o},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},dt=t}(),n=(ht||(ht=1,function(t){const e=rt().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const o=Math.floor(t/7)+2,i=e(t),n=145===i?26:2*Math.ceil((i-13)/(2*o-2)),r=[i-7];for(let e=1;e<o-1;e++)r[e]=r[e-1]-n;return r.push(6),r.reverse()},t.getPositions=function(e){const o=[],i=t.getRowColCoords(e),n=i.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||o.push([i[t],i[e]]);return o}}(gt)),gt),r=function(){if(ft)return mt;ft=1;const t=rt().getSymbolSize;return mt.getPositions=function(e){const o=t(e);return[[0,0],[o-7,0],[0,o-7]]},mt}(),a=(bt||(bt=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,o=3,i=40,n=10;function r(e,o,i){switch(e){case t.Patterns.PATTERN000:return(o+i)%2==0;case t.Patterns.PATTERN001:return o%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(o+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return o*i%2+o*i%3==0;case t.Patterns.PATTERN110:return(o*i%2+o*i%3)%2==0;case t.Patterns.PATTERN111:return(o*i%3+(o+i)%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 o=t.size;let i=0,n=0,r=0,a=null,s=null;for(let l=0;l<o;l++){n=r=0,a=s=null;for(let d=0;d<o;d++){let o=t.get(l,d);o===a?n++:(n>=5&&(i+=e+(n-5)),a=o,n=1),o=t.get(d,l),o===s?r++:(r>=5&&(i+=e+(r-5)),s=o,r=1)}n>=5&&(i+=e+(n-5)),r>=5&&(i+=e+(r-5))}return i},t.getPenaltyN2=function(t){const e=t.size;let i=0;for(let o=0;o<e-1;o++)for(let n=0;n<e-1;n++){const e=t.get(o,n)+t.get(o,n+1)+t.get(o+1,n)+t.get(o+1,n+1);4!==e&&0!==e||i++}return i*o},t.getPenaltyN3=function(t){const e=t.size;let o=0,n=0,r=0;for(let i=0;i<e;i++){n=r=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(i,a),a>=10&&(1488===n||93===n)&&o++,r=r<<1&2047|t.get(a,i),a>=10&&(1488===r||93===r)&&o++}return o*i},t.getPenaltyN4=function(t){let e=0;const o=t.data.length;for(let i=0;i<o;i++)e+=t.data[i];return Math.abs(Math.ceil(100*e/o/5)-10)*n},t.applyMask=function(t,e){const o=e.size;for(let i=0;i<o;i++)for(let n=0;n<o;n++)e.isReserved(n,i)||e.xor(n,i,r(t,n,i))},t.getBestMask=function(e,o){const i=Object.keys(t.Patterns).length;let n=0,r=1/0;for(let a=0;a<i;a++){o(a),t.applyMask(a,e);const i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),i<r&&(r=i,n=a)}return n}}(xt)),xt),s=wt(),l=function(){if(Et)return Mt;Et=1;const t=Pt();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 o=new Uint8Array(e.length+this.degree);o.set(e);const i=t.mod(o,this.genPoly),n=this.degree-i.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(i,n),t}return i},Mt=e}(),d=jt(),c=function(){if($t)return Ut;$t=1;const t=rt(),e=t.getBCHDigit(1335);return Ut.getEncodedBits=function(o,i){const n=o.bit<<3|i;let r=n<<10;for(;t.getBCHDigit(r)-e>=0;)r^=1335<<t.getBCHDigit(r)-e;return 21522^(n<<10|r)},Ut}(),u=St(),p=ie();function h(t,e,o){const i=t.size,n=c.getEncodedBits(e,o);let r,a;for(r=0;r<15;r++)a=1==(n>>r&1),r<6?t.set(r,8,a,!0):r<8?t.set(r+1,8,a,!0):t.set(i-15+r,8,a,!0),r<8?t.set(8,i-r-1,a,!0):r<9?t.set(8,15-r-1+1,a,!0):t.set(8,15-r-1,a,!0);t.set(i-8,8,1,!0)}function g(e,i,n){const r=new o;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),u.getCharCountIndicator(t.mode,e)),t.write(r)});const a=8*(t.getSymbolTotalCodewords(e)-s.getTotalCodewordsCount(e,i));for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const d=(a-r.getLengthInBits())/8;for(let t=0;t<d;t++)r.put(t%2?17:236,8);return function(e,o,i){const n=t.getSymbolTotalCodewords(o),r=s.getTotalCodewordsCount(o,i),a=n-r,d=s.getBlocksCount(o,i),c=n%d,u=d-c,p=Math.floor(n/d),h=Math.floor(a/d),g=h+1,f=p-h,m=new l(f);let b=0;const x=new Array(d),v=new Array(d);let y=0;const w=new Uint8Array(e.buffer);for(let t=0;t<d;t++){const e=t<u?h:g;x[t]=w.slice(b,b+e),v[t]=m.encode(x[t]),b+=e,y=Math.max(y,e)}const C=new Uint8Array(n);let k,M,E=0;for(k=0;k<y;k++)for(M=0;M<d;M++)k<x[M].length&&(C[E++]=x[M][k]);for(k=0;k<f;k++)for(M=0;M<d;M++)C[E++]=v[M][k];return C}(r,e,i)}function f(e,o,s,l){let c;if(Array.isArray(e))c=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=o;if(!t){const o=p.rawSplit(e);t=d.getBestVersionForData(o,s)}c=p.fromString(e,t||40)}}const u=d.getBestVersionForData(c,s);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(o){if(o<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 o=u;const f=g(o,s,c),m=t.getSymbolSize(o),b=new i(m);return function(t,e){const o=t.size,i=r.getPositions(e);for(let n=0;n<i.length;n++){const e=i[n][0],r=i[n][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||o<=e+i))for(let n=-1;n<=7;n++)r+n<=-1||o<=r+n||(i>=0&&i<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===i||6===i)||i>=2&&i<=4&&n>=2&&n<=4?t.set(e+i,r+n,!0,!0):t.set(e+i,r+n,!1,!0))}}(b,o),function(t){const e=t.size;for(let o=8;o<e-8;o++){const e=o%2==0;t.set(o,6,e,!0),t.set(6,o,e,!0)}}(b),function(t,e){const o=n.getPositions(e);for(let i=0;i<o.length;i++){const e=o[i][0],n=o[i][1];for(let o=-2;o<=2;o++)for(let i=-2;i<=2;i++)-2===o||2===o||-2===i||2===i||0===o&&0===i?t.set(e+o,n+i,!0,!0):t.set(e+o,n+i,!1,!0)}}(b,o),h(b,s,0),o>=7&&function(t,e){const o=t.size,i=d.getEncodedBits(e);let n,r,a;for(let s=0;s<18;s++)n=Math.floor(s/3),r=s%3+o-8-3,a=1==(i>>s&1),t.set(n,r,a,!0),t.set(r,n,a,!0)}(b,o),function(t,e){const o=t.size;let i=-1,n=o-1,r=7,a=0;for(let s=o-1;s>0;s-=2)for(6===s&&s--;;){for(let o=0;o<2;o++)if(!t.isReserved(n,s-o)){let i=!1;a<e.length&&(i=1==(e[a]>>>r&1)),t.set(n,s-o,i),r--,-1===r&&(a++,r=7)}if(n+=i,n<0||o<=n){n-=i,i=-i;break}}}(b,f),isNaN(l)&&(l=a.getBestMask(b,h.bind(null,b,s))),a.applyMask(l,b),h(b,s,l),{modules:b,version:o,errorCorrectionLevel:s,maskPattern:l,segments:c}}return it.create=function(o,i){if(void 0===o||""===o)throw new Error("No input text");let n,r,s=e.M;return void 0!==i&&(s=e.from(i.errorCorrectionLevel,e.M),n=d.from(i.version),r=a.from(i.maskPattern),i.toSJISFunc&&t.setToSJISFunction(i.toSJISFunc)),f(o,n,s,r)},it}var re,ae,se={},le={};function de(){return re||(re=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 o=parseInt(e.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const o=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:i,scale:i?4:n,margin:o,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,o){const i=t.getScale(e,o);return Math.floor((e+2*o.margin)*i)},t.qrToImageData=function(e,o,i){const n=o.modules.size,r=o.modules.data,a=t.getScale(n,i),s=Math.floor((n+2*i.margin)*a),l=i.margin*a,d=[i.color.light,i.color.dark];for(let t=0;t<s;t++)for(let o=0;o<s;o++){let c=4*(t*s+o),u=i.color.light;if(t>=l&&o>=l&&t<s-l&&o<s-l){u=d[r[Math.floor((t-l)/a)*n+Math.floor((o-l)/a)]?1:0]}e[c++]=u.r,e[c++]=u.g,e[c++]=u.b,e[c]=u.a}}}(le)),le}function ce(){return ae||(ae=1,function(t){const e=de();t.render=function(t,o,i){let n=i,r=o;void 0!==n||o&&o.getContext||(n=o,o=void 0),o||(r=function(){try{return document.createElement("canvas")}catch(K){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=r.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,o){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=o,e.width=o,e.style.height=o+"px",e.style.width=o+"px"}(s,r,a),s.putImageData(l,0,0),r},t.renderToDataURL=function(e,o,i){let n=i;void 0!==n||o&&o.getContext||(n=o,o=void 0),n||(n={});const r=t.render(e,o,n),a=n.type||"image/png",s=n.rendererOpts||{};return r.toDataURL(a,s.quality)}}(se)),se}var ue,pe,he={};function ge(){if(ue)return he;ue=1;const t=de();function e(t,e){const o=t.a/255,i=e+'="'+t.hex+'"';return o<1?i+" "+e+'-opacity="'+o.toFixed(2).slice(1)+'"':i}function o(t,e,o){let i=t+e;return void 0!==o&&(i+=" "+o),i}return he.render=function(i,n,r){const a=t.getOptions(n),s=i.modules.size,l=i.modules.data,d=s+2*a.margin,c=a.color.light.a?"<path "+e(a.color.light,"fill")+' d="M0 0h'+d+"v"+d+'H0z"/>':"",u="<path "+e(a.color.dark,"stroke")+' d="'+function(t,e,i){let n="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const d=Math.floor(l%e),c=Math.floor(l/e);d||a||(a=!0),t[l]?(s++,l>0&&d>0&&t[l-1]||(n+=a?o("M",d+i,.5+c+i):o("m",r,0),r=0,a=!1),d+1<e&&t[l+1]||(n+=o("h",s),s=0)):r++}return n}(l,s,a.margin)+'"/>',p='viewBox="0 0 '+d+" "+d+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+p+' shape-rendering="crispEdges">'+c+u+"</svg>\n";return"function"==typeof r&&r(null,h),h},he}var fe=function(){if(pe)return tt;pe=1;const t=et(),e=ne(),o=ce(),i=ge();function n(o,i,n,r,a){const s=[].slice.call(arguments,1),l=s.length,d="function"==typeof s[l-1];if(!d&&!t())throw new Error("Callback required as last argument");if(!d){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=i,i=r=void 0):2!==l||i.getContext||(r=n,n=i,i=void 0),new Promise(function(t,a){try{const a=e.create(n,r);t(o(a,i,r))}catch(K){a(K)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=i,i=r=void 0):3===l&&(i.getContext&&void 0===a?(a=r,r=void 0):(a=r,r=n,n=i,i=void 0));try{const t=e.create(n,r);a(null,o(t,i,r))}catch(K){a(K)}}return tt.create=e.create,tt.toCanvas=n.bind(null,o.render),tt.toDataURL=n.bind(null,o.renderToDataURL),tt.toString=n.bind(null,function(t,e,o){return i.render(t,o)}),tt}();var me=Object.defineProperty,be=Object.getOwnPropertyDescriptor,xe=(t,e,o,i)=>{for(var n,r=i>1?void 0:i?be(e,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(i?n(e,o,r):n(r))||r);return i&&r&&me(e,o,r),r};let ve=class extends t{updated(){const{originId:t,destinationId:e,generalConfig:o}=this.sdkData??{};if((t!==this.lastOriginId||e!==this.lastDestinationId)&&t&&e&&o){this.lastOriginId=t,this.lastDestinationId=e;const{baseUrl:i}=o,n=`${i}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,r={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};fe.toDataURL(n,r).then(o=>{const i=this.shadowRoot?.getElementById("qr");i&&i instanceof HTMLImageElement&&(i.src=o,l.getInstance().trackEvent("qr_modal_displayed",{origin_id:t,destination_id:e,qr_url:n}))})}}render(){const{cameraInitialized:t}=this.sdkData??{};return e`
|
|
213
|
+
<div class=${K({card:!0,hidden:!t})}>
|
|
214
214
|
<div class="modal-content">
|
|
215
215
|
<div class="pin-container">
|
|
216
216
|
<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>
|
|
@@ -332,5 +332,5 @@ function m({context:t,subscribe:e}){return(o,i)=>{"object"==typeof i?i.addInitia
|
|
|
332
332
|
</div>
|
|
333
333
|
</div>
|
|
334
334
|
`:""}
|
|
335
|
-
`}};Me.styles=[o(":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}.error-modal-overlay{position:fixed;inset:0;background:#00000080;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000}.error-modal{background:#fff;color:#11032b;border-radius:24px;padding:32px;text-align:center;max-width:350px;box-shadow:0 0 24px #0000004d;animation:fadeInScale .2s ease-out}@keyframes fadeInScale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.error-icon{margin-bottom:16px;color:#11032b}.error-message{font-size:18px;margin:0 0 24px;line-height:1.4;font-weight:500}.error-btn{background:#11032b;color:#fff;border:none;border-radius:30px;padding:12px 40px;font-size:16px;font-weight:600;cursor:pointer;transition:background-color .2s ease}.error-btn:hover{background:#1a0540}.loading-overlay{position:fixed;inset:0;background:#ffffffd9;backdrop-filter:blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999}.loading-spinner{width:60px;height:60px;border:4px solid #f3f3f3;border-top:4px solid #11032b;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{margin-top:16px;font-size:18px;font-weight:600;color:#11032b}.error-icon.network-error{color:#e74c3c}")],ke([m({context:x,subscribe:!0})],Me.prototype,"sdkData",2),Me=ke([a("route-options")],Me);const Ee=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get RouteOptions(){return Me}},Symbol.toStringTag,{value:"Module"}));export{q as B,Z as c,
|
|
336
|
-
//# sourceMappingURL=components-
|
|
335
|
+
`}};Me.styles=[o(":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}.error-modal-overlay{position:fixed;inset:0;background:#00000080;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000}.error-modal{background:#fff;color:#11032b;border-radius:24px;padding:32px;text-align:center;max-width:350px;box-shadow:0 0 24px #0000004d;animation:fadeInScale .2s ease-out}@keyframes fadeInScale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.error-icon{margin-bottom:16px;color:#11032b}.error-message{font-size:18px;margin:0 0 24px;line-height:1.4;font-weight:500}.error-btn{background:#11032b;color:#fff;border:none;border-radius:30px;padding:12px 40px;font-size:16px;font-weight:600;cursor:pointer;transition:background-color .2s ease}.error-btn:hover{background:#1a0540}.loading-overlay{position:fixed;inset:0;background:#ffffffd9;backdrop-filter:blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999}.loading-spinner{width:60px;height:60px;border:4px solid #f3f3f3;border-top:4px solid #11032b;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{margin-top:16px;font-size:18px;font-weight:600;color:#11032b}.error-icon.network-error{color:#e74c3c}")],ke([m({context:x,subscribe:!0})],Me.prototype,"sdkData",2),Me=ke([a("route-options")],Me);const Ee=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get RouteOptions(){return Me}},Symbol.toStringTag,{value:"Module"}));export{q as B,Z as c,K as e,X as f,b as g,f as i,ye as q,Ee as r,x as s};
|
|
336
|
+
//# sourceMappingURL=components-BfTs1Lia.js.map
|