@mapvx/web-components 0.0.42 → 0.0.44
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/accessibility-DWoi6we_.cjs.map +1 -0
- package/dist/cjs/back_arrow-DNrh84z6.cjs.map +1 -0
- package/dist/cjs/{base-floor-selector-CI6AJqe_.cjs → base-floor-selector-BYzOxwC-.cjs} +2 -2
- package/dist/cjs/base-floor-selector-BYzOxwC-.cjs.map +1 -0
- package/dist/cjs/{class-map-KMSfgH43.cjs → class-map-BFfMTXrr.cjs} +2 -2
- package/dist/cjs/class-map-BFfMTXrr.cjs.map +1 -0
- package/dist/cjs/{compact-floor-selector-D8x_OiE6.cjs → compact-floor-selector-Bvok_dE2.cjs} +2 -2
- package/dist/cjs/compact-floor-selector-Bvok_dE2.cjs.map +1 -0
- package/dist/cjs/{consume-XCC5o-eZ.cjs → consume-BOmyj_rQ.cjs} +2 -2
- package/dist/cjs/consume-BOmyj_rQ.cjs.map +1 -0
- package/dist/cjs/custom-map-C-LoXehw.cjs +164 -0
- package/dist/cjs/custom-map-C-LoXehw.cjs.map +1 -0
- package/dist/cjs/{floor-selector-BazXyZTS.cjs → floor-selector-DcGpBt7k.cjs} +2 -2
- package/dist/cjs/floor-selector-DcGpBt7k.cjs.map +1 -0
- package/dist/cjs/icon-destination-point-C8Bl9rvO.cjs.map +1 -0
- package/dist/cjs/icon-origin-point-B0FLE42C.cjs.map +1 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/{lazy-load-adpISPJL.cjs → lazy-load-B1s2-mBw.cjs} +2 -2
- package/dist/cjs/lazy-load-B1s2-mBw.cjs.map +1 -0
- package/dist/cjs/map-view-with-modal.cjs +1 -1
- package/dist/cjs/map-view-with-modal.cjs.map +1 -0
- package/dist/cjs/{qr-modal-BkmkvvKD.cjs → qr-modal-tIOk9xCq.cjs} +2 -2
- package/dist/cjs/qr-modal-tIOk9xCq.cjs.map +1 -0
- package/dist/cjs/repeat_icon-DBYc7GBB.cjs.map +1 -0
- package/dist/cjs/{route-options-DXuN5owb.cjs → route-options-y1NjiMqC.cjs} +2 -2
- package/dist/cjs/route-options-y1NjiMqC.cjs.map +1 -0
- package/dist/cjs/route-view-totems.cjs +1 -1
- package/dist/cjs/route-view-totems.cjs.map +1 -0
- package/dist/cjs/styles-Bt354u5n.cjs.map +1 -0
- package/dist/cjs/walking-CDbgxjU4.cjs.map +1 -0
- package/dist/es/assets/accessibility-D3Vyfstu.js.map +1 -0
- package/dist/es/assets/back_arrow-B3RltzaY.js.map +1 -0
- package/dist/es/assets/{compact-floor-selector-BVF9pPKo.js → compact-floor-selector-Vf-RNjaR.js} +2 -2
- package/dist/es/assets/compact-floor-selector-Vf-RNjaR.js.map +1 -0
- package/dist/es/assets/{components-9th9lb7v.js → components-D2U78N9l.js} +4 -4
- package/dist/es/assets/components-D2U78N9l.js.map +1 -0
- package/dist/es/assets/icon-destination-point-DEI58b8w.js.map +1 -0
- package/dist/es/assets/icon-origin-point-GS06gE2l.js.map +1 -0
- package/dist/es/assets/{map-view-with-modal-DmQa3IAV.js → map-view-with-modal-BZKlMCDV.js} +2 -2
- package/dist/es/assets/map-view-with-modal-BZKlMCDV.js.map +1 -0
- package/dist/es/assets/repeat_icon-DN4_p9eh.js.map +1 -0
- package/dist/es/assets/{route-view-totems-LDoUrJDW.js → route-view-totems-CSjhqQyq.js} +4 -4
- package/dist/es/assets/route-view-totems-CSjhqQyq.js.map +1 -0
- package/dist/es/assets/styles-BByP6ECU.js.map +1 -0
- package/dist/es/assets/{utils-DPoAOsZP.js → utils-5tYB0QdW.js} +2 -2
- package/dist/es/assets/utils-5tYB0QdW.js.map +1 -0
- package/dist/es/assets/walking-BggsSG4g.js.map +1 -0
- package/dist/es/index.js +1 -1
- package/dist/es/index.js.map +1 -0
- package/dist/es/route-view-totems.js +1 -1
- package/dist/es/route-view-totems.js.map +1 -0
- package/dist/iife/map-view-with-modal.js +1 -1
- package/dist/iife/map-view-with-modal.js.map +1 -0
- package/dist/iife/route-view-totems.js +1 -1
- package/dist/iife/route-view-totems.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/custom-map-5vaHl4Sn.cjs +0 -164
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./consume-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./consume-BOmyj_rQ.cjs"),t=require("./lazy-load-B1s2-mBw.cjs");var i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=(e,t,s,r)=>{for(var n,a=r>1?void 0:r?o(t,s):t,c=e.length-1;c>=0;c--)(n=e[c])&&(a=(r?n(t,s,a):n(a))||a);return r&&a&&i(t,s,a),a};exports.RouteOptions=class extends t.i{constructor(){super(),this.assets=null,this._loadAssets()}async _loadAssets(){this.assets=await(async()=>{const[e,t,i,o,s,r]=await Promise.all([Promise.resolve().then(()=>require("./accessibility-DWoi6we_.cjs")),Promise.resolve().then(()=>require("./back_arrow-DNrh84z6.cjs")),Promise.resolve().then(()=>require("./icon-destination-point-C8Bl9rvO.cjs")),Promise.resolve().then(()=>require("./icon-origin-point-B0FLE42C.cjs")),Promise.resolve().then(()=>require("./repeat_icon-DBYc7GBB.cjs")),Promise.resolve().then(()=>require("./walking-CDbgxjU4.cjs"))]);return{accessibilityIcon:e.default,backIcon:t.default,destinationPoint:i.default,originPoint:o.default,repeatIcon:s.default,walkingIcon:r.default}})(),this.requestUpdate()}handleBack(){this.dispatchEvent(new CustomEvent("back",{detail:{},bubbles:!0,composed:!0}))}handleAccessibility(){this.dispatchEvent(new CustomEvent("accessibilityChange",{detail:!this.sdkData?.accessibleRoute,bubbles:!0,composed:!0}))}handleRepeatRoute(){this.dispatchEvent(new CustomEvent("repeatRoute",{detail:!0,bubbles:!0,composed:!0}))}handleGenerateRoute(){this.dispatchEvent(new CustomEvent("generateRoute",{detail:{accessible:!!this.sdkData?.accessibleRoute},bubbles:!0,composed:!0}))}_dismissError(){t.AnalyticsController.getInstance().trackEvent("error_modal_dismissed",{error_message:this.sdkData?.routeError,origin_id:this.sdkData?.originId,destination_id:this.sdkData?.destinationId}),this.dispatchEvent(new CustomEvent("dismissRouteError",{bubbles:!0,composed:!0}))}render(){if(!this.sdkData)return t.b``;const{destination:e,accessibleRoute:i,parentPlace:o,origin:s,route:r,isRouteAnimating:n,isLoading:a,loadingRoute:c,isNetworkError:l}=this.sdkData,d=i?this.assets?.accessibilityIcon:this.assets?.walkingIcon,p=e?.title??"",u=o?.innerFloors??[],f=(s&&"function"==typeof s.inFloor?s.inFloor(u):void 0)?.name??"",g=(e&&"function"==typeof e.inFloor?e.inFloor(u):void 0)?.name??"",h=n??!1;let b="";return r&&r.legs&&r.legs.length>0&&r.legs[0].distance&&(b=`• ${r.legs[0].distance.toFixed(0)} mts`),t.b`
|
|
2
2
|
<div class="route-panel">
|
|
3
3
|
<div class="flex flex-col h-full">
|
|
4
4
|
<div class="back-panel" @click=${this.handleBack}>
|
|
@@ -95,4 +95,4 @@
|
|
|
95
95
|
</div>
|
|
96
96
|
`:""}
|
|
97
97
|
`}},exports.RouteOptions.styles=[t.r(":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}")],s([e.c({context:t.sdkContext,subscribe:!0})],exports.RouteOptions.prototype,"sdkData",2),exports.RouteOptions=s([t.t("route-options")],exports.RouteOptions);
|
|
98
|
-
//# sourceMappingURL=route-options-
|
|
98
|
+
//# sourceMappingURL=route-options-y1NjiMqC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-options-y1NjiMqC.cjs","sources":["../../src/components/route-options.ts"],"sourcesContent":["import { consume } from '@lit/context';\nimport { html, LitElement, unsafeCSS } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { sdkContext, SDKContextType } from '../utils/sdk-context';\nimport { AnalyticsController } from '../utils/analytics-controller';\nimport style from '../styles/route-options.css?inline';\n\n// Dynamic imports for assets\nconst loadAssets = async () => {\n const [accessibilityIcon, backIcon, destinationPoint, originPoint, repeatIcon, walkingIcon] = await Promise.all([\n import('../assets/accessibility.svg?raw'),\n import('../assets/back_arrow.svg?raw'),\n import('../assets/icon-destination-point.svg'),\n import('../assets/icon-origin-point.svg'),\n import('../assets/repeat_icon.svg?raw'),\n import('../assets/walking.svg?raw'),\n ]);\n return {\n accessibilityIcon: accessibilityIcon.default,\n backIcon: backIcon.default,\n destinationPoint: destinationPoint.default,\n originPoint: originPoint.default,\n repeatIcon: repeatIcon.default,\n walkingIcon: walkingIcon.default,\n };\n};\n\n@customElement('route-options')\nexport class RouteOptions extends LitElement {\n @consume({ context: sdkContext, subscribe: true })\n protected sdkData?: SDKContextType;\n\n static override styles = [unsafeCSS(style)];\n\n private assets: Awaited<ReturnType<typeof loadAssets>> | null = null;\n\n constructor() {\n super();\n this._loadAssets();\n }\n\n private async _loadAssets() {\n this.assets = await loadAssets();\n this.requestUpdate();\n }\n\n private handleBack() {\n this.dispatchEvent(\n new CustomEvent('back', {\n detail: {},\n bubbles: true,\n composed: true,\n })\n );\n\n // Implementar la lógica para volver atrás\n }\n\n private handleAccessibility() {\n this.dispatchEvent(\n new CustomEvent('accessibilityChange', {\n detail: !this.sdkData?.accessibleRoute,\n bubbles: true,\n composed: true,\n })\n );\n // Implementar la lógica para cambiar el tipo de ruta\n }\n\n private handleRepeatRoute() {\n this.dispatchEvent(\n new CustomEvent('repeatRoute', {\n detail: true,\n bubbles: true,\n composed: true,\n })\n );\n // Implementar la lógica para repetir la ruta\n }\n\n private handleGenerateRoute() {\n this.dispatchEvent(\n new CustomEvent('generateRoute', {\n detail: {\n accessible: !!this.sdkData?.accessibleRoute,\n },\n bubbles: true,\n composed: true,\n })\n );\n // Implementar la lógica para generar la ruta\n }\n\n private _dismissError() {\n // Track error modal dismissal\n AnalyticsController.getInstance().trackEvent('error_modal_dismissed', {\n error_message: this.sdkData?.routeError,\n origin_id: this.sdkData?.originId,\n destination_id: this.sdkData?.destinationId,\n });\n this.dispatchEvent(\n new CustomEvent('dismissRouteError', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n override render() {\n if (!this.sdkData) return html``;\n const { destination, accessibleRoute, parentPlace, origin, route, isRouteAnimating, isLoading, loadingRoute, isNetworkError } = this.sdkData;\n const defaultIcon = accessibleRoute ? this.assets?.accessibilityIcon : this.assets?.walkingIcon;\n const destinationName = destination?.title ?? '';\n const parentPlaceFloors = parentPlace?.innerFloors ?? [];\n const originFloor = (origin && typeof origin.inFloor === 'function' ? origin.inFloor(parentPlaceFloors) : undefined)?.name ?? '';\n const destinationFloor = (destination && typeof destination.inFloor === 'function' ? destination.inFloor(parentPlaceFloors) : undefined)?.name ?? '';\n const isAnimating = isRouteAnimating ?? false;\n let distance = '';\n if (route && route.legs && route.legs.length > 0 && route.legs[0].distance) {\n distance = `• ${route.legs[0].distance.toFixed(0)} mts`;\n }\n return html`\n <div class=\"route-panel\">\n <div class=\"flex flex-col h-full\">\n <div class=\"back-panel\" @click=${this.handleBack}>\n <div class=\"back-content\">\n <span .innerHTML=${this.assets?.backIcon}></span>\n <span class=\"back-text\">Volver</span>\n </div>\n </div>\n\n <div class=\"route-modal\">\n <div class=\"entrance-name d-flex align-items-center\">\n <div class=\"icon_switcher_user_type\">\n <span .innerHTML=${defaultIcon}></span>\n </div>\n <span class=\"justify-content-center place-name\"> ${destinationName} </span>\n ${route\n ? html`\n <button class=\"repeat-route-btn\" @click=${this.handleRepeatRoute} ?disabled=${isAnimating}>\n <span .innerHTML=${this.assets?.repeatIcon}></span>\n <span>Repetir ruta</span>\n </button>\n `\n : ''}\n </div>\n <div class=\"floor-specs\">\n <span class=\"floor-name\">${destinationFloor}</span>\n <span class=\"route-distance\">${distance}</span>\n </div>\n <div class=\"d-flex flex-wrap container-controls\">\n <div class=\"flex-fill route-input-wrapper\">\n <div class=\"c-route-input c-route-input-from\">\n <div class=\"c-route-input-icon\">\n <img src=${this.assets?.originPoint} alt=\"\" class=\"icon-point\" />\n </div>\n Desde mi ubicación\n <span>${originFloor}</span>\n </div>\n <div class=\"c-route-input\" @click=${this.handleBack}>\n <div class=\"c-route-input-icon\">\n <img src=${this.assets?.destinationPoint} alt=\"\" class=\"icon-point\" />\n </div>\n ${destinationName}\n <span>${destinationFloor}</span>\n </div>\n </div>\n <div\n class=\"accessibility-switch ${this.sdkData?.accessibleRoute ? 'accessible' : ''}\"\n @click=${this.handleAccessibility}\n >\n <div class=\"accessibility-switch-icon ${!this.sdkData?.accessibleRoute ? 'active' : ''}\">\n <span .innerHTML=${this.assets?.walkingIcon}></span>\n </div>\n <div class=\"accessibility-switch-icon ${this.sdkData?.accessibleRoute ? 'active' : ''}\">\n <span .innerHTML=${this.assets?.accessibilityIcon}></span>\n </div>\n </div>\n </div>\n\n ${!route\n ? html`\n <div class=\"generate-route-container d-flex justify-content-center align-items-center mt-3\">\n <button class=\"generate-route-btn\" @click=${this.handleGenerateRoute}>\n <span> Generar ruta</span>\n </button>\n </div>\n `\n : ''}\n </div>\n </div>\n </div>\n <qr-modal></qr-modal>\n ${isLoading || loadingRoute\n ? html`\n <div class=\"loading-overlay\">\n <div class=\"loading-spinner\"></div>\n <p class=\"loading-text\">${loadingRoute ? 'Generando ruta...' : 'Cargando...'}</p>\n </div>\n `\n : ''}\n ${this.sdkData?.routeError\n ? html`\n <div class=\"error-modal-overlay\">\n <div class=\"error-modal\">\n <div class=\"error-icon ${isNetworkError ? 'network-error' : ''}\">\n ${isNetworkError\n ? html`\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\" stroke=\"currentColor\" stroke-width=\"2\"/>\n <path d=\"M8 8L16 16M16 8L8 16\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n </svg>\n `\n : html`\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\" stroke=\"currentColor\" stroke-width=\"2\"/>\n <path d=\"M12 8V12\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n <circle cx=\"12\" cy=\"16\" r=\"1\" fill=\"currentColor\"/>\n </svg>\n `}\n </div>\n <p class=\"error-message\">${this.sdkData.routeError}</p>\n <button class=\"error-btn\" @click=${this._dismissError}>Aceptar</button>\n </div>\n </div>\n `\n : ''}\n `;\n }\n}\n"],"names":["RouteOptions","LitElement","constructor","super","this","assets","_loadAssets","async","accessibilityIcon","backIcon","destinationPoint","originPoint","repeatIcon","walkingIcon","Promise","all","resolve","then","require","default","loadAssets","requestUpdate","handleBack","dispatchEvent","CustomEvent","detail","bubbles","composed","handleAccessibility","sdkData","accessibleRoute","handleRepeatRoute","handleGenerateRoute","accessible","_dismissError","AnalyticsController","getInstance","trackEvent","error_message","routeError","origin_id","originId","destination_id","destinationId","render","html","destination","parentPlace","origin","route","isRouteAnimating","isLoading","loadingRoute","isNetworkError","defaultIcon","destinationName","title","parentPlaceFloors","innerFloors","originFloor","inFloor","name","destinationFloor","isAnimating","distance","legs","length","toFixed","styles","unsafeCSS","__decorateClass","consume","context","sdkContext","subscribe","prototype","customElement"],"mappings":"gWA4BaA,QAAAA,aAAN,cAA2BC,EAAAA,EAQhC,WAAAC,GACEC,QAHFC,KAAQC,OAAwD,KAI9DD,KAAKE,aACP,CAEA,iBAAcA,GACZF,KAAKC,YAlCUE,WACjB,MAAOC,EAAmBC,EAAUC,EAAkBC,EAAaC,EAAYC,SAAqBC,QAAQC,IAAI,CAC9GD,QAAAE,UAAAC,KAAA,IAAAC,QAAO,iCACPJ,QAAAE,UAAAC,KAAA,IAAAC,QAAO,8BACPJ,QAAAE,UAAAC,KAAA,IAAAC,QAAO,0CACPJ,QAAAE,UAAAC,KAAA,IAAAC,QAAO,qCACPJ,QAAAE,UAAAC,KAAA,IAAAC,QAAO,+BACPJ,m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S,CAACC,w/LAFhBC,EAAA,CADTC,EAAAA,EAAQ,CAAEC,QAASC,aAAYC,WAAW,KADhC1E,qBAED2E,UAAA,UAAA,GAFC3E,QAAAA,aAANsE,EAAA,CADNM,EAAAA,EAAc,kBACF5E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./lazy-load-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./lazy-load-B1s2-mBw.cjs");var e,i,n,o,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=t=>{throw TypeError(t)},d=(t,e,i,n)=>{for(var o,r=n>1?void 0:n?a(e,i):e,d=t.length-1;d>=0;d--)(o=t[d])&&(r=(n?o(e,i,r):o(r))||r);return n&&r&&s(e,i,r),r},l=(t,e,i)=>e.has(t)||r("Cannot "+i),h=(t,e,i)=>(l(t,e,"read from private field"),i?i.call(t):e.get(t)),c=(t,e,i)=>e.has(t)?r("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),p=(t,e,i,n)=>(l(t,e,"write to private field"),e.set(t,i),i);exports.RouteViewTotems=class extends t.i{constructor(){super(...arguments),this.styles=[t.i$1`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
height: 100%;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-view-totems.cjs","sources":["../../src/route-view-totems.ts"],"sourcesContent":["import { LitElement, html, css, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { SDKController } from './utils/sdk-controller';\nimport { RollbarController } from './utils/rollbar-controller';\nimport { AnalyticsController } from './utils/analytics-controller';\nimport {\n loadCustomMap,\n loadFloorSelector,\n loadQrModal,\n loadRouteOptions,\n preloadMaplibreCss,\n} from './components/lazy-load';\n\nimport type { CustomMap, UpdateComponentParams } from './components/custom-map';\n\n/**\n * Result of an updateComponent operation\n */\nexport interface UpdateComponentResult {\n success: boolean;\n error?: string;\n previousDestinationId?: string;\n newDestinationId?: string;\n}\n\n@customElement('route-view-totems')\nexport class RouteViewTotems extends LitElement {\n styles = [\n css`\n :host {\n display: block;\n height: 100%;\n width: 100%;\n }\n `,\n css`\n .route-container {\n position: absolute;\n top: 50px;\n left: 50px;\n z-index: 5000;\n width: 29.79vw;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n border-radius: 24px;\n background: #fff;\n box-shadow: 0 0 24px #00000026;\n }\n `,\n ];\n\n @property({ type: String })\n accessor apiKey: string = '';\n\n @property({ type: String })\n accessor parentPlaceId: string = '';\n\n @property({ type: String })\n accessor locale: string = 'es';\n\n @property({ type: String })\n accessor originId: string = '';\n\n /**\n * The destination place ID. Setting this property (even to the same value)\n * will clear the previous route and reload the destination.\n */\n @property({ type: String, reflect: true })\n get destinationId(): string {\n return this._destinationId;\n }\n set destinationId(value: string) {\n const oldValue = this._destinationId;\n this._destinationId = value;\n\n // If same value is assigned and we have origin, force reload\n // This handles the case when the screen is locked and destination is re-selected\n if (oldValue === value && value && this.originId && this._hasInitialized) {\n // Use queueMicrotask to ensure this runs after Lit's update cycle\n queueMicrotask(() => {\n this.sdkController.setOriginAndDestination(this.originId, value).then(() => {\n this.sendEvent('destination_reloaded', {\n origin_id: this.originId,\n destination_id: value,\n });\n });\n });\n }\n\n this.requestUpdate('destinationId', oldValue);\n }\n private _destinationId: string = '';\n private _hasInitialized: boolean = false;\n\n // Internal: automatic Service Worker registration for tile cache\n private readonly _swPath: string = '/mvx-tiles-sw.js';\n private readonly _swScope: string = '/';\n\n private sdkController = new SDKController(this);\n private analyticsController = AnalyticsController.getInstance();\n\n /**\n * Reference to the custom-map component for direct access\n */\n private _customMapRef: CustomMap | null = null;\n\n private async _loadComponents() {\n await Promise.all([loadCustomMap(), loadFloorSelector(), loadQrModal(), loadRouteOptions()]);\n }\n\n private _preloadApiRequests() {\n const token = this.apiKey || this.getAttribute('apiKey') || '';\n const parent = this.parentPlaceId || this.getAttribute('parentPlaceId') || '';\n const lang = this.locale || this.getAttribute('locale') || 'es';\n\n if (!token || !parent) return;\n\n const addPreload = (url: string) => {\n const key = `mvx-preload:${url}`;\n if (document.head.querySelector(`link[data-mvx-preload=\"${key}\"]`)) return;\n const link = document.createElement('link');\n link.rel = 'preload';\n // @ts-expect-error property supported by browsers\n link.as = 'fetch';\n link.href = url;\n link.crossOrigin = 'anonymous';\n link.setAttribute('fetchpriority', 'high');\n link.setAttribute('data-mvx-preload', key);\n document.head.appendChild(link);\n };\n\n const baseSDK = 'https://api.mapvx.com/sdk/';\n const baseAPI = 'https://api.mapvx.com/api/';\n const enc = encodeURIComponent;\n\n // Parent place detail and configuration\n addPreload(`${baseSDK}v3/place?token=${enc(token)}&place_id=${enc(parent)}&lang=${enc(lang)}`);\n addPreload(`${baseAPI}configuration?token=${enc(token)}&lang=${enc(lang)}&place_id=${enc(parent)}`);\n\n // Optional: origin and destination details\n if (this.originId) {\n addPreload(`${baseSDK}v3/place?token=${enc(token)}&place_id=${enc(this.originId)}&lang=${enc(lang)}`);\n }\n if (this.destinationId) {\n addPreload(`${baseSDK}v3/place?token=${enc(token)}&place_id=${enc(this.destinationId)}&lang=${enc(lang)}`);\n }\n }\n\n override async firstUpdated() {\n // Try to register Service Worker for tiles early (non-blocking)\n if ('serviceWorker' in navigator) {\n // best-effort, do not await\n navigator.serviceWorker.register(this._swPath, { scope: this._swScope }).catch(() => {});\n }\n const componentsPromise = this._loadComponents();\n const cssPromise = preloadMaplibreCss();\n await Promise.all([componentsPromise, cssPromise]);\n if ((import.meta as any).env?.PROD) {\n this.analyticsController.initialize('route-view-totems');\n RollbarController.initialize('route-view-totems');\n }\n this.sendEvent('initial_render');\n\n // Mark as initialized to enable destination reload on same value assignment\n this._hasInitialized = true;\n }\n private sendEvent(event: string, extraParams: Record<string, any> = {}) {\n const destination = this.sdkController.getDestination();\n const params = {\n ...extraParams,\n apiKey: this.apiKey,\n locale: this.locale,\n parentPlaceId: this.parentPlaceId,\n originId: this.originId,\n host: window.location.host,\n pathname: window.location.pathname,\n search: window.location.search,\n hash: window.location.hash,\n referrer: document.referrer,\n userAgent: navigator.userAgent,\n screenWidth: window.innerWidth,\n destinationName: destination?.title,\n destinationId: destination?.lazarilloId,\n destinationClientId: destination?.clientId ?? this.destinationId,\n parentId: this.parentPlaceId ?? destination?.parentId,\n institutionId: destination?.parentInstitutionId,\n };\n this.analyticsController.trackEvent(event, params);\n }\n\n private _mapReadyHandler() {\n this.sendEvent('map_ready');\n this.sdkController.setMapReady(true);\n }\n\n private _cameraInitializedHandler() {\n this.sdkController.setCameraInitialized(true);\n this.sendEvent('view_loaded');\n }\n\n override updated(changedProperties: PropertyValues) {\n if (\n this.apiKey &&\n this.locale &&\n this.parentPlaceId &&\n (changedProperties.has('apiKey') || changedProperties.has('locale') || changedProperties.has('parentPlaceId'))\n ) {\n const oldParentPlaceId = changedProperties.get('parentPlaceId');\n const parentPlaceIdChanged = changedProperties.has('parentPlaceId') && oldParentPlaceId !== this.parentPlaceId;\n\n // If parentPlaceId changed, clear previous parentPlace to avoid stale data\n if (parentPlaceIdChanged) {\n this.sdkController.clearParentPlace();\n }\n // Ensure preload tags exist when inputs change\n this._preloadApiRequests();\n // Start SDK prewarm in parallel\n this.sdkController.prewarm(this.apiKey, this.locale, this.parentPlaceId, {\n originId: this.originId,\n destinationId: this.destinationId,\n });\n this.sdkController.initialize(this.apiKey, this.locale, this.parentPlaceId);\n }\n if (this.originId && changedProperties.has('destinationId')) {\n this.sdkController.setOriginAndDestination(this.originId, this.destinationId).finally(() => {\n this.sendEvent('set_origin_and_destination', { origin_id: this.originId, destination_id: this.destinationId });\n });\n }\n }\n\n override render() {\n return html`\n <div class=\"route-container\" data-testid=\"route-container\" style=\"height: 100%; width: 100%;\">\n <custom-map\n class=\"map-container\"\n data-testid=\"custom-map\"\n padding-left=\"300\"\n @mapReady=${this._mapReadyHandler}\n @cameraInitialized=${this._cameraInitializedHandler}\n @floorChange=${this._updateFloorHandler}\n style=\"\n /* Forward theme to custom-map */\n --zoom-border-color: #000;\n --zoom-border-width: 3px;\n \"\n ></custom-map>\n <floor-selector data-testid=\"floor-selector\" @floorChange=${this._updateFloorHandler}></floor-selector>\n <route-options data-testid=\"route-options\"></route-options>\n </div>\n `;\n }\n\n private _accessibilityChangeHandler(event: CustomEvent) {\n this.sdkController.setAccessibleRoute(event.detail);\n this.sendEvent('accessibility_change', { accessible: event.detail });\n }\n\n private _repeatRouteHandler() {\n this.sdkController.repeatRoute();\n this.sendEvent('route_repeat');\n }\n\n private _generateRouteHandler(event: CustomEvent) {\n this.sdkController.generateRoute();\n this.sendEvent('route_generate', event.detail);\n }\n\n private _backHandler() {\n const destination = this.sdkController.getDestination();\n this.sendEvent('back_navigation_triggered', {\n had_route: !!this.sdkController.getDestination(),\n from_destination_id: destination?.lazarilloId,\n from_destination_name: destination?.title,\n });\n this.destinationId = '';\n this.originId = '';\n this.sdkController.resetData();\n }\n\n private _updateFloorHandler(event: CustomEvent) {\n const floorId = event.detail;\n this.sdkController.setFloor(floorId);\n this.sendEvent('floor_change', { floor_id: floorId });\n }\n private _startRouteAnimationHandler() {\n this.sdkController.startRouteAnimation();\n this.sendEvent('route_animation_start');\n }\n private _routeAnimationFinishedHandler() {\n this.sdkController.routeAnimationFinished();\n this.sendEvent('route_animation_finish');\n }\n\n private _dismissRouteErrorHandler() {\n this.sdkController.clearRouteError();\n }\n\n /**\n * Updates the component with new destination/origin without requiring a back event.\n * This method cleans the map, updates the state, and re-renders with the new data.\n *\n * @param params - Parameters for the update\n * @returns Promise resolving to the result of the update operation\n * @example\n * ```typescript\n * // Update to a new destination\n * const result = await totemView.updateComponent({ destinationId: 'PDP_N1_1036' });\n * if (result.success) {\n * console.log('Updated from', result.previousDestinationId, 'to', result.newDestinationId);\n * }\n *\n * // Update both origin and destination\n * await totemView.updateComponent({\n * originId: 'new-origin-id',\n * destinationId: 'new-destination-id'\n * });\n * ```\n */\n public async updateComponent(params: UpdateComponentParams): Promise<UpdateComponentResult> {\n const previousDestinationId = this.destinationId;\n console.info('[MAP] updateComponent start', { params, previousDestinationId });\n\n try {\n // Get the custom-map reference\n const customMap = this._customMapRef || this.shadowRoot?.querySelector('custom-map') as CustomMap | null;\n\n // Clear the map first (preserve origin if only changing destination)\n const preserveOrigin = !params.originId && !!params.destinationId;\n if (customMap) {\n await customMap.clearMap(preserveOrigin, 'Actualizando mapa...');\n }\n\n // Update the properties which will trigger the reactive update cycle\n if (params.originId) {\n this.originId = params.originId;\n }\n\n if (params.destinationId !== undefined) {\n this.destinationId = params.destinationId;\n }\n\n // Handle floor change if specified\n if (params.floor) {\n this.sdkController.setFloor(params.floor);\n }\n\n // Wait for the update to complete\n await this.updateComplete;\n\n // Trigger the SDK controller to load the new data\n if (this.originId && this.destinationId) {\n await this.sdkController.setOriginAndDestination(this.originId, this.destinationId);\n }\n\n console.info('[MAP] updateComponent complete', {\n previousDestinationId,\n newDestinationId: this.destinationId,\n });\n\n this.sendEvent('update_component', {\n previous_destination_id: previousDestinationId,\n new_destination_id: this.destinationId,\n new_origin_id: params.originId,\n });\n\n return {\n success: true,\n previousDestinationId,\n newDestinationId: this.destinationId,\n };\n } catch (error) {\n console.error('[MAP] updateComponent error', error);\n return {\n success: false,\n error: error instanceof Error ? error.message : 'Unknown error',\n previousDestinationId,\n newDestinationId: this.destinationId,\n };\n }\n }\n\n /**\n * Clears the map of routes and destination markers, keeping the origin.\n * Convenience method that delegates to the custom-map component.\n *\n * @param preserveOrigin - Whether to preserve the origin marker (default: true)\n * @returns Promise that resolves when the map is cleared\n */\n public async clearMap(preserveOrigin = true): Promise<void> {\n const customMap = this._customMapRef || this.shadowRoot?.querySelector('custom-map') as CustomMap | null;\n if (customMap) {\n await customMap.clearMap(preserveOrigin);\n }\n }\n\n /**\n * Checks if the loading overlay is currently visible.\n * Useful for testing.\n */\n public isLoading(): boolean {\n const customMap = this._customMapRef || this.shadowRoot?.querySelector('custom-map') as CustomMap | null;\n return customMap?.isLoadingVisible() ?? false;\n }\n\n /**\n * Gets the current marker visibility status.\n * Useful for testing that markers are not hidden by modals.\n */\n public getMarkerVisibility(): {\n originVisible: boolean;\n destinationVisible: boolean;\n bothVisible: boolean;\n } {\n const customMap = this._customMapRef || this.shadowRoot?.querySelector('custom-map') as CustomMap | null;\n return customMap?.areMarkersVisible() ?? { originVisible: false, destinationVisible: false, bothVisible: false };\n }\n\n override connectedCallback() {\n super.connectedCallback();\n // @ts-expect-error works with custom events\n this.addEventListener('accessibilityChange', this._accessibilityChangeHandler);\n this.addEventListener('repeatRoute', this._repeatRouteHandler);\n // @ts-expect-error works with custom events\n this.addEventListener('generateRoute', this._generateRouteHandler);\n this.addEventListener('back', this._backHandler);\n this.addEventListener('startRouteAnimation', this._startRouteAnimationHandler);\n this.addEventListener('routeAnimationFinished', this._routeAnimationFinishedHandler);\n this.addEventListener('dismissRouteError', this._dismissRouteErrorHandler);\n }\n override disconnectedCallback() {\n super.disconnectedCallback();\n // @ts-expect-error works with custom events\n this.removeEventListener('accessibilityChange', this._accessibilityChangeHandler);\n this.removeEventListener('repeatRoute', this._repeatRouteHandler);\n // @ts-expect-error works with custom events\n this.removeEventListener('generateRoute', this._generateRouteHandler);\n this.removeEventListener('back', this._backHandler);\n this.removeEventListener('startRouteAnimation', this._startRouteAnimationHandler);\n this.removeEventListener('routeAnimationFinished', this._routeAnimationFinishedHandler);\n this.removeEventListener('dismissRouteError', this._dismissRouteErrorHandler);\n }\n}\n"],"names":["_apiKey","_parentPlaceId","_locale","_originId","RouteViewTotems","LitElement","constructor","super","arguments","this","styles","css","__privateAdd","_destinationId","_hasInitialized","_swPath","_swScope","sdkController","SDKController","analyticsController","AnalyticsController","getInstance","_customMapRef","apiKey","__privateGet","_","__privateSet","parentPlaceId","locale","originId","destinationId","value","oldValue","queueMicrotask","setOriginAndDestination","then","sendEvent","origin_id","destination_id","requestUpdate","_loadComponents","Promise","all","loadCustomMap","loadFloorSelector","loadQrModal","loadRouteOptions","_preloadApiRequests","token","getAttribute","parent","lang","addPreload","url","key","document","head","querySelector","link","createElement","rel","as","href","crossOrigin","setAttribute","appendChild","baseSDK","enc","encodeURIComponent","firstUpdated","navigator","serviceWorker","register","scope","catch","componentsPromise","cssPromise","preloadMaplibreCss","initialize","RollbarController","event","extraParams","destination","getDestination","params","host","window","location","pathname","search","hash","referrer","userAgent","screenWidth","innerWidth","destinationName","title","lazarilloId","destinationClientId","clientId","parentId","institutionId","parentInstitutionId","trackEvent","_mapReadyHandler","setMapReady","_cameraInitializedHandler","setCameraInitialized","updated","changedProperties","has","oldParentPlaceId","get","clearParentPlace","prewarm","finally","render","html","_updateFloorHandler","_accessibilityChangeHandler","setAccessibleRoute","detail","accessible","_repeatRouteHandler","repeatRoute","_generateRouteHandler","generateRoute","_backHandler","had_route","from_destination_id","from_destination_name","resetData","floorId","setFloor","floor_id","_startRouteAnimationHandler","startRouteAnimation","_routeAnimationFinishedHandler","routeAnimationFinished","_dismissRouteErrorHandler","clearRouteError","updateComponent","previousDestinationId","console","info","customMap","shadowRoot","preserveOrigin","clearMap","floor","updateComplete","newDestinationId","previous_destination_id","new_destination_id","new_origin_id","success","error","Error","message","isLoading","isLoadingVisible","getMarkerVisibility","areMarkersVisible","originVisible","destinationVisible","bothVisible","connectedCallback","addEventListener","disconnectedCallback","removeEventListener","WeakMap","__decorateClass","property","type","String","prototype","reflect","customElement"],"mappings":"gIAAAA,EAAAC,EAAAC,EAAAC,+eA0BaC,QAAAA,gBAAN,cAA8BC,EAAAA,EAA9B,WAAAC,GAAAC,SAAAC,WACLC,KAAAC,OAAS,CACPC,EAAAA,GAAA;;;;;;MAOAA,EAAAA,GAAA;;;;;;;;;;;;;;;OAmBFC,EAAAH,KAAST,EAAiB,IAG1BY,EAAAH,KAASR,EAAwB,IAGjCW,EAAAH,KAASP,EAAiB,MAG1BU,EAAAH,KAASN,EAAmB,IA8B5BM,KAAQI,eAAyB,GACjCJ,KAAQK,iBAA2B,EAG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assets/walking.svg?raw"],"sourcesContent":["export default \"<svg width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 36 36\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n <path\\n d=\\\"M23.3111 5.74765C23.3048 7.25788 22.0259 8.47682 20.4559 8.47028C18.8858 8.46374 17.6171 7.23418 17.6234 5.72394C17.6297 4.21371 18.9086 2.99477 20.4787 3.00131C22.0487 3.00785 23.3174 4.23741 23.3111 5.74765ZM15.6027 14.335C15.5493 14.3576 15.49 14.3801 15.4365 14.4027L14.7837 14.6791C13.8762 15.0627 13.1628 15.7662 12.7918 16.6476L12.7015 16.8637C12.3089 17.7964 11.2038 18.2476 10.2331 17.8675C9.26247 17.4875 8.79409 16.4259 9.18665 15.4932L9.27701 15.2771C10.0184 13.5198 11.4457 12.1073 13.2548 11.34L13.9076 11.0636C15.1445 10.5446 16.4254 10.2765 17.8236 10.2823C20.4661 10.2933 22.8414 11.83 23.8448 14.1756L24.6951 16.2757L26.0079 16.8907C26.9421 17.3447 27.3167 18.44 26.8449 19.3382C26.3731 20.2363 25.2341 20.5962 24.2998 20.1422L22.7211 19.378C22.1121 19.0792 21.6343 18.5816 21.3761 17.9766L20.8128 16.664L19.6538 20.3906L22.5736 23.4849C22.8922 23.8223 23.1215 24.2277 23.2323 24.6726L24.5731 29.9193C24.8238 30.9003 24.2035 31.8889 23.1894 32.124C22.1693 32.3647 21.1409 31.7679 20.8428 30.7925L19.6077 25.7627L15.4431 21.353C14.5701 20.4321 14.1962 19.1487 14.5864 17.9483L15.6027 14.335ZM12.1328 25.6404L13.6265 22.0917C13.7531 22.2631 13.8899 22.4232 14.0397 22.5834L16.4406 25.1228L15.5729 27.1815C15.4292 27.5284 15.2146 27.8408 14.941 28.096L11.2726 31.5958C10.5291 32.3048 9.32871 32.2998 8.59121 31.5846C7.85382 30.8694 7.85862 29.7186 8.60194 29.0096L12.1328 25.6404Z\\\"\\n fill=\\\"currentColor\\\" />\\n</svg>\""],"names":[],"mappings":"gGAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessibility-D3Vyfstu.js","sources":["../../../src/assets/accessibility.svg?raw"],"sourcesContent":["export default \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 29 29\\\" fill=\\\"none\\\">\\n <path d=\\\"M28.9058 23.8967C28.5889 22.9479 27.573 22.4331 26.6134 22.7514L25.5156 23.1161L23.1535 17.4537C22.8788 16.7146 22.2161 16.3125 21.474 16.3125H15.9353L15.3462 13.5938H19.0343C20.0364 13.5938 20.847 12.7832 20.847 11.7812C20.847 10.7793 20.0364 9.96875 19.0343 9.96875H14.5605L14.4784 9.58359C14.2632 8.04863 12.8697 7.06875 11.3969 7.27832C9.86185 7.48789 8.87623 8.86426 9.09148 10.3539L10.4328 18.3062C10.5246 19.2352 11.3063 19.9375 12.2353 19.9375H20.2448L22.7859 26.049C23.0714 26.7514 23.7511 27.1875 24.4705 27.1875C24.66 27.1875 24.8546 27.1574 25.0438 27.0937L27.7627 26.1875C28.7132 25.8734 29.223 24.8482 28.9058 23.8967ZM9.06316 26.2812C5.56478 26.2812 2.71895 23.4356 2.71895 19.9375C2.71895 16.8647 4.91563 14.2989 7.82037 13.7184L7.36948 11.0449C3.17551 11.8379 0 15.5139 0 19.9375C0 24.9428 4.05746 29 9.06316 29C13.4475 29 17.1011 25.8865 17.9451 21.75H15.1638C14.3255 24.3611 11.9294 26.2812 9.06316 26.2812ZM10.8758 5.4375C12.3774 5.4375 13.5947 4.22029 13.5947 2.71875C13.5947 1.21721 12.3769 0 10.8758 0C9.37471 0 8.15684 1.21721 8.15684 2.71875C8.15684 4.22029 9.37471 5.4375 10.8758 5.4375Z\\\" fill=\\\"currentColor\\\"/>\\n</svg>\""],"names":["accessibility"],"mappings":"AAAA,MAAAA,EAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"back_arrow-B3RltzaY.js","sources":["../../../src/assets/back_arrow.svg?raw"],"sourcesContent":["export default \"<svg width=\\\"42\\\" height=\\\"36\\\" viewBox=\\\"0 0 42 36\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n<path d=\\\"M32.4635 16.4726H8.95498L23.0255 4.25832C23.2505 4.06144 23.1139 3.69582 22.8166 3.69582H19.2608C19.1041 3.69582 18.9554 3.75207 18.8389 3.85251L3.65542 17.0271C3.51636 17.1476 3.40483 17.2966 3.3284 17.464C3.25196 17.6315 3.2124 17.8133 3.2124 17.9974C3.2124 18.1814 3.25196 18.3633 3.3284 18.5307C3.40483 18.6981 3.51636 18.8471 3.65542 18.9677L18.9273 32.2226C18.9876 32.2748 19.0599 32.303 19.1362 32.303H22.8126C23.1099 32.303 23.2465 31.9333 23.0215 31.7405L8.95498 19.5262H32.4635C32.6402 19.5262 32.7849 19.3815 32.7849 19.2047V16.794C32.7849 16.6172 32.6402 16.4726 32.4635 16.4726Z\\\" fill=\\\"white\\\"/>\\n</svg>\\n\""],"names":["back_arrow"],"mappings":"AAAA,MAAAA,EAAe"}
|
package/dist/es/assets/{compact-floor-selector-BVF9pPKo.js → compact-floor-selector-Vf-RNjaR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as o,i as r,n as e,t}from"./route-view-totems-
|
|
1
|
+
import{c as o,i as r,n as e,t}from"./route-view-totems-CSjhqQyq.js";import{B as s,e as l}from"./components-D2U78N9l.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,t}from"./route-view-totems-LDoUrJDW.js";import{B as
|
|
|
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-Vf-RNjaR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-floor-selector-Vf-RNjaR.js","sources":["../../../src/components/compact-floor-selector.ts"],"sourcesContent":["import { html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { BaseFloorSelector } from './base-floor-selector';\n\n@customElement('compact-floor-selector')\nexport class CompactFloorSelector extends BaseFloorSelector {\n @property({ type: Boolean })\n accessor disabled: boolean = false;\n\n private isOpen = false;\n\n static override styles = [\n css`\n :host {\n display: block;\n position: relative;\n z-index: 1000;\n }\n\n .floor-dropdown {\n position: relative;\n display: inline-block;\n }\n\n .floor-button {\n font-family: var(--floor-selector-font-family, inherit);\n background: var(--floor-selector-surface, #fff);\n border-radius: var(--floor-selector-radius, 8px);\n padding: 8px 12px;\n font-size: var(--floor-selector-font-size, 14px);\n font-weight: var(--floor-selector-font-weight, 500);\n color: var(--floor-selector-color, #251660);\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 120px;\n box-shadow: var(--floor-selector-shadow, 0 2px 4px rgba(0, 0, 0, 0.1));\n transition: all 0.2s ease;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n border: var(--floor-selector-border-width, 1px) solid var(--floor-selector-border-color, #251660);\n }\n\n .floor-button:hover {\n border-color: var(--floor-selector-hover-accent, #007bff);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--floor-selector-hover-accent, #007bff) 20%, transparent);\n }\n\n .floor-button.active {\n background: var(--floor-selector-surface, #fff);\n color: var(--floor-selector-color, #251660);\n border-color: var(--floor-selector-border-color, #251660);\n }\n\n .floor-button.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .floor-button[disabled] {\n background: var(--floor-selector-surface, #fff);\n color: var(--floor-selector-color, #251660);\n cursor: not-allowed;\n pointer-events: none;\n }\n\n .dropdown-arrow {\n width: 0;\n height: 0;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid currentColor;\n transition: transform 0.2s ease;\n }\n\n .floor-button.open .dropdown-arrow {\n transform: rotate(180deg);\n }\n\n .floor-button[disabled] .dropdown-arrow {\n display: none;\n }\n\n .floor-list {\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: var(--floor-selector-surface, #fff);\n border: var(--floor-selector-border-width, 1px) solid\n color-mix(in srgb, var(--floor-selector-border-color, #251660) 30%, #ffffff);\n border-radius: var(--floor-selector-radius, 8px);\n box-shadow: var(--floor-selector-shadow, 0 4px 12px rgba(0, 0, 0, 0.15));\n max-height: 200px;\n overflow-y: auto;\n z-index: 1001;\n margin-top: 4px;\n display: none;\n }\n\n .floor-list.open {\n display: block;\n }\n\n .floor-option {\n font-family: var(--floor-selector-font-family, inherit);\n padding: 8px 12px;\n cursor: pointer;\n border-bottom: 1px solid color-mix(in srgb, var(--floor-selector-border-color, #251660) 20%, #ffffff);\n transition: background-color 0.2s ease;\n font-size: var(--floor-selector-font-size, 14px);\n font-weight: var(--floor-selector-font-weight, 500);\n color: var(--floor-selector-color, #251660);\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n }\n\n .floor-option:last-child {\n border-bottom: none;\n }\n\n .floor-option:hover {\n background-color: color-mix(in srgb, var(--floor-selector-hover-accent, #007bff) 8%, #ffffff);\n }\n\n .floor-option.active {\n background-color: var(--floor-selector-active-bg, #f3e7ff);\n color: var(--floor-selector-color, #251660);\n }\n\n .floor-option.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .floor-option.disabled:hover {\n background-color: transparent;\n }\n\n /* Mobile styles */\n @media (max-width: 768px) {\n .floor-button {\n font-size: 12px;\n padding: 6px 10px;\n min-width: 100px;\n }\n\n .floor-option {\n font-size: 12px;\n padding: 6px 10px;\n }\n\n .floor-list {\n max-height: 150px;\n }\n }\n `,\n ];\n\n private _toggleDropdown(event: Event) {\n if (this.disabled) return;\n event.stopPropagation();\n this.isOpen = !this.isOpen;\n this.requestUpdate();\n }\n\n private _selectFloor(floorKey: string) {\n if (this.disabled) return;\n this.selectFloor(floorKey);\n this.isOpen = false;\n this.requestUpdate();\n }\n\n private _handleClickOutside = (event: Event) => {\n // Only close if the click was outside the component and the dropdown is open\n if (this.isOpen && !this.shadowRoot?.contains(event.target as Node)) {\n this.isOpen = false;\n this.requestUpdate();\n }\n };\n\n override connectedCallback() {\n super.connectedCallback();\n document.addEventListener('click', this._handleClickOutside);\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('click', this._handleClickOutside);\n }\n\n override render() {\n if (!this.sdkData) {\n return html`<div>No data</div>`;\n }\n\n const floors = this.getFloors();\n const currentFloor = this.getCurrentFloor();\n const currentFloorName = currentFloor ? this.getFloorDisplayName(currentFloor) : 'Seleccionar piso';\n\n return html`\n <div class=\"floor-dropdown\">\n <button\n class=${classMap({\n 'floor-button': true,\n active: !!currentFloor,\n open: this.isOpen,\n })}\n style=\"border: var(--floor-selector-border-width, 1px) solid var(--floor-selector-border-color, #251660);\"\n ?disabled=${this.disabled}\n @click=${this._toggleDropdown}\n >\n <span>${currentFloorName}</span>\n <div class=\"dropdown-arrow\"></div>\n </button>\n\n <div\n class=${classMap({\n 'floor-list': true,\n open: this.isOpen,\n })}\n >\n ${floors.map(floor => {\n const isActive = this.isFloorActive(floor);\n\n return html`\n <div\n class=${classMap({\n 'floor-option': true,\n active: isActive,\n })}\n @click=${() => this._selectFloor(floor.key)}\n >\n ${this.getFloorDisplayName(floor)}\n </div>\n `;\n })}\n </div>\n </div>\n `;\n }\n}\n"],"names":["_disabled","CompactFloorSelector","BaseFloorSelector","constructor","super","arguments","this","isOpen","_handleClickOutside","event","shadowRoot","contains","target","requestUpdate","disabled","_","_toggleDropdown","stopPropagation","_selectFloor","floorKey","selectFloor","connectedCallback","document","addEventListener","disconnectedCallback","removeEventListener","render","sdkData","html","floors","getFloors","currentFloor","getCurrentFloor","currentFloorName","getFloorDisplayName","classMap","active","open","map","floor","isActive","isFloorActive","key","WeakMap","styles","css","__decorateClass","property","type","Boolean","prototype","customElement"],"mappings":"4HAAAA,4PAMO,IAAMC,EAAN,cAAmCC,EAAnC,WAAAC,aAAAC,SAAAC,aAELC,QAA6B,KAApBN,0GAETM,KAAQC,QAAS,EAyKjBD,KAAQE,oBAAuBC,IAEzBH,KAAKC,SAAWD,KAAKI,YAAYC,SAASF,EAAMG,UAClDN,KAAKC,QAAS,EACdD,KAAKO,iBAET,CAjLA,YAASC,GAAA,WA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WADPhD,EAEFiD,UAAA,WAAA,GAFEjD,EAAN6C,EAAA,CADNK,EAAc,2BACFlD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as t,c as e,r as o,i as n,n as i,d as r,t as s,E as a,A as l}from"./route-view-totems-
|
|
1
|
+
import{a as t,c as e,r as o,i as n,n as i,d as r,t as s,E as a,A as l}from"./route-view-totems-CSjhqQyq.js";import{R as c,M as d}from"./utils-5tYB0QdW.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2021 Google LLC
|
|
@@ -30,7 +30,7 @@ let h=class{constructor(t,e,o,n){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,n)=>{"object"==typeof n?n.addInitializer(function(){new h(this,{context:t,callback:t=>{o.set.call(this,t)},subscribe:e})}):o.constructor.addInitializer(o=>{new h(o,{context:t,callback:t=>{o[n]=t},subscribe:e})})}}const b="lazarillo-sdk";var x,v,w,y=Object.defineProperty,C=Object.getOwnPropertyDescriptor,k=t=>{throw TypeError(t)},M=(t,e,o,n)=>{for(var i,r=n>1?void 0:n?C(e,o):e,s=t.length-1;s>=0;s--)(i=t[s])&&(r=(n?i(e,o,r):i(r))||r);return n&&r&&y(e,o,r),r},E=(t,e,o)=>e.has(t)||k("Cannot "+o),z=(t,e,o)=>(E(t,e,"read from private field"),o?o.call(t):e.get(t)),A=(t,e,o)=>e.has(t)?k("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),I=(t,e,o,n)=>(E(t,e,"write to private field"),e.set(t,o),o);let R=class extends t{constructor(){super(),A(this,x,0),A(this,v,""),A(this,w,"Cargando..."),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.routeAnimationController=new c(this,this.routeAnimationHandlers),this.markerController=new d(this)}get paddingLeft(){return z(this,x)}set paddingLeft(t){I(this,x,t)}get loadingIcon(){return z(this,v)}set loadingIcon(t){I(this,v,t)}get loadingText(){return z(this,w)}set loadingText(t){I(this,w,t)}async firstUpdated(){if(this.shadowRoot){const t=document.createElement("style");t.textContent=(await import("./styles-BByP6ECU.js")).default,this.shadowRoot.appendChild(t)}}async updated(){if(this.updateAttributes(),!this.sdkData?.sdk)return;const{sdk:t,parentPlace:e,locale:o,generalConfig:n,currentFloor:i,markers:r,route:s,isRouteAnimating:a,cameraInitialized:l,origin:c,destination:d,isLoading:u}=this.sdkData,h=d?.lazarilloId,p=void 0!==this.previousDestinationId&&this.previousDestinationId!==h&&void 0!==h;let g=!1;if((p||u)&&(this.showLoadingOverlay=!0,p&&this.mapReady&&(g=!0,this.markerController.clearAllMarkers(),this.routeAnimationController.removeRoute(),this._isCleared=!1)),void 0!==h?this.previousDestinationId=h:d||u||(this.previousDestinationId=void 0),l&&this.showLoadingOverlay&&!u&&(this.showLoadingOverlay=!1),!this.lzMap&&t&&e&&o&&this.shadowRoot&&n){this.routeAnimationController.setParentPlace(e),this.routeAnimationController.setLocale(o),this.routeAnimationController.setConfig(n),this.mapContainer=this.shadowRoot.getElementById("map"),this.shadowRoot?.appendChild(this.mapContainer),this.config=n;const i={zoom:n.initialZoom||18,parentPlaceId:e?.lazarilloId,center:n.initialCenter||{lat:0,lng:0},minZoom:n.limitZoomOut||15,maxZoom:n.limitZoomIn||22,showCompass:!1,navigationPosition:"bottom-right",pitch:n.pitch||0,lang:o,maxBounds:n.pointsOfInterest||[],otherPotentialParentPlacesIds:n.potentialParentPlaces||[],onMapReady:()=>{this.mapReady=!0,this.markerController.setMapReady(!0),this.pendingUpdateCamera=!0,this.dispatchEvent(new CustomEvent("mapReady",{detail:{},bubbles:!0,composed:!0}))},onFloorChange:t=>{this.setCurrentMapFloor(t)}};this.lzMap=t.createMap(this.mapContainer,i),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.setConfig(n),this.markerController.setExtraLeftPadding(this.paddingLeft)}this.markerController&&this.routeAnimationController&&(this.markerController.setExtraLeftPadding(this.paddingLeft),this.routeAnimationController.setExtraLeftPadding(this.paddingLeft)),this.markerController&&this.routeAnimationController&&(this.markerController.setOrigin(c),this.routeAnimationController.setOrigin(c));if(!d&&!c&&!u&&0===r.length&&this.mapReady&&this.lzMap&&n?.initialCenter){const t=n?.mapRotations?.[e?.lazarilloId??""]?.angle??0,o=n?.pitch??0;this.lzMap.updateCamera({center:n.initialCenter,bearing:t,pitch:o,zoom:n?.initialZoom??18,animate:!1})}i&&i.key!==this._currentMapFloor&&this.mapReady&&this.setCurrentMapFloor(i.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!==s?.id,v=x&&s;(this.pendingUpdateCamera||!l&&this.mapReady)&&d&&!v&&(this._initializeCamera(),this.pendingUpdateCamera=!1),x&&!g?(this.routeAnimationController.removeRoute(),s&&this.routeAnimationController.startRouteAnimation(s)):!this.routeAnimationController.isAnimating()&&a&&s&&!g&&this.routeAnimationController.startRouteAnimation(s)}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?.lazarilloId,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()}}}computePaddingForModal(t="route-options"){const e={top:200,bottom:100,left:100,right:200+this.paddingLeft},o=this.getRootNode(),n=o?.host;if(!n||!n.shadowRoot)return e;const i=this.shadowRoot?.getElementById("map"),r=i?.getBoundingClientRect();if(!r)return e;const s=n.shadowRoot.querySelector(t),a=n.shadowRoot.querySelector("qr-modal");let l=0;if(s){const t=s.getBoundingClientRect();l=Math.max(l,t.right-r.left)}if(a){const t=a.getBoundingClientRect();l=Math.max(l,t.right-r.left)}return 0===l?e:{top: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(),n=this.computePaddingForModal(),i=o.left+n.left,r=o.right-n.right,s=o.top+n.top,a=o.bottom-n.bottom;return e.querySelectorAll(".maplibregl-marker").forEach(e=>{const o=e.querySelector('[data-testid^="marker-"]'),n=o?.getAttribute("data-testid");if(!n)return;const l=e.getBoundingClientRect(),c=l.left+l.width/2,d=l.top+l.height/2,u=c>=i&&c<=r&&d>=s&&d<=a;"marker-origin"===n?t.originVisible=u:"marker-destination"===n&&(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,n=this.config?.mapRotations?.[e?.lazarilloId??""]?.angle??0,i=this.config?.pitch??0,r=this.config?.initialZoom??20,s=this.computePaddingForModal("route-options"),a=t?.inFloors?.[0];if(a&&this.lzMap?.updateFloor(a),o){const r=e?.inFloors?.[0];if(r&&o.legs){const a=o.legs.flatMap(t=>t.steps).filter(t=>t.startInsideFloor===r||t.endInsideFloor===r).flatMap(t=>t.coordinates);if(a.length>0)this.lzMap?.fitCoordinates(a,{padding:s,bearing:n,pitch:i,animate:!1});else{const o=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:n,pitch:i,center:o,animate:!1})}}else{const o=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:n,pitch:i,center:o,animate:!1})}}else{const o=e?.inFloors?.[0],a=t?.inFloors?.[0];if(o&&a&&o===a){const o=[];if(e?.position&&o.push(e.position),t?.position&&o.push(t.position),o.length>1){const t=this.config?.limitZoomIn??22,e=Math.min(18,t);setTimeout(()=>{this.lzMap?.fitCoordinates(o,{padding:s,bearing:n,pitch:i,animate:!1,maxZoom:e})},100)}else 1===o.length&&setTimeout(()=>{this.lzMap?.updateCamera({bearing:n,pitch:i,center:o[0],zoom:r,animate:!1})},100)}else t?.position?setTimeout(()=>{this.lzMap?.updateCamera({bearing:n,pitch:i,center:t.position,zoom:r,animate:!1})},100):e?.position&&setTimeout(()=>{this.lzMap?.updateCamera({bearing:n,pitch:i,center:e.position,zoom:r,animate:!1})},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,n=this._clearMapLoadingText||this.loadingText;return e`
|
|
33
|
+
function m({context:t,subscribe:e}){return(o,n)=>{"object"==typeof n?n.addInitializer(function(){new h(this,{context:t,callback:t=>{o.set.call(this,t)},subscribe:e})}):o.constructor.addInitializer(o=>{new h(o,{context:t,callback:t=>{o[n]=t},subscribe:e})})}}const b="lazarillo-sdk";var x,v,w,y=Object.defineProperty,C=Object.getOwnPropertyDescriptor,k=t=>{throw TypeError(t)},M=(t,e,o,n)=>{for(var i,r=n>1?void 0:n?C(e,o):e,s=t.length-1;s>=0;s--)(i=t[s])&&(r=(n?i(e,o,r):i(r))||r);return n&&r&&y(e,o,r),r},E=(t,e,o)=>e.has(t)||k("Cannot "+o),z=(t,e,o)=>(E(t,e,"read from private field"),o?o.call(t):e.get(t)),A=(t,e,o)=>e.has(t)?k("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),I=(t,e,o,n)=>(E(t,e,"write to private field"),e.set(t,o),o);let R=class extends t{constructor(){super(),A(this,x,0),A(this,v,""),A(this,w,"Cargando..."),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.routeAnimationController=new c(this,this.routeAnimationHandlers),this.markerController=new d(this)}get paddingLeft(){return z(this,x)}set paddingLeft(t){I(this,x,t)}get loadingIcon(){return z(this,v)}set loadingIcon(t){I(this,v,t)}get loadingText(){return z(this,w)}set loadingText(t){I(this,w,t)}async firstUpdated(){if(this.shadowRoot){const t=document.createElement("style");t.textContent=(await import("./styles-BByP6ECU.js")).default,this.shadowRoot.appendChild(t)}}async updated(){if(this.updateAttributes(),!this.sdkData?.sdk)return;const{sdk:t,parentPlace:e,locale:o,generalConfig:n,currentFloor:i,markers:r,route:s,isRouteAnimating:a,cameraInitialized:l,origin:c,destination:d,isLoading:u}=this.sdkData,h=d?.lazarilloId,p=void 0!==this.previousDestinationId&&this.previousDestinationId!==h&&void 0!==h;let g=!1;if((p||u)&&(this.showLoadingOverlay=!0,p&&this.mapReady&&(g=!0,this.markerController.clearAllMarkers(),this.routeAnimationController.removeRoute(),this._isCleared=!1)),void 0!==h?this.previousDestinationId=h:d||u||(this.previousDestinationId=void 0),l&&this.showLoadingOverlay&&!u&&(this.showLoadingOverlay=!1),!this.lzMap&&t&&e&&o&&this.shadowRoot&&n){this.routeAnimationController.setParentPlace(e),this.routeAnimationController.setLocale(o),this.routeAnimationController.setConfig(n),this.mapContainer=this.shadowRoot.getElementById("map"),this.shadowRoot?.appendChild(this.mapContainer),this.config=n;const i={zoom:n.initialZoom||18,parentPlaceId:e?.lazarilloId,center:n.initialCenter||{lat:0,lng:0},minZoom:n.limitZoomOut||15,maxZoom:n.limitZoomIn||22,showCompass:!1,navigationPosition:"bottom-right",pitch:n.pitch||0,lang:o,maxBounds:n.pointsOfInterest||[],otherPotentialParentPlacesIds:n.potentialParentPlaces||[],onMapReady:()=>{this.mapReady=!0,this.markerController.setMapReady(!0),this.pendingUpdateCamera=!0,this.dispatchEvent(new CustomEvent("mapReady",{detail:{},bubbles:!0,composed:!0}))},onFloorChange:t=>{this.setCurrentMapFloor(t)}};this.lzMap=t.createMap(this.mapContainer,i),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.setConfig(n),this.markerController.setExtraLeftPadding(this.paddingLeft)}this.markerController&&this.routeAnimationController&&(this.markerController.setExtraLeftPadding(this.paddingLeft),this.routeAnimationController.setExtraLeftPadding(this.paddingLeft)),this.markerController&&this.routeAnimationController&&(this.markerController.setOrigin(c),this.routeAnimationController.setOrigin(c));if(!d&&!c&&!u&&0===r.length&&this.mapReady&&this.lzMap&&n?.initialCenter){const t=n?.mapRotations?.[e?.lazarilloId??""]?.angle??0,o=n?.pitch??0;this.lzMap.updateCamera({center:n.initialCenter,bearing:t,pitch:o,zoom:n?.initialZoom??18,animate:!1})}i&&i.key!==this._currentMapFloor&&this.mapReady&&this.setCurrentMapFloor(i.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!==s?.id,v=x&&s;(this.pendingUpdateCamera||!l&&this.mapReady)&&d&&!v&&(this._initializeCamera(),this.pendingUpdateCamera=!1),x&&!g?(this.routeAnimationController.removeRoute(),s&&this.routeAnimationController.startRouteAnimation(s)):!this.routeAnimationController.isAnimating()&&a&&s&&!g&&this.routeAnimationController.startRouteAnimation(s)}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?.lazarilloId,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()}}}computePaddingForModal(t="route-options"){const e=this.shadowRoot?.getElementById("map"),o=e?.getBoundingClientRect(),n=(o?.height??window.innerHeight)>(o?.width??window.innerWidth)?{top:100,bottom:80,left:60+this.paddingLeft,right:60}:{top:150,bottom:80,left:100+this.paddingLeft,right:80},i=this.getRootNode(),r=i?.host;if(!r||!r.shadowRoot||!o)return n;const s=r.shadowRoot.querySelector(t),a=r.shadowRoot.querySelector("qr-modal");let l=0,c=0;for(const d of[s,a]){if(!d)continue;const t=d.getBoundingClientRect();l=Math.max(l,t.right-o.left),c=Math.max(c,t.bottom-o.top)}return 0===l&&0===c?n:{top:Math.max(n.top,c+40),bottom:n.bottom,left:Math.max(n.left,l+40),right:n.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(),n=this.computePaddingForModal(),i=o.left+n.left,r=o.right-n.right,s=o.top+n.top,a=o.bottom-n.bottom;return e.querySelectorAll(".maplibregl-marker").forEach(e=>{const o=e.querySelector('[data-testid^="marker-"]'),n=o?.getAttribute("data-testid");if(!n)return;const l=e.getBoundingClientRect(),c=l.left+l.width/2,d=l.top+l.height/2,u=c>=i&&c<=r&&d>=s&&d<=a;"marker-origin"===n?t.originVisible=u:"marker-destination"===n&&(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,n=this.config?.mapRotations?.[e?.lazarilloId??""]?.angle??0,i=this.config?.pitch??0,r=this.config?.initialZoom??20,s=this.computePaddingForModal("route-options"),a=t?.inFloors?.[0];if(a&&this.lzMap?.updateFloor(a),o){const r=e?.inFloors?.[0];if(r&&o.legs){const a=o.legs.flatMap(t=>t.steps).filter(t=>t.startInsideFloor===r||t.endInsideFloor===r).flatMap(t=>t.coordinates);if(a.length>0){const t=this.config?.limitZoomIn??22,e=Math.min(t,20);this.lzMap?.fitCoordinates(a,{padding:s,bearing:n,pitch:i,animate:!1,maxZoom:e})}else{const o=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:n,pitch:i,center:o,animate:!1})}}else{const o=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:n,pitch:i,center:o,animate:!1})}}else{const o=e?.inFloors?.[0],a=t?.inFloors?.[0];if(o&&a&&o===a){const o=[];if(e?.position&&o.push(e.position),t?.position&&o.push(t.position),o.length>1){const t=this.config?.limitZoomIn??22,e=Math.min(t,20);setTimeout(()=>{this.lzMap?.fitCoordinates(o,{padding:s,bearing:n,pitch:i,animate:!1,maxZoom:e})},100)}else 1===o.length&&setTimeout(()=>{this.lzMap?.updateCamera({bearing:n,pitch:i,center:o[0],zoom:r,animate:!1})},100)}else{const o=this.config?.limitZoomIn??22,r=Math.min(o,20),a=t?.position??e?.position;if(a){const t=3e-4,e=[{lat:a.lat-t,lng:a.lng-t},{lat:a.lat+t,lng:a.lng+t}];setTimeout(()=>{this.lzMap?.fitCoordinates(e,{padding:s,bearing:n,pitch:i,animate:!1,maxZoom:r})},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,n=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">
|
|
@@ -209,7 +209,7 @@ function m({context:t,subscribe:e}){return(o,n)=>{"object"==typeof n?n.addInitia
|
|
|
209
209
|
</div>
|
|
210
210
|
`})}
|
|
211
211
|
</div>
|
|
212
|
-
`}};N.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}}')],N=((t,e,o,n)=>{for(var i,r=n>1?void 0:n?F(e,o):e,s=t.length-1;s>=0;s--)(i=t[s])&&(r=i(r)||r);return r})([s("floor-selector")],N);const S=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get FloorSelector(){return N}},Symbol.toStringTag,{value:"Module"}));var $,j,U={};function O(){return j?$:(j=1,$=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var q,H={},V={};function Y(){if(q)return V;let t;q=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 V.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},V.getSymbolTotalCodewords=function(t){return e[t]},V.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},V.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},V.isKanjiModeEnabled=function(){return void 0!==t},V.toSJIS=function(e){return t(e)},V}var J,K,Z,Q,W,G={};function X(){return J||(J=1,(t=G).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(T){return o}}),G;var t}var tt,et={};var ot,nt={};var it,rt={};var st,at={};function lt(){if(st)return at;st=1;const t=X(),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 at.getBlocksCount=function(o,n){switch(n){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}},at.getTotalCodewordsCount=function(e,n){switch(n){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}},at}var ct,dt,ut,ht,pt={},gt={};function ft(){return dt||(dt=1,function(t){const e=function(){if(ct)return gt;ct=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let o=1;for(let n=0;n<255;n++)t[n]=o,e[o]=n,o<<=1,256&o&&(o^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),gt.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},gt.exp=function(e){return t[e]},gt.mul=function(o,n){return 0===o||0===n?0:t[e[o]+e[n]]},gt}();t.mul=function(t,o){const n=new Uint8Array(t.length+o.length-1);for(let i=0;i<t.length;i++)for(let r=0;r<o.length;r++)n[i+r]^=e.mul(t[i],o[r]);return n},t.mod=function(t,o){let n=new Uint8Array(t);for(;n.length-o.length>=0;){const t=n[0];for(let r=0;r<o.length;r++)n[r]^=e.mul(o[r],t);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},t.generateECPolynomial=function(o){let n=new Uint8Array([1]);for(let i=0;i<o;i++)n=t.mul(n,new Uint8Array([1,e.exp(i)]));return n}}(pt)),pt}var mt,bt={},xt={},vt={};function wt(){return mt||(mt=1,vt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),vt}var yt,Ct,kt,Mt={};function Et(){if(yt)return Mt;yt=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]))+";Mt.KANJI=new RegExp(e,"g"),Mt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Mt.BYTE=new RegExp(o,"g"),Mt.NUMERIC=new RegExp(t,"g"),Mt.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const n=new RegExp("^"+e+"$"),i=new RegExp("^"+t+"$"),r=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Mt.testKanji=function(t){return n.test(t)},Mt.testNumeric=function(t){return i.test(t)},Mt.testAlphanumeric=function(t){return r.test(t)},Mt}function zt(){return Ct||(Ct=1,function(t){const e=wt(),o=Et();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(T){return o}}}(xt)),xt}function At(){return kt||(kt=1,function(t){const e=Y(),o=lt(),n=X(),i=zt(),r=wt(),s=e.getBCHDigit(7973);function a(t,e){return i.getCharCountIndicator(t,e)+4}function l(t,e){let o=0;return t.forEach(function(t){const n=a(t.mode,e);o+=n+t.getBitsLength()}),o}t.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,n,s){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===s&&(s=i.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,n));if(s===i.MIXED)return l;const c=l-a(s,t);switch(s){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,o){let r;const s=n.from(o,n.M);if(Array.isArray(e)){if(e.length>1)return function(e,o){for(let n=1;n<=40;n++)if(l(e,n)<=t.getCapacity(n,o,i.MIXED))return n}(e,s);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,o,n){for(let i=1;i<=40;i++)if(o<=t.getCapacity(i,n,e))return i}(r.mode,r.getLength(),s)},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)-s>=0;)o^=7973<<e.getBCHDigit(o)-s;return t<<12|o}}(bt)),bt}var It,Rt={};var Pt,Bt,Lt,Tt,Dt,_t,Ft,Nt,St={};var $t,jt,Ut,Ot={exports:{}};function qt(){return $t||($t=1,function(t){var e={single_source_shortest_paths:function(t,o,n){var i={},r={};r[o]=0;var s,a,l,c,d,u,h,p=e.PriorityQueue.make();for(p.push(o,0);!p.empty();)for(l in a=(s=p.pop()).value,c=s.cost,d=t[a]||{})d.hasOwnProperty(l)&&(u=c+d[l],h=r[l],(void 0===r[l]||h>u)&&(r[l]=u,p.push(l,u),i[l]=a));if(void 0!==n&&void 0===r[n]){var g=["Could not find a path from ",o," to ",n,"."].join("");throw new Error(g)}return i},extract_shortest_path_from_predecessor_list:function(t,e){for(var o=[],n=e;n;)o.push(n),t[n],n=t[n];return o.reverse(),o},find_path:function(t,o,n){var i=e.single_source_shortest_paths(t,o,n);return e.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(t){var o,n=e.PriorityQueue,i={};for(o in t=t||{},n)n.hasOwnProperty(o)&&(i[o]=n[o]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},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}(Ot)),Ot.exports}function Ht(){return jt||(jt=1,function(t){const e=zt(),o=function(){if(Bt)return Pt;Bt=1;const t=zt();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,n;for(e=0;e+3<=this.data.length;e+=3)o=this.data.substr(e,3),n=parseInt(o,10),t.put(n,10);const i=this.data.length-e;i>0&&(o=this.data.substr(e),n=parseInt(o,10),t.put(n,3*i+1))},Pt=e}(),n=function(){if(Tt)return Lt;Tt=1;const t=zt(),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 n=45*e.indexOf(this.data[o]);n+=e.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(e.indexOf(this.data[o]),6)},Lt=o}(),i=function(){if(_t)return Dt;_t=1;const t=zt();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)},Dt=e}(),r=function(){if(Nt)return Ft;Nt=1;const t=zt(),e=Y();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 n=e.toSJIS(this.data[o]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},Ft=o}(),s=Et(),a=Y(),l=qt();function c(t){return unescape(encodeURIComponent(t)).length}function d(t,e,o){const n=[];let i;for(;null!==(i=t.exec(o));)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function u(t){const o=d(s.NUMERIC,e.NUMERIC,t),n=d(s.ALPHANUMERIC,e.ALPHANUMERIC,t);let i,r;a.isKanjiModeEnabled()?(i=d(s.BYTE,e.BYTE,t),r=d(s.KANJI,e.KANJI,t)):(i=d(s.BYTE_KANJI,e.BYTE,t),r=[]);return o.concat(n,i,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function h(t,s){switch(s){case e.NUMERIC:return o.getBitsLength(t);case e.ALPHANUMERIC:return n.getBitsLength(t);case e.KANJI:return r.getBitsLength(t);case e.BYTE:return i.getBitsLength(t)}}function p(t,s){let l;const c=e.getBestModeForData(t);if(l=e.from(s,c),l!==e.BYTE&&l.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(c));switch(l!==e.KANJI||a.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new o(t);case e.ALPHANUMERIC:return new n(t);case e.KANJI:return new r(t);case e.BYTE:return new i(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t},[])},t.fromString=function(o,n){const i=function(t){const o=[];for(let n=0;n<t.length;n++){const i=t[n];switch(i.mode){case e.NUMERIC:o.push([i,{data:i.data,mode:e.ALPHANUMERIC,length:i.length},{data:i.data,mode:e.BYTE,length:i.length}]);break;case e.ALPHANUMERIC:o.push([i,{data:i.data,mode:e.BYTE,length:i.length}]);break;case e.KANJI:o.push([i,{data:i.data,mode:e.BYTE,length:c(i.data)}]);break;case e.BYTE:o.push([{data:i.data,mode:e.BYTE,length:c(i.data)}])}}return o}(u(o,a.isKanjiModeEnabled())),r=function(t,o){const n={},i={start:{}};let r=["start"];for(let s=0;s<t.length;s++){const a=t[s],l=[];for(let t=0;t<a.length;t++){const c=a[t],d=""+s+t;l.push(d),n[d]={node:c,lastCount:0},i[d]={};for(let t=0;t<r.length;t++){const s=r[t];n[s]&&n[s].node.mode===c.mode?(i[s][d]=h(n[s].lastCount+c.length,c.mode)-h(n[s].lastCount,c.mode),n[s].lastCount+=c.length):(n[s]&&(n[s].lastCount=c.length),i[s][d]=h(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,o))}}r=l}for(let e=0;e<r.length;e++)i[r[e]].end=0;return{map:i,table:n}}(i,n),s=l.find_path(r.map,"start","end"),d=[];for(let t=1;t<s.length-1;t++)d.push(r.table[s[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)},[])}(d))},t.rawSplit=function(e){return t.fromArray(u(e,a.isKanjiModeEnabled()))}}(St)),St}function Vt(){if(Ut)return H;Ut=1;const t=Y(),e=X(),o=function(){if(Z)return K;function t(){this.buffer=[],this.length=0}return Z=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++}},K=t}(),n=function(){if(W)return Q;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 W=1,t.prototype.set=function(t,e,o,n){const i=t*this.size+e;this.data[i]=o,n&&(this.reservedBit[i]=!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]},Q=t}(),i=(tt||(tt=1,function(t){const e=Y().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const o=Math.floor(t/7)+2,n=e(t),i=145===n?26:2*Math.ceil((n-13)/(2*o-2)),r=[n-7];for(let e=1;e<o-1;e++)r[e]=r[e-1]-i;return r.push(6),r.reverse()},t.getPositions=function(e){const o=[],n=t.getRowColCoords(e),i=n.length;for(let t=0;t<i;t++)for(let e=0;e<i;e++)0===t&&0===e||0===t&&e===i-1||t===i-1&&0===e||o.push([n[t],n[e]]);return o}}(et)),et),r=function(){if(ot)return nt;ot=1;const t=Y().getSymbolSize;return nt.getPositions=function(e){const o=t(e);return[[0,0],[o-7,0],[0,o-7]]},nt}(),s=(it||(it=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,n=40,i=10;function r(e,o,n){switch(e){case t.Patterns.PATTERN000:return(o+n)%2==0;case t.Patterns.PATTERN001:return o%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(o+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return o*n%2+o*n%3==0;case t.Patterns.PATTERN110:return(o*n%2+o*n%3)%2==0;case t.Patterns.PATTERN111:return(o*n%3+(o+n)%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 n=0,i=0,r=0,s=null,a=null;for(let l=0;l<o;l++){i=r=0,s=a=null;for(let c=0;c<o;c++){let o=t.get(l,c);o===s?i++:(i>=5&&(n+=e+(i-5)),s=o,i=1),o=t.get(c,l),o===a?r++:(r>=5&&(n+=e+(r-5)),a=o,r=1)}i>=5&&(n+=e+(i-5)),r>=5&&(n+=e+(r-5))}return n},t.getPenaltyN2=function(t){const e=t.size;let n=0;for(let o=0;o<e-1;o++)for(let i=0;i<e-1;i++){const e=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);4!==e&&0!==e||n++}return n*o},t.getPenaltyN3=function(t){const e=t.size;let o=0,i=0,r=0;for(let n=0;n<e;n++){i=r=0;for(let s=0;s<e;s++)i=i<<1&2047|t.get(n,s),s>=10&&(1488===i||93===i)&&o++,r=r<<1&2047|t.get(s,n),s>=10&&(1488===r||93===r)&&o++}return o*n},t.getPenaltyN4=function(t){let e=0;const o=t.data.length;for(let n=0;n<o;n++)e+=t.data[n];return Math.abs(Math.ceil(100*e/o/5)-10)*i},t.applyMask=function(t,e){const o=e.size;for(let n=0;n<o;n++)for(let i=0;i<o;i++)e.isReserved(i,n)||e.xor(i,n,r(t,i,n))},t.getBestMask=function(e,o){const n=Object.keys(t.Patterns).length;let i=0,r=1/0;for(let s=0;s<n;s++){o(s),t.applyMask(s,e);const n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),n<r&&(r=n,i=s)}return i}}(rt)),rt),a=lt(),l=function(){if(ht)return ut;ht=1;const t=ft();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 n=t.mod(o,this.genPoly),i=this.degree-n.length;if(i>0){const t=new Uint8Array(this.degree);return t.set(n,i),t}return n},ut=e}(),c=At(),d=function(){if(It)return Rt;It=1;const t=Y(),e=t.getBCHDigit(1335);return Rt.getEncodedBits=function(o,n){const i=o.bit<<3|n;let r=i<<10;for(;t.getBCHDigit(r)-e>=0;)r^=1335<<t.getBCHDigit(r)-e;return 21522^(i<<10|r)},Rt}(),u=zt(),h=Ht();function p(t,e,o){const n=t.size,i=d.getEncodedBits(e,o);let r,s;for(r=0;r<15;r++)s=1==(i>>r&1),r<6?t.set(r,8,s,!0):r<8?t.set(r+1,8,s,!0):t.set(n-15+r,8,s,!0),r<8?t.set(8,n-r-1,s,!0):r<9?t.set(8,15-r-1+1,s,!0):t.set(8,15-r-1,s,!0);t.set(n-8,8,1,!0)}function g(e,n,i){const r=new o;i.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),u.getCharCountIndicator(t.mode,e)),t.write(r)});const s=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,n));for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const c=(s-r.getLengthInBits())/8;for(let t=0;t<c;t++)r.put(t%2?17:236,8);return function(e,o,n){const i=t.getSymbolTotalCodewords(o),r=a.getTotalCodewordsCount(o,n),s=i-r,c=a.getBlocksCount(o,n),d=i%c,u=c-d,h=Math.floor(i/c),p=Math.floor(s/c),g=p+1,f=h-p,m=new l(f);let b=0;const x=new Array(c),v=new Array(c);let w=0;const y=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<u?p:g;x[t]=y.slice(b,b+e),v[t]=m.encode(x[t]),b+=e,w=Math.max(w,e)}const C=new Uint8Array(i);let k,M,E=0;for(k=0;k<w;k++)for(M=0;M<c;M++)k<x[M].length&&(C[E++]=x[M][k]);for(k=0;k<f;k++)for(M=0;M<c;M++)C[E++]=v[M][k];return C}(r,e,n)}function f(e,o,a,l){let d;if(Array.isArray(e))d=h.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=o;if(!t){const o=h.rawSplit(e);t=c.getBestVersionForData(o,a)}d=h.fromString(e,t||40)}}const u=c.getBestVersionForData(d,a);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(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,a,d),m=t.getSymbolSize(o),b=new n(m);return function(t,e){const o=t.size,n=r.getPositions(e);for(let i=0;i<n.length;i++){const e=n[i][0],r=n[i][1];for(let n=-1;n<=7;n++)if(!(e+n<=-1||o<=e+n))for(let i=-1;i<=7;i++)r+i<=-1||o<=r+i||(n>=0&&n<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===n||6===n)||n>=2&&n<=4&&i>=2&&i<=4?t.set(e+n,r+i,!0,!0):t.set(e+n,r+i,!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=i.getPositions(e);for(let n=0;n<o.length;n++){const e=o[n][0],i=o[n][1];for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)-2===o||2===o||-2===n||2===n||0===o&&0===n?t.set(e+o,i+n,!0,!0):t.set(e+o,i+n,!1,!0)}}(b,o),p(b,a,0),o>=7&&function(t,e){const o=t.size,n=c.getEncodedBits(e);let i,r,s;for(let a=0;a<18;a++)i=Math.floor(a/3),r=a%3+o-8-3,s=1==(n>>a&1),t.set(i,r,s,!0),t.set(r,i,s,!0)}(b,o),function(t,e){const o=t.size;let n=-1,i=o-1,r=7,s=0;for(let a=o-1;a>0;a-=2)for(6===a&&a--;;){for(let o=0;o<2;o++)if(!t.isReserved(i,a-o)){let n=!1;s<e.length&&(n=1==(e[s]>>>r&1)),t.set(i,a-o,n),r--,-1===r&&(s++,r=7)}if(i+=n,i<0||o<=i){i-=n,n=-n;break}}}(b,f),isNaN(l)&&(l=s.getBestMask(b,p.bind(null,b,a))),s.applyMask(l,b),p(b,a,l),{modules:b,version:o,errorCorrectionLevel:a,maskPattern:l,segments:d}}return H.create=function(o,n){if(void 0===o||""===o)throw new Error("No input text");let i,r,a=e.M;return void 0!==n&&(a=e.from(n.errorCorrectionLevel,e.M),i=c.from(n.version),r=s.from(n.maskPattern),n.toSJISFunc&&t.setToSJISFunction(n.toSJISFunc)),f(o,i,a,r)},H}var Yt,Jt,Kt={},Zt={};function Qt(){return Yt||(Yt=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,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,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 n=t.getScale(e,o);return Math.floor((e+2*o.margin)*n)},t.qrToImageData=function(e,o,n){const i=o.modules.size,r=o.modules.data,s=t.getScale(i,n),a=Math.floor((i+2*n.margin)*s),l=n.margin*s,c=[n.color.light,n.color.dark];for(let t=0;t<a;t++)for(let o=0;o<a;o++){let d=4*(t*a+o),u=n.color.light;if(t>=l&&o>=l&&t<a-l&&o<a-l){u=c[r[Math.floor((t-l)/s)*i+Math.floor((o-l)/s)]?1:0]}e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}}(Zt)),Zt}function Wt(){return Jt||(Jt=1,function(t){const e=Qt();t.render=function(t,o,n){let i=n,r=o;void 0!==i||o&&o.getContext||(i=o,o=void 0),o||(r=function(){try{return document.createElement("canvas")}catch(T){throw new Error("You need to specify a canvas element")}}()),i=e.getOptions(i);const s=e.getImageWidth(t.modules.size,i),a=r.getContext("2d"),l=a.createImageData(s,s);return e.qrToImageData(l.data,t,i),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"}(a,r,s),a.putImageData(l,0,0),r},t.renderToDataURL=function(e,o,n){let i=n;void 0!==i||o&&o.getContext||(i=o,o=void 0),i||(i={});const r=t.render(e,o,i),s=i.type||"image/png",a=i.rendererOpts||{};return r.toDataURL(s,a.quality)}}(Kt)),Kt}var Gt,Xt,te={};function ee(){if(Gt)return te;Gt=1;const t=Qt();function e(t,e){const o=t.a/255,n=e+'="'+t.hex+'"';return o<1?n+" "+e+'-opacity="'+o.toFixed(2).slice(1)+'"':n}function o(t,e,o){let n=t+e;return void 0!==o&&(n+=" "+o),n}return te.render=function(n,i,r){const s=t.getOptions(i),a=n.modules.size,l=n.modules.data,c=a+2*s.margin,d=s.color.light.a?"<path "+e(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+e(s.color.dark,"stroke")+' d="'+function(t,e,n){let i="",r=0,s=!1,a=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),d=Math.floor(l/e);c||s||(s=!0),t[l]?(a++,l>0&&c>0&&t[l-1]||(i+=s?o("M",c+n,.5+d+n):o("m",r,0),r=0,s=!1),c+1<e&&t[l+1]||(i+=o("h",a),a=0)):r++}return i}(l,a,s.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+h+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof r&&r(null,p),p},te}var oe=function(){if(Xt)return U;Xt=1;const t=O(),e=Vt(),o=Wt(),n=ee();function i(o,n,i,r,s){const a=[].slice.call(arguments,1),l=a.length,c="function"==typeof a[l-1];if(!c&&!t())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=n,n=r=void 0):2!==l||n.getContext||(r=i,i=n,n=void 0),new Promise(function(t,s){try{const s=e.create(i,r);t(o(s,n,r))}catch(T){s(T)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(s=i,i=n,n=r=void 0):3===l&&(n.getContext&&void 0===s?(s=r,r=void 0):(s=r,r=i,i=n,n=void 0));try{const t=e.create(i,r);s(null,o(t,n,r))}catch(T){s(T)}}return U.create=e.create,U.toCanvas=i.bind(null,o.render),U.toDataURL=i.bind(null,o.renderToDataURL),U.toString=i.bind(null,function(t,e,o){return n.render(t,o)}),U}();var ne=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,re=(t,e,o,n)=>{for(var i,r=n>1?void 0:n?ie(e,o):e,s=t.length-1;s>=0;s--)(i=t[s])&&(r=(n?i(e,o,r):i(r))||r);return n&&r&&ne(e,o,r),r};let se=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:n}=o,i=`${n}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,r={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};oe.toDataURL(i,r).then(o=>{const n=this.shadowRoot?.getElementById("qr");n&&n instanceof HTMLImageElement&&(n.src=o,l.getInstance().trackEvent("qr_modal_displayed",{origin_id:t,destination_id:e,qr_url:i}))})}}render(){const{cameraInitialized:t}=this.sdkData??{};return e`
|
|
212
|
+
`}};N.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}}')],N=((t,e,o,n)=>{for(var i,r=n>1?void 0:n?F(e,o):e,s=t.length-1;s>=0;s--)(i=t[s])&&(r=i(r)||r);return r})([s("floor-selector")],N);const S=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get FloorSelector(){return N}},Symbol.toStringTag,{value:"Module"}));var $,j,U={};function O(){return j?$:(j=1,$=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var q,H={},V={};function Z(){if(q)return V;let t;q=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 V.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},V.getSymbolTotalCodewords=function(t){return e[t]},V.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},V.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},V.isKanjiModeEnabled=function(){return void 0!==t},V.toSJIS=function(e){return t(e)},V}var Y,J,K,Q,W,G={};function X(){return Y||(Y=1,(t=G).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(T){return o}}),G;var t}var tt,et={};var ot,nt={};var it,rt={};var st,at={};function lt(){if(st)return at;st=1;const t=X(),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 at.getBlocksCount=function(o,n){switch(n){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}},at.getTotalCodewordsCount=function(e,n){switch(n){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}},at}var ct,dt,ut,ht,pt={},gt={};function ft(){return dt||(dt=1,function(t){const e=function(){if(ct)return gt;ct=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let o=1;for(let n=0;n<255;n++)t[n]=o,e[o]=n,o<<=1,256&o&&(o^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),gt.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},gt.exp=function(e){return t[e]},gt.mul=function(o,n){return 0===o||0===n?0:t[e[o]+e[n]]},gt}();t.mul=function(t,o){const n=new Uint8Array(t.length+o.length-1);for(let i=0;i<t.length;i++)for(let r=0;r<o.length;r++)n[i+r]^=e.mul(t[i],o[r]);return n},t.mod=function(t,o){let n=new Uint8Array(t);for(;n.length-o.length>=0;){const t=n[0];for(let r=0;r<o.length;r++)n[r]^=e.mul(o[r],t);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},t.generateECPolynomial=function(o){let n=new Uint8Array([1]);for(let i=0;i<o;i++)n=t.mul(n,new Uint8Array([1,e.exp(i)]));return n}}(pt)),pt}var mt,bt={},xt={},vt={};function wt(){return mt||(mt=1,vt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),vt}var yt,Ct,kt,Mt={};function Et(){if(yt)return Mt;yt=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]))+";Mt.KANJI=new RegExp(e,"g"),Mt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Mt.BYTE=new RegExp(o,"g"),Mt.NUMERIC=new RegExp(t,"g"),Mt.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const n=new RegExp("^"+e+"$"),i=new RegExp("^"+t+"$"),r=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Mt.testKanji=function(t){return n.test(t)},Mt.testNumeric=function(t){return i.test(t)},Mt.testAlphanumeric=function(t){return r.test(t)},Mt}function zt(){return Ct||(Ct=1,function(t){const e=wt(),o=Et();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(T){return o}}}(xt)),xt}function At(){return kt||(kt=1,function(t){const e=Z(),o=lt(),n=X(),i=zt(),r=wt(),s=e.getBCHDigit(7973);function a(t,e){return i.getCharCountIndicator(t,e)+4}function l(t,e){let o=0;return t.forEach(function(t){const n=a(t.mode,e);o+=n+t.getBitsLength()}),o}t.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,n,s){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===s&&(s=i.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,n));if(s===i.MIXED)return l;const c=l-a(s,t);switch(s){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,o){let r;const s=n.from(o,n.M);if(Array.isArray(e)){if(e.length>1)return function(e,o){for(let n=1;n<=40;n++)if(l(e,n)<=t.getCapacity(n,o,i.MIXED))return n}(e,s);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,o,n){for(let i=1;i<=40;i++)if(o<=t.getCapacity(i,n,e))return i}(r.mode,r.getLength(),s)},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)-s>=0;)o^=7973<<e.getBCHDigit(o)-s;return t<<12|o}}(bt)),bt}var It,Rt={};var Pt,Bt,Lt,Tt,Dt,_t,Ft,Nt,St={};var $t,jt,Ut,Ot={exports:{}};function qt(){return $t||($t=1,function(t){var e={single_source_shortest_paths:function(t,o,n){var i={},r={};r[o]=0;var s,a,l,c,d,u,h,p=e.PriorityQueue.make();for(p.push(o,0);!p.empty();)for(l in a=(s=p.pop()).value,c=s.cost,d=t[a]||{})d.hasOwnProperty(l)&&(u=c+d[l],h=r[l],(void 0===r[l]||h>u)&&(r[l]=u,p.push(l,u),i[l]=a));if(void 0!==n&&void 0===r[n]){var g=["Could not find a path from ",o," to ",n,"."].join("");throw new Error(g)}return i},extract_shortest_path_from_predecessor_list:function(t,e){for(var o=[],n=e;n;)o.push(n),t[n],n=t[n];return o.reverse(),o},find_path:function(t,o,n){var i=e.single_source_shortest_paths(t,o,n);return e.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(t){var o,n=e.PriorityQueue,i={};for(o in t=t||{},n)n.hasOwnProperty(o)&&(i[o]=n[o]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},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}(Ot)),Ot.exports}function Ht(){return jt||(jt=1,function(t){const e=zt(),o=function(){if(Bt)return Pt;Bt=1;const t=zt();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,n;for(e=0;e+3<=this.data.length;e+=3)o=this.data.substr(e,3),n=parseInt(o,10),t.put(n,10);const i=this.data.length-e;i>0&&(o=this.data.substr(e),n=parseInt(o,10),t.put(n,3*i+1))},Pt=e}(),n=function(){if(Tt)return Lt;Tt=1;const t=zt(),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 n=45*e.indexOf(this.data[o]);n+=e.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(e.indexOf(this.data[o]),6)},Lt=o}(),i=function(){if(_t)return Dt;_t=1;const t=zt();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)},Dt=e}(),r=function(){if(Nt)return Ft;Nt=1;const t=zt(),e=Z();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 n=e.toSJIS(this.data[o]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},Ft=o}(),s=Et(),a=Z(),l=qt();function c(t){return unescape(encodeURIComponent(t)).length}function d(t,e,o){const n=[];let i;for(;null!==(i=t.exec(o));)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function u(t){const o=d(s.NUMERIC,e.NUMERIC,t),n=d(s.ALPHANUMERIC,e.ALPHANUMERIC,t);let i,r;a.isKanjiModeEnabled()?(i=d(s.BYTE,e.BYTE,t),r=d(s.KANJI,e.KANJI,t)):(i=d(s.BYTE_KANJI,e.BYTE,t),r=[]);return o.concat(n,i,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function h(t,s){switch(s){case e.NUMERIC:return o.getBitsLength(t);case e.ALPHANUMERIC:return n.getBitsLength(t);case e.KANJI:return r.getBitsLength(t);case e.BYTE:return i.getBitsLength(t)}}function p(t,s){let l;const c=e.getBestModeForData(t);if(l=e.from(s,c),l!==e.BYTE&&l.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(c));switch(l!==e.KANJI||a.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new o(t);case e.ALPHANUMERIC:return new n(t);case e.KANJI:return new r(t);case e.BYTE:return new i(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t},[])},t.fromString=function(o,n){const i=function(t){const o=[];for(let n=0;n<t.length;n++){const i=t[n];switch(i.mode){case e.NUMERIC:o.push([i,{data:i.data,mode:e.ALPHANUMERIC,length:i.length},{data:i.data,mode:e.BYTE,length:i.length}]);break;case e.ALPHANUMERIC:o.push([i,{data:i.data,mode:e.BYTE,length:i.length}]);break;case e.KANJI:o.push([i,{data:i.data,mode:e.BYTE,length:c(i.data)}]);break;case e.BYTE:o.push([{data:i.data,mode:e.BYTE,length:c(i.data)}])}}return o}(u(o,a.isKanjiModeEnabled())),r=function(t,o){const n={},i={start:{}};let r=["start"];for(let s=0;s<t.length;s++){const a=t[s],l=[];for(let t=0;t<a.length;t++){const c=a[t],d=""+s+t;l.push(d),n[d]={node:c,lastCount:0},i[d]={};for(let t=0;t<r.length;t++){const s=r[t];n[s]&&n[s].node.mode===c.mode?(i[s][d]=h(n[s].lastCount+c.length,c.mode)-h(n[s].lastCount,c.mode),n[s].lastCount+=c.length):(n[s]&&(n[s].lastCount=c.length),i[s][d]=h(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,o))}}r=l}for(let e=0;e<r.length;e++)i[r[e]].end=0;return{map:i,table:n}}(i,n),s=l.find_path(r.map,"start","end"),d=[];for(let t=1;t<s.length-1;t++)d.push(r.table[s[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)},[])}(d))},t.rawSplit=function(e){return t.fromArray(u(e,a.isKanjiModeEnabled()))}}(St)),St}function Vt(){if(Ut)return H;Ut=1;const t=Z(),e=X(),o=function(){if(K)return J;function t(){this.buffer=[],this.length=0}return K=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++}},J=t}(),n=function(){if(W)return Q;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 W=1,t.prototype.set=function(t,e,o,n){const i=t*this.size+e;this.data[i]=o,n&&(this.reservedBit[i]=!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]},Q=t}(),i=(tt||(tt=1,function(t){const e=Z().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const o=Math.floor(t/7)+2,n=e(t),i=145===n?26:2*Math.ceil((n-13)/(2*o-2)),r=[n-7];for(let e=1;e<o-1;e++)r[e]=r[e-1]-i;return r.push(6),r.reverse()},t.getPositions=function(e){const o=[],n=t.getRowColCoords(e),i=n.length;for(let t=0;t<i;t++)for(let e=0;e<i;e++)0===t&&0===e||0===t&&e===i-1||t===i-1&&0===e||o.push([n[t],n[e]]);return o}}(et)),et),r=function(){if(ot)return nt;ot=1;const t=Z().getSymbolSize;return nt.getPositions=function(e){const o=t(e);return[[0,0],[o-7,0],[0,o-7]]},nt}(),s=(it||(it=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,n=40,i=10;function r(e,o,n){switch(e){case t.Patterns.PATTERN000:return(o+n)%2==0;case t.Patterns.PATTERN001:return o%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(o+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return o*n%2+o*n%3==0;case t.Patterns.PATTERN110:return(o*n%2+o*n%3)%2==0;case t.Patterns.PATTERN111:return(o*n%3+(o+n)%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 n=0,i=0,r=0,s=null,a=null;for(let l=0;l<o;l++){i=r=0,s=a=null;for(let c=0;c<o;c++){let o=t.get(l,c);o===s?i++:(i>=5&&(n+=e+(i-5)),s=o,i=1),o=t.get(c,l),o===a?r++:(r>=5&&(n+=e+(r-5)),a=o,r=1)}i>=5&&(n+=e+(i-5)),r>=5&&(n+=e+(r-5))}return n},t.getPenaltyN2=function(t){const e=t.size;let n=0;for(let o=0;o<e-1;o++)for(let i=0;i<e-1;i++){const e=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);4!==e&&0!==e||n++}return n*o},t.getPenaltyN3=function(t){const e=t.size;let o=0,i=0,r=0;for(let n=0;n<e;n++){i=r=0;for(let s=0;s<e;s++)i=i<<1&2047|t.get(n,s),s>=10&&(1488===i||93===i)&&o++,r=r<<1&2047|t.get(s,n),s>=10&&(1488===r||93===r)&&o++}return o*n},t.getPenaltyN4=function(t){let e=0;const o=t.data.length;for(let n=0;n<o;n++)e+=t.data[n];return Math.abs(Math.ceil(100*e/o/5)-10)*i},t.applyMask=function(t,e){const o=e.size;for(let n=0;n<o;n++)for(let i=0;i<o;i++)e.isReserved(i,n)||e.xor(i,n,r(t,i,n))},t.getBestMask=function(e,o){const n=Object.keys(t.Patterns).length;let i=0,r=1/0;for(let s=0;s<n;s++){o(s),t.applyMask(s,e);const n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),n<r&&(r=n,i=s)}return i}}(rt)),rt),a=lt(),l=function(){if(ht)return ut;ht=1;const t=ft();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 n=t.mod(o,this.genPoly),i=this.degree-n.length;if(i>0){const t=new Uint8Array(this.degree);return t.set(n,i),t}return n},ut=e}(),c=At(),d=function(){if(It)return Rt;It=1;const t=Z(),e=t.getBCHDigit(1335);return Rt.getEncodedBits=function(o,n){const i=o.bit<<3|n;let r=i<<10;for(;t.getBCHDigit(r)-e>=0;)r^=1335<<t.getBCHDigit(r)-e;return 21522^(i<<10|r)},Rt}(),u=zt(),h=Ht();function p(t,e,o){const n=t.size,i=d.getEncodedBits(e,o);let r,s;for(r=0;r<15;r++)s=1==(i>>r&1),r<6?t.set(r,8,s,!0):r<8?t.set(r+1,8,s,!0):t.set(n-15+r,8,s,!0),r<8?t.set(8,n-r-1,s,!0):r<9?t.set(8,15-r-1+1,s,!0):t.set(8,15-r-1,s,!0);t.set(n-8,8,1,!0)}function g(e,n,i){const r=new o;i.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),u.getCharCountIndicator(t.mode,e)),t.write(r)});const s=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,n));for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const c=(s-r.getLengthInBits())/8;for(let t=0;t<c;t++)r.put(t%2?17:236,8);return function(e,o,n){const i=t.getSymbolTotalCodewords(o),r=a.getTotalCodewordsCount(o,n),s=i-r,c=a.getBlocksCount(o,n),d=i%c,u=c-d,h=Math.floor(i/c),p=Math.floor(s/c),g=p+1,f=h-p,m=new l(f);let b=0;const x=new Array(c),v=new Array(c);let w=0;const y=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<u?p:g;x[t]=y.slice(b,b+e),v[t]=m.encode(x[t]),b+=e,w=Math.max(w,e)}const C=new Uint8Array(i);let k,M,E=0;for(k=0;k<w;k++)for(M=0;M<c;M++)k<x[M].length&&(C[E++]=x[M][k]);for(k=0;k<f;k++)for(M=0;M<c;M++)C[E++]=v[M][k];return C}(r,e,n)}function f(e,o,a,l){let d;if(Array.isArray(e))d=h.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=o;if(!t){const o=h.rawSplit(e);t=c.getBestVersionForData(o,a)}d=h.fromString(e,t||40)}}const u=c.getBestVersionForData(d,a);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(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,a,d),m=t.getSymbolSize(o),b=new n(m);return function(t,e){const o=t.size,n=r.getPositions(e);for(let i=0;i<n.length;i++){const e=n[i][0],r=n[i][1];for(let n=-1;n<=7;n++)if(!(e+n<=-1||o<=e+n))for(let i=-1;i<=7;i++)r+i<=-1||o<=r+i||(n>=0&&n<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===n||6===n)||n>=2&&n<=4&&i>=2&&i<=4?t.set(e+n,r+i,!0,!0):t.set(e+n,r+i,!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=i.getPositions(e);for(let n=0;n<o.length;n++){const e=o[n][0],i=o[n][1];for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)-2===o||2===o||-2===n||2===n||0===o&&0===n?t.set(e+o,i+n,!0,!0):t.set(e+o,i+n,!1,!0)}}(b,o),p(b,a,0),o>=7&&function(t,e){const o=t.size,n=c.getEncodedBits(e);let i,r,s;for(let a=0;a<18;a++)i=Math.floor(a/3),r=a%3+o-8-3,s=1==(n>>a&1),t.set(i,r,s,!0),t.set(r,i,s,!0)}(b,o),function(t,e){const o=t.size;let n=-1,i=o-1,r=7,s=0;for(let a=o-1;a>0;a-=2)for(6===a&&a--;;){for(let o=0;o<2;o++)if(!t.isReserved(i,a-o)){let n=!1;s<e.length&&(n=1==(e[s]>>>r&1)),t.set(i,a-o,n),r--,-1===r&&(s++,r=7)}if(i+=n,i<0||o<=i){i-=n,n=-n;break}}}(b,f),isNaN(l)&&(l=s.getBestMask(b,p.bind(null,b,a))),s.applyMask(l,b),p(b,a,l),{modules:b,version:o,errorCorrectionLevel:a,maskPattern:l,segments:d}}return H.create=function(o,n){if(void 0===o||""===o)throw new Error("No input text");let i,r,a=e.M;return void 0!==n&&(a=e.from(n.errorCorrectionLevel,e.M),i=c.from(n.version),r=s.from(n.maskPattern),n.toSJISFunc&&t.setToSJISFunction(n.toSJISFunc)),f(o,i,a,r)},H}var Zt,Yt,Jt={},Kt={};function Qt(){return Zt||(Zt=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,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,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 n=t.getScale(e,o);return Math.floor((e+2*o.margin)*n)},t.qrToImageData=function(e,o,n){const i=o.modules.size,r=o.modules.data,s=t.getScale(i,n),a=Math.floor((i+2*n.margin)*s),l=n.margin*s,c=[n.color.light,n.color.dark];for(let t=0;t<a;t++)for(let o=0;o<a;o++){let d=4*(t*a+o),u=n.color.light;if(t>=l&&o>=l&&t<a-l&&o<a-l){u=c[r[Math.floor((t-l)/s)*i+Math.floor((o-l)/s)]?1:0]}e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}}(Kt)),Kt}function Wt(){return Yt||(Yt=1,function(t){const e=Qt();t.render=function(t,o,n){let i=n,r=o;void 0!==i||o&&o.getContext||(i=o,o=void 0),o||(r=function(){try{return document.createElement("canvas")}catch(T){throw new Error("You need to specify a canvas element")}}()),i=e.getOptions(i);const s=e.getImageWidth(t.modules.size,i),a=r.getContext("2d"),l=a.createImageData(s,s);return e.qrToImageData(l.data,t,i),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"}(a,r,s),a.putImageData(l,0,0),r},t.renderToDataURL=function(e,o,n){let i=n;void 0!==i||o&&o.getContext||(i=o,o=void 0),i||(i={});const r=t.render(e,o,i),s=i.type||"image/png",a=i.rendererOpts||{};return r.toDataURL(s,a.quality)}}(Jt)),Jt}var Gt,Xt,te={};function ee(){if(Gt)return te;Gt=1;const t=Qt();function e(t,e){const o=t.a/255,n=e+'="'+t.hex+'"';return o<1?n+" "+e+'-opacity="'+o.toFixed(2).slice(1)+'"':n}function o(t,e,o){let n=t+e;return void 0!==o&&(n+=" "+o),n}return te.render=function(n,i,r){const s=t.getOptions(i),a=n.modules.size,l=n.modules.data,c=a+2*s.margin,d=s.color.light.a?"<path "+e(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+e(s.color.dark,"stroke")+' d="'+function(t,e,n){let i="",r=0,s=!1,a=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),d=Math.floor(l/e);c||s||(s=!0),t[l]?(a++,l>0&&c>0&&t[l-1]||(i+=s?o("M",c+n,.5+d+n):o("m",r,0),r=0,s=!1),c+1<e&&t[l+1]||(i+=o("h",a),a=0)):r++}return i}(l,a,s.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+h+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof r&&r(null,p),p},te}var oe=function(){if(Xt)return U;Xt=1;const t=O(),e=Vt(),o=Wt(),n=ee();function i(o,n,i,r,s){const a=[].slice.call(arguments,1),l=a.length,c="function"==typeof a[l-1];if(!c&&!t())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=n,n=r=void 0):2!==l||n.getContext||(r=i,i=n,n=void 0),new Promise(function(t,s){try{const s=e.create(i,r);t(o(s,n,r))}catch(T){s(T)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(s=i,i=n,n=r=void 0):3===l&&(n.getContext&&void 0===s?(s=r,r=void 0):(s=r,r=i,i=n,n=void 0));try{const t=e.create(i,r);s(null,o(t,n,r))}catch(T){s(T)}}return U.create=e.create,U.toCanvas=i.bind(null,o.render),U.toDataURL=i.bind(null,o.renderToDataURL),U.toString=i.bind(null,function(t,e,o){return n.render(t,o)}),U}();var ne=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,re=(t,e,o,n)=>{for(var i,r=n>1?void 0:n?ie(e,o):e,s=t.length-1;s>=0;s--)(i=t[s])&&(r=(n?i(e,o,r):i(r))||r);return n&&r&&ne(e,o,r),r};let se=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:n}=o,i=`${n}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,r={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};oe.toDataURL(i,r).then(o=>{const n=this.shadowRoot?.getElementById("qr");n&&n instanceof HTMLImageElement&&(n.src=o,l.getInstance().trackEvent("qr_modal_displayed",{origin_id:t,destination_id:e,qr_url:i}))})}}render(){const{cameraInitialized:t}=this.sdkData??{};return e`
|
|
213
213
|
<div class=${T({card:!0,hidden:!t})}>
|
|
214
214
|
<div class="modal-content">
|
|
215
215
|
<div class="pin-container">
|
|
@@ -320,4 +320,4 @@ function m({context:t,subscribe:e}){return(o,n)=>{"object"==typeof n?n.addInitia
|
|
|
320
320
|
</div>
|
|
321
321
|
`:""}
|
|
322
322
|
`}};ue.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}")],de([m({context:b,subscribe:!0})],ue.prototype,"sdkData",2),ue=de([s("route-options")],ue);const he=/*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({__proto__:null,get RouteOptions(){return ue}},Symbol.toStringTag,{value:"Module"}));export{_ as B,P as c,T as e,S as f,f as i,ae as q,he as r,b as s};
|
|
323
|
-
//# sourceMappingURL=components-
|
|
323
|
+
//# sourceMappingURL=components-D2U78N9l.js.map
|