@mapvx/web-components 0.0.18 → 0.0.19
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/back_arrow-Cb1GjmUe.cjs +2 -0
- package/dist/cjs/{consume-BFImOAwk.cjs → consume-CE1TVLg-.cjs} +2 -2
- package/dist/cjs/custom-map-C_Cpnb0N.cjs +8 -0
- package/dist/cjs/floor-selector-D6YcNzdw.cjs +20 -0
- package/dist/cjs/{lazy-load-B_m5cmiy.cjs → lazy-load-DHtTuPrp.cjs} +2 -2
- package/dist/cjs/map-view-with-modal.cjs +1 -1
- package/dist/cjs/qr-modal-CkWqbgpG.cjs +16 -0
- package/dist/cjs/{route-options-CO_OCowG.cjs → route-options-H5wyZZ4h.cjs} +3 -3
- package/dist/cjs/route-view-totems.cjs +3 -4
- package/dist/es/assets/back_arrow-CUOAm8Zc.js +4 -0
- package/dist/es/assets/{components-KK5HFu0_.js → components-y75xh-dL.js} +17 -38
- package/dist/es/assets/{map-view-with-modal-CaAivY-n.js → map-view-with-modal-B5Mk49H1.js} +3 -3
- package/dist/es/assets/{route-view-totems-BYQG4LAF.js → route-view-totems-C8X6pCW7.js} +15 -14
- package/dist/es/assets/{utils-BxHEw8O3.js → utils-C2SiQIHC.js} +29 -61
- package/dist/es/index.js +2 -2
- package/dist/es/route-view-totems.js +2 -2
- package/dist/iife/map-view-with-modal.js +13 -13
- package/dist/iife/route-view-totems.js +26 -27
- package/package.json +2 -26
- package/dist/cjs/back_arrow-DNrh84z6.cjs +0 -2
- package/dist/cjs/class-map-Bdex8DcD.cjs +0 -12
- package/dist/cjs/custom-map-DARXhpnO.cjs +0 -8
- package/dist/cjs/floor-selector-CzILr6OJ.cjs +0 -15
- package/dist/cjs/qr-modal-D-Dxv4eF.cjs +0 -16
- package/dist/es/assets/back_arrow-B4vxoqtW.js +0 -4
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapvx/web-components",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.0.18",
|
|
3
|
+
"version": "0.0.19",
|
|
5
4
|
"type": "module",
|
|
6
5
|
"author": "Mapvx",
|
|
7
6
|
"homepage": "https://mapvx.com",
|
|
@@ -53,16 +52,7 @@
|
|
|
53
52
|
"prepublishOnly": "npm run build-with-sourcemaps",
|
|
54
53
|
"upload-sourcemaps": "./scripts/upload-sourcemaps-to-rollbar.sh",
|
|
55
54
|
"build-with-sourcemaps": "./scripts/build-and-upload-sourcemaps.sh",
|
|
56
|
-
"sonar": "sonar-scanner"
|
|
57
|
-
"test": "jest",
|
|
58
|
-
"test:watch": "jest --watch",
|
|
59
|
-
"test:coverage": "jest --coverage",
|
|
60
|
-
"test:e2e": "jest --config=jest-puppeteer.config.js",
|
|
61
|
-
"test:e2e:watch": "jest --config=jest-puppeteer.config.js --watch",
|
|
62
|
-
"test:all": "npm run test && npm run test:e2e",
|
|
63
|
-
"test:web": "web-test-runner test/**/*.test.ts --node-resolve",
|
|
64
|
-
"test:web:watch": "web-test-runner test/**/*.test.ts --node-resolve --watch",
|
|
65
|
-
"test:web:coverage": "web-test-runner test/**/*.test.ts --node-resolve --coverage"
|
|
55
|
+
"sonar": "sonar-scanner"
|
|
66
56
|
},
|
|
67
57
|
"dependencies": {
|
|
68
58
|
"lit": "^3.2.1",
|
|
@@ -73,35 +63,21 @@
|
|
|
73
63
|
"rollbar": "^2.26.4"
|
|
74
64
|
},
|
|
75
65
|
"devDependencies": {
|
|
76
|
-
"@esm-bundle/chai": "^4.3.4-fix.0",
|
|
77
66
|
"@lit/context": "^1.1.5",
|
|
78
67
|
"@lzdevelopers/my-maps-js": "^2.14.0",
|
|
79
|
-
"@open-wc/testing": "^4.0.0",
|
|
80
|
-
"@types/jest": "^30.0.0",
|
|
81
|
-
"@types/jest-environment-puppeteer": "^5.0.6",
|
|
82
|
-
"@types/puppeteer": "^5.4.7",
|
|
83
68
|
"@types/qrcode": "^1.5.5",
|
|
84
69
|
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
85
70
|
"@typescript-eslint/parser": "^8.31.1",
|
|
86
|
-
"@web/dev-server-legacy": "^2.1.1",
|
|
87
|
-
"@web/test-runner": "^0.20.2",
|
|
88
|
-
"@web/test-runner-mocha": "^0.9.0",
|
|
89
71
|
"eslint": "^9.25.1",
|
|
90
72
|
"eslint-config-prettier": "^10.1.2",
|
|
91
73
|
"eslint-plugin-lit": "^2.1.1",
|
|
92
|
-
"eslint-plugin-mocha": "^11.1.0",
|
|
93
74
|
"eslint-plugin-prettier": "^5.2.6",
|
|
94
75
|
"husky": "^9.1.7",
|
|
95
|
-
"jest": "^30.0.3",
|
|
96
|
-
"jest-environment-jsdom": "^30.0.2",
|
|
97
|
-
"jest-puppeteer": "^11.0.0",
|
|
98
76
|
"lint-staged": "^15.5.1",
|
|
99
77
|
"lit-analyzer": "^2.0.3",
|
|
100
78
|
"prettier": "^3.5.3",
|
|
101
|
-
"puppeteer": "^24.10.2",
|
|
102
79
|
"sonarqube-scanner": "^3.3.0",
|
|
103
80
|
"terser": "^5.39.1",
|
|
104
|
-
"ts-jest": "^29.4.0",
|
|
105
81
|
"ts-lit-plugin": "^2.0.2",
|
|
106
82
|
"typescript": "~5.7.2",
|
|
107
83
|
"vite": "^6.3.1",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.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';
|
|
2
|
-
//# sourceMappingURL=back_arrow-DNrh84z6.cjs.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./lazy-load-B_m5cmiy.cjs"),s=1;
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/class e{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,e){this._$Ct=t,this._$AM=s,this._$Ci=e}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}}
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2018 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const r=(t=>(...s)=>({_$litDirective$:t,values:s}))(class extends e{constructor(t){if(super(t),t.type!==s||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[e]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const r=s.element.classList;for(const t of this.st)t in e||(r.remove(t),this.st.delete(t));for(const t in e){const s=!!e[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t.T}});exports.e=r;
|
|
12
|
-
//# sourceMappingURL=class-map-Bdex8DcD.cjs.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./consume-BFImOAwk.cjs"),e=require("./lazy-load-B_m5cmiy.cjs");class i{static create(t){const e=document.createElement("div"),i=document.createElement("style");i.textContent='@keyframes fadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.popup{background:#fff;filter:drop-shadow(0 1px 4px rgba(0,0,0,.2));padding:15px;border-radius:10px;border:1px solid #cccccc;min-width:180px;position:relative;transform:translateY(-50%)}.popup:after{content:"";position:absolute;bottom:-10px;left:50%;transform:translate(-50%);width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid white;z-index:1}.popup:before{content:"";position:absolute;bottom:-11px;left:50%;transform:translate(-50%);width:0;height:0;border-left:11px solid transparent;border-right:11px solid transparent;border-top:11px solid #cccccc;z-index:0}.popup-content{display:flex;flex-direction:column;gap:4px}.popup-logo{width:100%;object-fit:contain;object-position:center;height:60px;overflow:hidden;align-self:center;max-width:100%}.popup-name{position:relative;color:#000;text-align:center;letter-spacing:-1.1719905853px;margin-top:10px;max-width:250px;font:700 23px/23px Poppins,-apple-system,Roboto,Helvetica,sans-serif}.popup-category{color:#555;position:relative;color:#000;text-align:center;letter-spacing:-.5859952927px;white-space:nowrap;margin:5px 0 20px;font:400 12px/14px Poppins,-apple-system,Roboto,Helvetica,sans-serif}@media (max-width: 991px){.popup-category{margin-bottom:40px;white-space:initial}}',e.appendChild(i);const o=document.createElement("div");return o.className="popup",o.innerHTML=`<div class="popup-content">\n ${t.url_logo?`<img src="${t.url_logo}" class="popup-logo" loading="lazy"/>`:""}\n <div class="popup-name">${t.name}</div>\n ${t.category?`<div class="popup-category">${t.category}</div>`:""}\n </div>\n `,e.appendChild(o),e}}class o{constructor(t){this.host=t,this.connected=!1,this.markersIds=[],this.mapReady=!1,this.accessibleRoute=!1,this.host.addController(this)}hostConnected(){this.connected=!0}hostDisconnected(){this.connected=!1}setMap(t){this.map=t}setMapReady(t){this.mapReady=t}setAccessibleRoute(t){this.accessibleRoute=t}setParentPlace(t){this.parentPlace=t}updateMarkers(t){if(!(this.connected&&this.map&&this.mapReady&&this.parentPlace))return;const o=this.parentPlace.innerFloors??[];this.markersIds.forEach((t=>{try{this.map?.removeMarker(t.id)}catch{}})),this.markersIds=[],t.forEach((t=>{const{style:s,id:a,data:r}=t;let n,l,c=null;switch(s){case e.MarkerStyle.youAreHere:{const t=document.createElement("img"),e=r;n=e.inFloor(o)?.key,t.src=this.accessibleRoute?"data:image/svg+xml,%3csvg%20width='165'%20height='48'%20viewBox='0%200%20210%2061'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M47.2975%208.64848L186.354%208.64848C198.371%208.64848%20208.112%2018.3895%20208.112%2030.4057C208.112%2042.4219%20198.371%2052.1629%20186.354%2052.1629L47.2975%2052.1629L47.2975%208.64848Z'%20fill='%239D55F9'%20stroke='white'%20stroke-width='1.89193'/%3e%3cpath%20d='M58.6414%2030.4057C58.6414%2045.5565%2046.3592%2057.8387%2031.2084%2057.8387C16.0576%2057.8387%203.7754%2045.5565%203.7754%2030.4057C3.7754%2015.2548%2016.0576%202.97266%2031.2084%202.97266C46.3592%202.97266%2058.6414%2015.2548%2058.6414%2030.4057Z'%20fill='white'%20stroke='%239D55F9'%20stroke-width='5.67579'/%3e%3cpath%20d='M45.9091%2039.0728C45.6031%2038.1568%2044.6222%2037.6597%2043.6957%2037.967L42.6358%2038.3191L40.3551%2032.852C40.0899%2032.1384%2039.45%2031.7501%2038.7335%2031.7501H33.3858L32.817%2029.1251H36.378C37.3455%2029.1251%2038.1281%2028.3425%2038.1281%2027.3751C38.1281%2026.4077%2037.3455%2025.6251%2036.378%2025.6251H32.0584L31.9791%2025.2532C31.7713%2023.7712%2030.4259%2022.8251%2029.0039%2023.0275C27.5218%2023.2298%2026.5702%2024.5587%2026.778%2025.997L28.0731%2033.6751C28.1617%2034.572%2028.9164%2035.2501%2029.8134%2035.2501H37.5467L40.0002%2041.1509C40.2758%2041.829%2040.9321%2042.2501%2041.6267%2042.2501C41.8096%2042.2501%2041.9976%2042.2211%2042.1802%2042.1596L44.8054%2041.2846C45.7231%2040.9814%2046.2153%2039.9915%2045.9091%2039.0728ZM26.7506%2041.3751C23.3729%2041.3751%2020.6252%2038.6276%2020.6252%2035.2501C20.6252%2032.2833%2022.7461%2029.806%2025.5507%2029.2454L25.1154%2026.6642C21.066%2027.4298%2018%2030.979%2018%2035.2501C18%2040.0829%2021.9176%2044.0001%2026.7506%2044.0001C30.9838%2044.0001%2034.5114%2040.9939%2035.3263%2037.0001H32.6409C31.8315%2039.5212%2029.518%2041.3751%2026.7506%2041.3751ZM28.5008%2021.2501C29.9506%2021.2501%2031.126%2020.0749%2031.126%2018.6251C31.126%2017.1754%2029.9501%2016.0001%2028.5008%2016.0001C27.0514%2016.0001%2025.8756%2017.1754%2025.8756%2018.6251C25.8756%2020.0749%2027.0514%2021.2501%2028.5008%2021.2501Z'%20fill='%23020202'/%3e%3cpath%20d='M78.5428%2041.0531L67.6531%2041.0531L67.6531%2022.1449L78.5428%2022.1449L78.5428%2025.4299L71.6624%2025.4299L71.6624%2029.5814L78.0643%2029.5814L78.0643%2032.8664L71.6624%2032.8664L71.6624%2037.7422L78.5428%2037.7422L78.5428%2041.0531ZM90.9534%2036.7593C90.9534%2038.2423%2090.4361%2039.3718%2089.4015%2040.1478C88.3754%2040.9238%2086.8364%2041.3118%2084.7843%2041.3118C83.7324%2041.3118%2082.8358%2041.2385%2082.0943%2041.0919C81.3528%2040.9539%2080.6587%2040.747%2080.012%2040.4711L80.012%2037.212C80.7449%2037.5568%2081.5683%2037.8457%2082.4822%2038.0785C83.4048%2038.3113%2084.2153%2038.4277%2084.9137%2038.4277C86.3449%2038.4277%2087.0606%2038.0138%2087.0606%2037.1861C87.0606%2036.8757%2086.9657%2036.6257%2086.776%2036.436C86.5864%2036.2377%2086.2587%2036.0178%2085.7931%2035.7764C85.3275%2035.5263%2084.7067%2035.2375%2083.9308%2034.9099C82.8185%2034.4443%2081.9994%2034.0132%2081.4735%2033.6166C80.9561%2033.2199%2080.5768%2032.7673%2080.3353%2032.2586C80.1026%2031.7413%2079.9862%2031.1075%2079.9862%2030.3574C79.9862%2029.0727%2080.4819%2028.0812%2081.4735%2027.3828C82.4736%2026.6758%2083.8876%2026.3223%2085.7155%2026.3223C87.4572%2026.3223%2089.1514%2026.7016%2090.7982%2027.4604L89.6084%2030.3057C88.8841%2029.9953%2088.2073%2029.7409%2087.5779%2029.5426C86.9485%2029.3443%2086.3061%2029.2452%2085.6509%2029.2452C84.4869%2029.2452%2083.9049%2029.5599%2083.9049%2030.1893C83.9049%2030.5428%2084.0903%2030.8489%2084.461%2031.1075C84.8404%2031.3662%2085.6638%2031.7499%2086.9312%2032.2586C88.0607%2032.7155%2088.8885%2033.1423%2089.4144%2033.539C89.9403%2033.9356%2090.3283%2034.3925%2090.5784%2034.9099C90.8284%2035.4272%2090.9534%2036.0437%2090.9534%2036.7593ZM98.7987%2038.169C99.4884%2038.169%20100.316%2038.0181%20101.282%2037.7164L101.282%2040.6522C100.299%2041.0919%2099.0918%2041.3118%2097.6606%2041.3118C96.0827%2041.3118%2094.9317%2040.9151%2094.2074%2040.1219C93.4918%2039.3201%2093.134%2038.1216%2093.134%2036.5265L93.134%2029.5556L91.2457%2029.5556L91.2457%2027.8872L93.4185%2026.568L94.5566%2023.5158L97.0786%2023.5158L97.0786%2026.5939L101.127%2026.5939V29.5556L97.0786%2029.5556L97.0786%2036.5265C97.0786%2037.0869%2097.2338%2037.5008%2097.5442%2037.7681C97.8632%2038.0354%2098.2813%2038.169%2098.7987%2038.169ZM112.076%2041.0531L111.313%2039.0873H111.209C110.545%2039.9236%20109.86%2040.5056%20109.153%2040.8332C108.455%2041.1523%20107.541%2041.3118%20106.411%2041.3118C105.023%2041.3118%20103.928%2040.9151%20103.126%2040.1219C102.333%2039.3287%20101.936%2038.1992%20101.936%2036.7334C101.936%2035.1987%20102.471%2034.0692%20103.54%2033.345C104.618%2032.6121%20106.239%2032.2068%20108.403%2032.1292L110.912%2032.0516V31.4179C110.912%2029.9522%20110.162%2029.2193%20108.661%2029.2193C107.506%2029.2193%20106.148%2029.5685%20104.588%2030.2669L103.281%2027.6027C104.945%2026.7318%20106.79%2026.2964%20108.817%2026.2964C110.757%2026.2964%20112.244%2026.7189%20113.279%2027.5639C114.313%2028.4088%20114.831%2029.6935%20114.831%2031.4179L114.831%2041.0531L112.076%2041.0531ZM110.912%2034.3537L109.386%2034.4055C108.239%2034.44%20107.385%2034.6469%20106.825%2035.0263C106.265%2035.4056%20105.984%2035.9833%20105.984%2036.7593C105.984%2037.8716%20106.622%2038.4277%20107.898%2038.4277C108.812%2038.4277%20109.541%2038.1647%20110.084%2037.6388C110.636%2037.1128%20110.912%2036.4144%20110.912%2035.5436V34.3537ZM106.527%2025.0031V24.6539C108.01%2022.9295%20109.024%2021.6319%20109.567%2020.761L113.99%2020.761V21.0326C113.542%2021.481%20112.774%2022.1492%20111.688%2023.0373C110.61%2023.9167%20109.765%2024.572%20109.153%2025.0031L106.527%2025.0031ZM127.668%2036.7593C127.668%2038.2423%20127.151%2039.3718%20126.116%2040.1478C125.09%2040.9238%20123.551%2041.3118%20121.499%2041.3118C120.447%2041.3118%20119.55%2041.2385%20118.809%2041.0919C118.067%2040.9539%20117.373%2040.747%20116.727%2040.4711L116.727%2037.212C117.459%2037.5568%20118.283%2037.8457%20119.197%2038.0785C120.119%2038.3113%20120.93%2038.4277%20121.628%2038.4277C123.059%2038.4277%20123.775%2038.0138%20123.775%2037.1861C123.775%2036.8757%20123.68%2036.6257%20123.491%2036.436C123.301%2036.2377%20122.973%2036.0178%20122.508%2035.7764C122.042%2035.5263%20121.421%2035.2375%20120.645%2034.9099C119.533%2034.4443%20118.714%2034.0132%20118.188%2033.6166C117.671%2033.2199%20117.291%2032.7673%20117.05%2032.2586C116.817%2031.7413%20116.701%2031.1075%20116.701%2030.3574C116.701%2029.0727%20117.196%2028.0812%20118.188%2027.3828C119.188%2026.6758%20120.602%2026.3223%20122.43%2026.3223C124.172%2026.3223%20125.866%2026.7016%20127.513%2027.4604L126.323%2030.3057C125.599%2029.9953%20124.922%2029.7409%20124.292%2029.5426C123.663%2029.3443%20123.021%2029.2452%20122.365%2029.2452C121.201%2029.2452%20120.619%2029.5599%20120.619%2030.1893C120.619%2030.5428%20120.805%2030.8489%20121.176%2031.1075C121.555%2031.3662%20122.378%2031.7499%20123.646%2032.2586C124.775%2032.7155%20125.603%2033.1423%20126.129%2033.539C126.655%2033.9356%20127.043%2034.3925%20127.293%2034.9099C127.543%2035.4272%20127.668%2036.0437%20127.668%2036.7593ZM144.16%2041.0531L143.397%2039.0873H143.294C142.63%2039.9236%20141.944%2040.5056%20141.237%2040.8332C140.539%2041.1523%20139.625%2041.3118%20138.496%2041.3118C137.107%2041.3118%20136.012%2040.9151%20135.211%2040.1219C134.417%2039.3287%20134.021%2038.1992%20134.021%2036.7334C134.021%2035.1987%20134.555%2034.0692%20135.624%2033.345C136.702%2032.6121%20138.323%2032.2068%20140.487%2032.1292L142.996%2032.0516V31.4179C142.996%2029.9522%20142.246%2029.2193%20140.746%2029.2193C139.591%2029.2193%20138.233%2029.5685%20136.672%2030.2669L135.366%2027.6027C137.03%2026.7318%20138.875%2026.2964%20140.901%2026.2964C142.841%2026.2964%20144.328%2026.7189%20145.363%2027.5639C146.398%2028.4088%20146.915%2029.6935%20146.915%2031.4179L146.915%2041.0531L144.16%2041.0531ZM142.996%2034.3537L141.47%2034.4055C140.323%2034.44%20139.47%2034.6469%20138.909%2035.0263C138.349%2035.4056%20138.069%2035.9833%20138.069%2036.7593C138.069%2037.8716%20138.707%2038.4277%20139.983%2038.4277C140.897%2038.4277%20141.625%2038.1647%20142.169%2037.6388C142.72%2037.1128%20142.996%2036.4144%20142.996%2035.5436V34.3537ZM155.653%2038.2207C156.653%2038.2207%20157.386%2037.9362%20157.851%2037.3672C158.317%2036.7895%20158.571%2035.785%20158.614%2034.3537V33.8752C158.614%2032.3232%20158.373%2031.211%20157.89%2030.5385C157.416%2029.866%20156.649%2029.5297%20155.588%2029.5297C153.734%2029.5297%20152.807%2030.9868%20152.807%2033.9011C152.807%2035.3496%20153.036%2036.4317%20153.493%2037.1473C153.958%2037.8629%20154.678%2038.2207%20155.653%2038.2207ZM154.243%2041.3118C152.536%2041.3118%20151.199%2040.6565%20150.234%2039.3459C149.268%2038.0268%20148.785%2036.1946%20148.785%2033.8494C148.785%2031.4869%20149.277%2029.6418%20150.26%2028.314C151.251%2026.9862%20152.605%2026.3223%20154.321%2026.3223C155.234%2026.3223%20156.032%2026.4947%20156.713%2026.8396C157.394%2027.1845%20157.994%2027.7191%20158.511%2028.4433L158.614%2028.4433L158.964%2026.5939L162.3%2026.5939L162.3%2047.4162L158.343%2047.4162L158.343%2041.3506C158.343%2040.8246%20158.399%2040.1004%20158.511%2039.1778H158.343C157.92%2039.8762%20157.36%2040.4064%20156.661%2040.7686C155.963%2041.1307%20155.157%2041.3118%20154.243%2041.3118ZM175.345%2041.0531L174.814%2039.2037L174.607%2039.2037C174.185%2039.8762%20173.586%2040.3978%20172.81%2040.7686C172.034%2041.1307%20171.15%2041.3118%20170.158%2041.3118C168.46%2041.3118%20167.18%2040.8591%20166.317%2039.9538C165.455%2039.0398%20165.024%2037.7293%20165.024%2036.0221L165.024%2026.5939L168.969%2026.5939L168.969%2035.0392C168.969%2036.0825%20169.154%2036.8671%20169.525%2037.393C169.895%2037.9104%20170.486%2038.169%20171.297%2038.169C172.4%2038.169%20173.198%2037.8026%20173.689%2037.0697C174.181%2036.3282%20174.426%2035.1039%20174.426%2033.3967L174.426%2026.5939L178.371%2026.5939L178.371%2041.0531L175.345%2041.0531ZM185.13%2041.0531L181.185%2041.0531L181.185%2026.5939L185.13%2026.5939L185.13%2041.0531ZM180.991%2025.0031V24.6539C182.474%2022.9295%20183.487%2021.6319%20184.031%2020.761L188.454%2020.761V21.0326C188.005%2021.481%20187.238%2022.1492%20186.152%2023.0373C185.074%2023.9167%20184.229%2024.572%20183.617%2025.0031L180.991%2025.0031Z'%20fill='white'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg%20width='165'%20height='48'%20viewBox='0%200%20110%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M24%204H98C104.627%204%20110%209.37258%20110%2016C110%2022.6274%20104.627%2028%2098%2028H24V4Z'%20fill='%239D55F9'/%3e%3ccircle%20cx='16'%20cy='16'%20r='14.5'%20fill='white'%20stroke='%239D55F9'%20stroke-width='3'/%3e%3cpath%20d='M18.9254%209.90632C18.9254%2010.683%2018.2703%2011.3126%2017.4628%2011.3126C16.6553%2011.3126%2016.0002%2010.683%2016.0002%209.90632C16.0002%209.12962%2016.6553%208.5%2017.4628%208.5C18.2703%208.5%2018.9254%209.12962%2018.9254%209.90632ZM14.9795%2014.3392C14.9521%2014.3509%2014.9216%2014.3626%2014.8942%2014.3743L14.559%2014.5179C14.0931%2014.7171%2013.7278%2015.0804%2013.5389%2015.5345L13.4928%2015.6459C13.293%2016.1263%2012.7256%2016.3607%2012.2256%2016.1674C11.7256%2015.974%2011.4824%2015.429%2011.6823%2014.9486L11.7283%2014.8372C12.1058%2013.9319%2012.8368%2013.2024%2013.7656%2012.8039L14.1007%2012.6604C14.7357%2012.3908%2015.3939%2012.2502%2016.113%2012.2502C17.4719%2012.2502%2018.6968%2013.0354%2019.2179%2014.2395L19.6597%2015.3177L20.3361%2015.6312C20.8176%2015.8627%2021.0126%2016.4252%2020.7719%2016.8881C20.5312%2017.351%2019.9461%2017.5385%2019.4647%2017.3071L18.6511%2016.9174C18.3373%2016.7651%2018.0905%2016.5102%2017.9564%2016.1996L17.6639%2015.5257L17.0758%2017.4448L18.5841%2019.0298C18.7486%2019.2027%2018.8675%2019.4107%2018.9254%2019.6392L19.6262%2022.3347C19.7572%2022.8386%2019.4403%2023.3484%2018.9193%2023.4714C18.3952%2023.5974%2017.865%2023.2927%2017.7096%2022.7917L17.0636%2020.2076L14.9124%2017.9487C14.4615%2017.477%2014.2665%2016.8178%2014.4645%2016.1996L14.9795%2014.3392ZM13.2192%2020.1607L13.9798%2018.3325C14.0453%2018.4204%2014.116%2018.5024%2014.1934%2018.5845L15.4335%2019.8853L14.9917%2020.9459C14.9185%2021.1246%2014.8089%2021.2858%2014.6687%2021.4176L12.7896%2023.2253C12.4087%2023.5916%2011.7914%2023.5916%2011.4106%2023.2253C11.0298%2022.8591%2011.0298%2022.2673%2011.4106%2021.901L13.2192%2020.1607Z'%20fill='black'/%3e%3cpath%20d='M41.0137%2021H35.2578V11.0059H41.0137V12.7422H37.377V14.9365H40.7607V16.6729H37.377V19.25H41.0137V21ZM47.5734%2018.7305C47.5734%2019.5143%2047.3%2020.1113%2046.7531%2020.5215C46.2108%2020.9316%2045.3973%2021.1367%2044.3127%2021.1367C43.7567%2021.1367%2043.2827%2021.098%2042.8908%2021.0205C42.4989%2020.9476%2042.132%2020.8382%2041.7902%2020.6924V18.9697C42.1776%2019.152%2042.6128%2019.3047%2043.0959%2019.4277C43.5835%2019.5508%2044.0119%2019.6123%2044.3811%2019.6123C45.1376%2019.6123%2045.5158%2019.3936%2045.5158%2018.9561C45.5158%2018.792%2045.4657%2018.6598%2045.3654%2018.5596C45.2652%2018.4548%2045.092%2018.3385%2044.8459%2018.2109C44.5998%2018.0788%2044.2717%2017.9261%2043.8615%2017.7529C43.2736%2017.5068%2042.8407%2017.279%2042.5627%2017.0693C42.2893%2016.8597%2042.0887%2016.6204%2041.9611%2016.3516C41.8381%2016.0781%2041.7766%2015.7432%2041.7766%2015.3467C41.7766%2014.6676%2042.0386%2014.1436%2042.5627%2013.7744C43.0913%2013.4007%2043.8387%2013.2139%2044.8049%2013.2139C45.7255%2013.2139%2046.621%2013.4144%2047.4914%2013.8154L46.8625%2015.3193C46.4797%2015.1553%2046.1219%2015.0208%2045.7893%2014.916C45.4566%2014.8112%2045.1171%2014.7588%2044.7707%2014.7588C44.1555%2014.7588%2043.8479%2014.9251%2043.8479%2015.2578C43.8479%2015.4447%2043.9458%2015.6064%2044.1418%2015.7432C44.3423%2015.8799%2044.7775%2016.0827%2045.4475%2016.3516C46.0445%2016.5931%2046.482%2016.8187%2046.76%2017.0283C47.038%2017.238%2047.243%2017.4795%2047.3752%2017.7529C47.5074%2018.0264%2047.5734%2018.3522%2047.5734%2018.7305ZM51.7201%2019.4756C52.0847%2019.4756%2052.5222%2019.3958%2053.0326%2019.2363V20.7881C52.5131%2021.0205%2051.8751%2021.1367%2051.1186%2021.1367C50.2846%2021.1367%2049.6762%2020.9271%2049.2934%2020.5078C48.9151%2020.084%2048.726%2019.4505%2048.726%2018.6074V14.9229H47.7279V14.041L48.8764%2013.3437L49.4779%2011.7305H50.8109V13.3574H52.9506V14.9229H50.8109V18.6074C50.8109%2018.9036%2050.893%2019.1224%2051.057%2019.2637C51.2257%2019.4049%2051.4467%2019.4756%2051.7201%2019.4756ZM58.7379%2021L58.3346%2019.9609H58.2799C57.929%2020.403%2057.5667%2020.7106%2057.193%2020.8838C56.8238%2021.0524%2056.3408%2021.1367%2055.7437%2021.1367C55.01%2021.1367%2054.4312%2020.9271%2054.0074%2020.5078C53.5881%2020.0885%2053.3785%2019.4915%2053.3785%2018.7168C53.3785%2017.9056%2053.6611%2017.3086%2054.2262%2016.9258C54.7958%2016.5384%2055.6526%2016.3242%2056.7965%2016.2832L58.1227%2016.2422V15.9072C58.1227%2015.1325%2057.7262%2014.7451%2056.9332%2014.7451C56.3225%2014.7451%2055.6048%2014.9297%2054.7799%2015.2988L54.0895%2013.8906C54.969%2013.4303%2055.9443%2013.2002%2057.0152%2013.2002C58.0406%2013.2002%2058.8268%2013.4235%2059.3736%2013.8701C59.9205%2014.3167%2060.1939%2014.9958%2060.1939%2015.9072V21H58.7379ZM58.1227%2017.459L57.316%2017.4863C56.7099%2017.5046%2056.2587%2017.6139%2055.9625%2017.8145C55.6663%2018.015%2055.5182%2018.3203%2055.5182%2018.7305C55.5182%2019.3184%2055.8554%2019.6123%2056.5299%2019.6123C57.013%2019.6123%2057.398%2019.4733%2057.6852%2019.1953C57.9768%2018.9173%2058.1227%2018.5482%2058.1227%2018.0879V17.459ZM55.8053%2012.5166V12.332C56.5891%2011.4206%2057.1246%2010.7347%2057.4117%2010.2744H59.7496V10.418C59.5126%2010.6549%2059.107%2011.0081%2058.5328%2011.4775C57.9631%2011.9424%2057.5165%2012.2887%2057.193%2012.5166H55.8053ZM66.9793%2018.7305C66.9793%2019.5143%2066.7059%2020.1113%2066.159%2020.5215C65.6167%2020.9316%2064.8032%2021.1367%2063.7186%2021.1367C63.1626%2021.1367%2062.6886%2021.098%2062.2967%2021.0205C61.9048%2020.9476%2061.5379%2020.8382%2061.1961%2020.6924V18.9697C61.5835%2019.152%2062.0187%2019.3047%2062.5018%2019.4277C62.9894%2019.5508%2063.4178%2019.6123%2063.7869%2019.6123C64.5434%2019.6123%2064.9217%2019.3936%2064.9217%2018.9561C64.9217%2018.792%2064.8715%2018.6598%2064.7713%2018.5596C64.671%2018.4548%2064.4979%2018.3385%2064.2518%2018.2109C64.0057%2018.0788%2063.6775%2017.9261%2063.2674%2017.7529C62.6795%2017.5068%2062.2465%2017.279%2061.9686%2017.0693C61.6951%2016.8597%2061.4946%2016.6204%2061.367%2016.3516C61.2439%2016.0781%2061.1824%2015.7432%2061.1824%2015.3467C61.1824%2014.6676%2061.4445%2014.1436%2061.9686%2013.7744C62.4972%2013.4007%2063.2446%2013.2139%2064.2107%2013.2139C65.1313%2013.2139%2066.0268%2013.4144%2066.8973%2013.8154L66.2684%2015.3193C65.8855%2015.1553%2065.5278%2015.0208%2065.1951%2014.916C64.8624%2014.8112%2064.5229%2014.7588%2064.1766%2014.7588C63.5613%2014.7588%2063.2537%2014.9251%2063.2537%2015.2578C63.2537%2015.4447%2063.3517%2015.6064%2063.5477%2015.7432C63.7482%2015.8799%2064.1834%2016.0827%2064.8533%2016.3516C65.4503%2016.5931%2065.8878%2016.8187%2066.1658%2017.0283C66.4438%2017.238%2066.6489%2017.4795%2066.7811%2017.7529C66.9132%2018.0264%2066.9793%2018.3522%2066.9793%2018.7305ZM75.6965%2021L75.2932%2019.9609H75.2385C74.8876%2020.403%2074.5253%2020.7106%2074.1516%2020.8838C73.7824%2021.0524%2073.2993%2021.1367%2072.7023%2021.1367C71.9686%2021.1367%2071.3898%2020.9271%2070.966%2020.5078C70.5467%2020.0885%2070.3371%2019.4915%2070.3371%2018.7168C70.3371%2017.9056%2070.6197%2017.3086%2071.1848%2016.9258C71.7544%2016.5384%2072.6112%2016.3242%2073.7551%2016.2832L75.0812%2016.2422V15.9072C75.0812%2015.1325%2074.6848%2014.7451%2073.8918%2014.7451C73.2811%2014.7451%2072.5633%2014.9297%2071.7385%2015.2988L71.048%2013.8906C71.9276%2013.4303%2072.9029%2013.2002%2073.9738%2013.2002C74.9992%2013.2002%2075.7853%2013.4235%2076.3322%2013.8701C76.8791%2014.3167%2077.1525%2014.9958%2077.1525%2015.9072V21H75.6965ZM75.0812%2017.459L74.2746%2017.4863C73.6685%2017.5046%2073.2173%2017.6139%2072.9211%2017.8145C72.6249%2018.015%2072.4768%2018.3203%2072.4768%2018.7305C72.4768%2019.3184%2072.814%2019.6123%2073.4885%2019.6123C73.9715%2019.6123%2074.3566%2019.4733%2074.6437%2019.1953C74.9354%2018.9173%2075.0812%2018.5482%2075.0812%2018.0879V17.459ZM81.7709%2019.5029C82.2995%2019.5029%2082.6869%2019.3525%2082.933%2019.0518C83.1791%2018.7464%2083.3135%2018.2155%2083.3363%2017.459V17.2061C83.3363%2016.3857%2083.2087%2015.7979%2082.9535%2015.4424C82.7029%2015.0869%2082.2973%2014.9092%2081.7367%2014.9092C80.7569%2014.9092%2080.267%2015.6794%2080.267%2017.2197C80.267%2017.9854%2080.3878%2018.5573%2080.6293%2018.9355C80.8754%2019.3138%2081.2559%2019.5029%2081.7709%2019.5029ZM81.0258%2021.1367C80.1234%2021.1367%2079.4171%2020.7904%2078.9066%2020.0977C78.3962%2019.4004%2078.141%2018.432%2078.141%2017.1924C78.141%2015.9437%2078.4008%2014.9684%2078.9203%2014.2666C79.4444%2013.5648%2080.1599%2013.2139%2081.0668%2013.2139C81.5499%2013.2139%2081.9714%2013.305%2082.3314%2013.4873C82.6915%2013.6696%2083.0082%2013.9521%2083.2816%2014.335H83.3363L83.5209%2013.3574H85.2846V24.3633H83.1928V21.1572C83.1928%2020.8792%2083.2224%2020.4964%2083.2816%2020.0088H83.1928C82.9695%2020.3779%2082.6732%2020.6582%2082.3041%2020.8496C81.935%2021.041%2081.5088%2021.1367%2081.0258%2021.1367ZM92.1793%2021L91.899%2020.0225H91.7896C91.5663%2020.3779%2091.2496%2020.6536%2090.8395%2020.8496C90.4293%2021.041%2089.9622%2021.1367%2089.4381%2021.1367C88.5403%2021.1367%2087.8635%2020.8975%2087.4078%2020.4189C86.9521%2019.9359%2086.7242%2019.2432%2086.7242%2018.3408V13.3574H88.8092V17.8213C88.8092%2018.3727%2088.9072%2018.7874%2089.1031%2019.0654C89.2991%2019.3389%2089.6113%2019.4756%2090.0396%2019.4756C90.623%2019.4756%2091.0445%2019.2819%2091.3043%2018.8945C91.5641%2018.5026%2091.6939%2017.8555%2091.6939%2016.9531V13.3574H93.7789V21H92.1793ZM97.3514%2021H95.2664V13.3574H97.3514V21ZM95.1639%2012.5166V12.332C95.9477%2011.4206%2096.4832%2010.7347%2096.7703%2010.2744H99.1082V10.418C98.8712%2010.6549%2098.4656%2011.0081%2097.8914%2011.4775C97.3217%2011.9424%2096.8751%2012.2887%2096.5516%2012.5166H95.1639Z'%20fill='white'/%3e%3c/svg%3e",c=t,l=e.position;break}case e.MarkerStyle.placePopup:{const t=structuredClone(r);if(n=t.floorId,r instanceof e.distExports.LzPlace){t.name=r.title,t.category=r.localizedCategory??"";const e=["baños-general","baño-accesible","baño-niño","servicio-bicicletero","servicio-cajeros","servicio-cowork","servicio-escenario","servicio-lactancia","servicio-cliente","servicio-registrocivil","plaza-central","entrance","parking-entrance","servicio-handsfree","servicio-taxi","servicio-paramedicos","service-electric-car-charger"],i=r.tags?.find((t=>e.includes(t)));if(i){const e="https://lazarillo.app/internal/maps/vector-style/service-logos/"+i+".png";t.logo=e}else"string"==typeof r.logo?t.logo=r.logo:t.logo=r.logo?.light??"";t.position=r.position,n=r.inFloor(o)?.key}c=i.create({name:t.name,category:t.category,url_logo:t.logo}),l=t.position;break}}if(c&&l)try{this.map?.addMarker({coordinate:l,id:a,refId:a,floorId:n,element:c}),this.markersIds.push({id:a,floorId:n,coordinate:l})}catch(h){e.RollbarController.getInstance().warning("addMarker error",{error:h,markerElement:c,coordinate:l})}})),this.map?.setPlacesAsSelected(this.markersIds.map((t=>t.id)),"#3146bc");const s=this.map?.getCurrentFloor(),a=this.markersIds.filter((t=>t.floorId===s)).map((t=>t.coordinate));a.length>0&&setTimeout((()=>{this.map?.fitCoordinates(a,{padding:{top:350,bottom:50,left:50,right:100}})}),200)}getMarkersIds(){return this.markersIds.map((t=>t.id))}}class s{constructor(t,e){this.host=t,this.handlers=e,this.connected=!1,this.isAnimatingRoute=!1,this.stepAnimationDate=new Date,this.minUpdateTimeInterval=5e3,this.host.addController(this)}hostConnected(){this.connected=!0}hostDisconnected(){this.connected=!1}setMap(t){this.lzMap=t}setCurrentFloor(t){const e=this.route?.legs.flatMap((e=>e.steps.filter((e=>e.startInsideFloor===t||e.endInsideFloor===t)).flatMap((t=>t.coordinates))))??[];e.length>0&&this.lzMap?.fitCoordinates(e,{padding:{bottom:150,left:150,right:150,top:150}}),this.handlers.onFloorChange(t)}setParentPlace(t){this.parentPlace=t}setLocale(t){this.locale=t}startRouteAnimation(t){if(!this.connected||!this.lzMap||this.isAnimatingRoute)return;this.isAnimatingRoute=!0,this.stepAnimationDate=new Date;const e={minimumSpeed:20,callBack:t=>{if(this.stepAnimationDate=new Date,t.isFinished)return this.stopAnimatedRoute(),void this.handlers.onRouteAnimationFinished();const e=t.step?.startInsideFloor,i=t.step?.endInsideFloor,o=this.parentPlace?.innerFloors.find((t=>t.key===i));if(this.isAnimatingRoute&&e&&i&&e!==i){const i=this.parentPlace?.innerFloors.find((t=>t.key===e));this.lzMap?.pauseAnimateRoute();const s=new Date,a=s.getTime()-this.stepAnimationDate.getTime();this.stepAnimationDate=s;const r=!!i&&!!o&&i.level<o.level,n=t.step?.elevatorStep??!1;let l;l=r?n?"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3cpath%20d='M244.2%204.1l-64%2064c-4.6%204.6-5.6%2011.8-3.1%2017.4s8.2%2010.2%2014.8%2010.2h128c6.7%200%2012.3-4.1%2014.8-9.7s1.5-12.8-3.1-17.4l-64-63.5c-6.7-6.7-16.9-6.7-23.6-1zM64%20128c-35.3%200-64%2028.7-64%2064v256c0%2035.3%2028.7%2064%2064%2064h384c35.3%200%2064-28.7%2064-64V192c0-35.3-28.7-64-64-64H64zm95.7%2095.7c12.8%200%2025.1%205.1%2033.8%2014.3c9.2%209.2%2014.3%2021%2014.3%2033.8s-5.1%2025.1-14.3%2033.8c-9.2%209.2-21%2014.3-33.8%2014.3s-25.1-5.1-33.8-14.3c-9.2-9.2-14.3-21-14.3-33.8s5.1-25.1%2014.3-33.8c9.2-9.2%2021-14.3%2033.8-14.3zM79.9%20399.9c0-26.1%2022-48.1%2048.1-48.1h64c26.1%200%2048.1%2022%2048.1%2048.1v15.9c0%2017.9-14.3%2032.3-32.3%2032.3H112.1c-17.9%200-32.3-14.3-32.3-32.3V399.9zm192%200c0-26.1%2022-48.1%2048.1-48.1h64c26.1%200%2048.1%2022%2048.1%2048.1v15.9c0%2017.9-14.3%2032.3-32.3%2032.3H304.1c-17.9%200-32.3-14.3-32.3-32.3V399.9zm32.3-128c0-6.7%201.5-12.8%204.1-18.4s5.6-10.8%2010.2-15.4s9.7-7.7%2015.4-10.2s12.3-4.1%2018.4-4.1c6.7%200%2012.8%201.5%2018.4%204.1s10.8%205.6%2015.4%2010.2s7.7%209.7%2010.2%2015.4s4.1%2012.3%204.1%2018.4c0%206.7-1.5%2012.8-4.1%2018.4s-5.6%2010.8-10.2%2015.4s-9.7%207.7-15.4%2010.2s-12.3%204.1-18.4%204.1c-6.7%200-12.8-1.5-18.4-4.1s-10.8-5.6-15.4-10.2s-7.7-9.7-10.2-15.4s-4.1-11.8-4.1-18.4z'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20636%20512'%3e%3cpath%20d='M532.8%20385.9c0-6.7-5.6-12.3-12.3-12.3h-86c-6.7%200-12.3%205.6-12.3%2012.3s5.6%2012.3%2012.3%2012.3h56.3l-77.3%2077.3c-4.8%204.8-4.8%2012.7%200%2017.4s12.7%204.8%2017.4%200l77.3-77.3v56.3c0%206.7%205.6%2012.3%2012.3%2012.3s12.3-5.6%2012.3-12.3v-86zM207.3%2050.3c0-12.6%205-24.7%2013.9-33.6c8.9-8.9%2021-13.9%2033.6-13.9s24.7%205%2033.6%2013.9c8.9%208.9%2013.9%2021%2013.9%2033.6s-5%2024.7-13.9%2033.6c-8.9%208.9-21%2013.9-33.6%2013.9s-24.7-5-33.6-13.9c-8.9-8.9-13.9-21-13.9-33.6zm180%2084.8c15.8-13.8%2036.2-21.5%2057.2-21.5h102.8c48%200%2087%2039%2087%2087s-39%2087-87%2087h-70.1L248.7%20487.5c-15.8%2013.8-36.2%2021.5-57.2%2021.5H88.6c-48.1%200-87-39-87-87s39-87%2087-87h70.1L387.3%20135.2zm57.2%2025.9c-9.6%200-18.8%203.5-26%209.8L183.3%20376.7c-4.4%203.8-9.9%205.8-15.6%205.8H88.6c-21.8%200-39.5%2017.7-39.5%2039.5s17.7%2039.5%2039.5%2039.5h102.8c9.6%200%2018.8-3.5%2026-9.8L452.7%20246c4.4-3.8%209.9-5.8%2015.6-5.8h79.1c21.8%200%2039.5-17.7%2039.5-39.5s-17.7-39.5-39.5-39.5H444.5zm-189.8-31.6c23.4%200%2043.9%2012.7%2054.9%2031.6L191.5%20264.4v-71.7c0-34.9%2028.4-63.3%2063.3-63.3z'/%3e%3c/svg%3e":n?"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3cpath%20d='M267.3%20507.3l63.9-63.9c4.6-4.6%205.9-11.5%203.5-17.4s-8.3-9.9-14.8-9.9H192.1c-6.5%200-12.3%203.9-14.8%209.9s-1.1%2012.9%203.5%2017.4l63.9%2063.9c6.2%206.2%2016.4%206.2%2022.6%200zM64.3-1.6C29-1.6%20.4%2027%20.4%2062.3V318c0%2035.2%2028.7%2063.9%2063.9%2063.9H447.7c35.2%200%2063.9-28.7%2063.9-63.9V62.3c0-35.2-28.7-63.9-63.9-63.9H64.3zm95.8%2095.8c12.7%200%2024.9%205.1%2033.9%2014c9%209%2014%2021.2%2014%2033.9s-5.1%2024.9-14%2033.9c-9%209-21.2%2014-33.9%2014s-24.9-5.1-33.9-14c-9-9-14-21.2-14-33.9s5.1-24.9%2014-33.9c9-9%2021.2-14%2033.9-14zM80.3%20270c0-26.5%2021.5-47.9%2047.9-47.9h63.9c26.5%200%2047.9%2021.5%2047.9%2047.9v16c0%2017.7-14.3%2031.9-31.9%2031.9H112.2c-17.7%200-31.9-14.3-31.9-31.9v-16zm191.7%200c0-26.5%2021.5-47.9%2047.9-47.9h63.9c26.5%200%2047.9%2021.5%2047.9%2047.9v16c0%2017.7-14.3%2031.9-31.9%2031.9h-95.8c-17.7%200-31.9-14.3-31.9-31.9v-16zm31.9-127.8c0-6.3%201.2-12.5%203.6-18.3c2.4-5.8%205.9-11.1%2010.4-15.6s9.7-8%2015.6-10.4s12-3.6%2018.3-3.6s12.5%201.2%2018.3%203.6c5.8%202.4%2011.1%205.9%2015.6%2010.4s8%209.7%2010.4%2015.6s3.6%2012%203.6%2018.3s-1.2%2012.5-3.6%2018.3c-2.4%205.8-5.9%2011.1-10.4%2015.6s-9.7%208-15.6%2010.4s-12%203.6-18.3%203.6s-12.5-1.2-18.3-3.6c-5.8-2.4-11.1-5.9-15.6-10.4s-8-9.7-10.4-15.6s-3.6-12-3.6-18.3z'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20636%20512'%3e%3cpath%20d='M409.8%20484.2c0%206.7%205.6%2012.3%2012.3%2012.3h86c6.7%200%2012.3-5.6%2012.3-12.3s-5.6-12.3-12.3-12.3h-56.3l77.3-77.3c4.8-4.8%204.8-12.7%200-17.4s-12.7-4.8-17.4%200l-77.3%2077.3v-56.3c0-6.7-5.6-12.3-12.3-12.3s-12.3%205.6-12.3%2012.3v86zM207.3%2050.3c0-12.6%205-24.7%2013.9-33.6c8.9-8.9%2021-13.9%2033.6-13.9s24.7%205%2033.6%2013.9c8.9%208.9%2013.9%2021%2013.9%2033.6s-5%2024.7-13.9%2033.6c-8.9%208.9-21%2013.9-33.6%2013.9s-24.7-5-33.6-13.9c-8.9-8.9-13.9-21-13.9-33.6zm180%2084.8c15.8-13.8%2036.2-21.5%2057.2-21.5h102.8c48%200%2087%2039%2087%2087s-39%2087-87%2087h-70.1L248.7%20487.5c-15.8%2013.8-36.2%2021.5-57.2%2021.5H88.6c-48.1%200-87-39-87-87s39-87%2087-87h70.1L387.3%20135.2zm57.2%2025.9c-9.6%200-18.8%203.5-26%209.8L183.3%20376.7c-4.4%203.8-9.9%205.8-15.6%205.8H88.6c-21.8%200-39.5%2017.7-39.5%2039.5s17.7%2039.5%2039.5%2039.5h102.8c9.6%200%2018.8-3.5%2026-9.8L452.7%20246c4.4-3.8%209.9-5.8%2015.6-5.8h79.1c21.8%200%2039.5-17.7%2039.5-39.5s-17.7-39.5-39.5-39.5H444.5zm-189.8-31.6c23.4%200%2043.9%2012.7%2054.9%2031.6L191.5%20264.4v-71.7c0-34.9%2028.4-63.3%2063.3-63.3z'/%3e%3c/svg%3e";const c={iconPath:l,title:this.createChangeFloorMessage(r,n,o?.name??"")};a>this.minUpdateTimeInterval?this.showMapModal(c):this.animatedRoute=setTimeout((()=>{this.showMapModal(c)}),this.minUpdateTimeInterval-a)}}},i=document.createElement("img");i.src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2069%2072'%20height='72'%20width='69'%3e%3cg%20xmlns='http://www.w3.org/2000/svg'%20transform='matrix(-1%200%200%20-1%2069%2072)'%3e%3cpath%20d='M34.1699%2019.961L35.1326%2020.3959L36.0734%2019.9157L63.6569%205.83661L35.3531%2066.9132L5.66099%207.08131L34.1699%2019.961Z'%20fill='%239D55F9'%20stroke='white'%20stroke-width='4.39436'%20/%3e%3c/g%3e%3c/svg%3e";const o={aheadPathStyle:{color:"#757575",type:"Solid"},behindPathStyle:{color:"#9D55F9",type:"Solid"},polylineWidth:10,routeIcon:i},s=t.legs?.[0]?.steps?.[0]?.startInsideFloor;s&&this.setCurrentFloor(s),this.lzMap.startAnimateRouteV2(t,o,e),this.route=t,this.handlers.onStartRouteAnimation()}removeRoute(){this.lzMap&&(this.lzMap.pauseAnimateRoute(),this.lzMap.removeRoute(),this.route=void 0,this.animatedRoute&&clearTimeout(this.animatedRoute),this.animatedRoute=void 0)}isAnimating(){return this.isAnimatingRoute}stopAnimatedRoute(){this.isAnimatingRoute&&(clearTimeout(this.animatedRoute),this.dismissChangeFloorAlert(),this.animatedRoute=void 0,this.isAnimatingRoute=!1)}getCurrentRoute(){return this.route}dismissChangeFloorAlert(){this.isAnimatingRoute&&(clearTimeout(this.animatedRoute),this.animatedRoute=void 0,this.handlers.onDismissModal(),this.host.requestUpdate())}showMapModal(t){return this.handlers.onShowMapModal(t),this.host.requestUpdate(),new Promise((t=>{this.animatedRoute=setTimeout((()=>{this.lzMap?.resumeAnimateRoute(),this.dismissChangeFloorAlert(),t()}),this.minUpdateTimeInterval)}))}createChangeFloorMessage(t,e,i){let o,s;if("es"==this.locale){o=t?"Sube":"Baja",s=e?"por el ascensor hasta ":"por las escaleras hasta ";s+=(i.toLowerCase().includes("nivel")||i.toLowerCase().includes("piso")?"el":"")+" "}else o=t?"Go up":"Go down",s=e?"using the elevator to the":"using the stairs to the";return`${o} ${s} ${i.toLowerCase()}`}}var a=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=(t,e,i,o)=>{for(var s,n=o>1?void 0:o?r(e,i):e,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(o?s(e,i,n):s(n))||n);return o&&n&&a(e,i,n),n};exports.CustomMap=class extends e.i{constructor(){super(),this.mapReady=!1,this.routeAnimationHandlers={onRouteAnimationFinished:()=>{this.dispatchEvent(new CustomEvent("routeAnimationFinished",{bubbles:!0,composed:!0}))},onFloorChange:t=>{this.dispatchEvent(new CustomEvent("floorChange",{detail:t,bubbles:!0,composed:!0}))},onStartRouteAnimation:()=>{this.dispatchEvent(new CustomEvent("startRouteAnimation",{bubbles:!0,composed:!0}))},onShowMapModal:t=>{this.modalData=t},onDismissModal:()=>{this.modalData=void 0}},this.mapContainer=null,this.pendingUpdateMarkers=!1,this.pendingUpdateCamera=!1,this.routeAnimationController=new s(this,this.routeAnimationHandlers),this.markerController=new o(this)}async firstUpdated(){if(this.shadowRoot){const t=document.createElement("style");t.textContent=(await Promise.resolve().then((()=>require("./maplibre-gl-P-Xd6Hdn.cjs")))).default,this.shadowRoot.appendChild(t)}}async updated(){if(!this.sdkData?.sdk)return;const{sdk:t,parentPlace:e,locale:i,generalConfig:o,currentFloor:s,markers:a,route:r,isRouteAnimating:n,cameraInitialized:l}=this.sdkData;if(!this.lzMap&&t&&e&&i&&this.shadowRoot&&o){this.routeAnimationController.setParentPlace(e),this.routeAnimationController.setLocale(i),this.mapContainer=this.shadowRoot.getElementById("map"),this.shadowRoot?.appendChild(this.mapContainer),this.config=o;const s={zoom:o.initialZoom||17,parentPlaceId:e?.lazarilloId,center:o.initialCenter||{lat:0,lng:0},minZoom:o.limitZoomOut||15,maxZoom:o.limitZoomIn||22,showCompass:!1,navigationPosition:"bottom-right",pitch:o.pitch||0,lang:i,maxBounds:o.pointsOfInterest||[],otherPotentialParentPlacesIds:o.potentialParentPlaces||[],onMapReady:()=>{this.mapReady=!0,this.markerController.setMapReady(!0),this.pendingUpdateCamera=!0,this.dispatchEvent(new CustomEvent("mapReady",{detail:{},bubbles:!0,composed:!0}))},onFloorChange:t=>{this.setCurrentMapFloor(t)}};this.lzMap=t.createMap(this.mapContainer,s),this.lzMap.setParentPlace(e,!1),this.routeAnimationController.setMap(this.lzMap),this.markerController.setMap(this.lzMap),this.markerController.setParentPlace(e)}s&&s.key!==this._currentMapFloor&&this.mapReady&&this.setCurrentMapFloor(s.key),(a.some((t=>!this.markerController.getMarkersIds().includes(t.id)))||a.length!==this.markerController.getMarkersIds().length)&&(this.mapReady?this.updateMarkers():this.pendingUpdateMarkers=!0),this.pendingUpdateMarkers&&this.mapReady&&this.updateMarkers(),(this.pendingUpdateCamera||!l&&this.mapReady)&&this.sdkData?.destination&&(this._initializeCamera(),this.pendingUpdateCamera=!1);const c=this.routeAnimationController.getCurrentRoute();c&&c.id===r?.id||(c&&this.routeAnimationController.removeRoute(),r&&this.routeAnimationController.startRouteAnimation(r)),!this.routeAnimationController.isAnimating()&&n&&r&&this.routeAnimationController.startRouteAnimation(r)}updateMarkers(){const t=this.sdkData?.markers??[];this.markerController.updateMarkers(t),this.pendingUpdateMarkers=!1}_initializeCamera(){if(!this.lzMap||!this.mapReady||!this.sdkData)return;const{destination:t,origin:e}=this.sdkData,i=t?t.position:e?.position;this.lzMap?.updateCamera({bearing:this.config?.mapRotations?.[e?.lazarilloId??""]?.angle??0,animate:!1,pitch:this.config?.pitch??0,center:i,zoom:this.config?.initialZoom??17});const o=t?.inFloors?.[0];o&&this.lzMap?.updateFloor(o),this.dispatchEvent(new CustomEvent("cameraInitialized",{detail:{},bubbles:!0,composed:!0}))}setCurrentMapFloor(t){this._currentMapFloor!==t&&this.lzMap&&(this._currentMapFloor=t,this.lzMap?.updateFloor(t),this.routeAnimationController.setCurrentFloor(t),this.dispatchEvent(new CustomEvent("floorChange",{detail:t,bubbles:!0,composed:!0})))}render(){return e.x`<div id="map"></div>
|
|
2
|
-
<div id="modal" style="display: ${this.modalData?"flex":"none"}">
|
|
3
|
-
<div class="modal-content">
|
|
4
|
-
<img class="modal-icon" .src=${this.modalData?.iconPath}></img>
|
|
5
|
-
<p class="modal-text">${this.modalData?.title}</p>
|
|
6
|
-
</div>
|
|
7
|
-
</div>`}},exports.CustomMap.styles=[e.r(':host{display:block;height:100%;width:100%}#map{width:100vw;height:100vh}.maplibregl-canvas{width:100%;height:100%}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 20px 50px 0}.maplibregl-ctrl{bottom:80px;right:40px;border:3px solid #000;padding:0;border-radius:100px;background:#fff;overflow:hidden;display:flex;flex-direction:column;width:70px;height:129px}.maplibregl-ctrl button{background-color:transparent;box-shadow:none;border-radius:0;margin:0;font-size:31px;font-weight:400;width:100%;height:100%;color:#000;transition:background-color .4s ease,color .4s ease}.maplibregl-ctrl button:hover{background-color:#000!important;color:#fff}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in{border-bottom:3px solid #000}.maplibregl-ctrl-group .maplibregl-ctrl-icon{background:none!important;display:none!important}.maplibregl-ctrl-group button.maplibregl-ctrl-zoom-in:after{content:"+";display:block;font-size:32px;font-weight:600;line-height:1;text-align:center}.maplibregl-ctrl-group button.maplibregl-ctrl-zoom-out:after{content:"–";display:block;font-size:32px;font-weight:600;line-height:1;text-align:center}#modal{position:absolute;width:100%;height:100%;background:#0003;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;justify-items:center;top:0;left:0;z-index:100}.modal-content{min-width:100px;min-height:100px;background-color:#fff;border:1px solid #000;border-radius:10px;padding:10px;width:fit-content;height:fit-content;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.modal-text{font-family:Poppins,sans-serif;font-size:20pt;font-weight:500;color:#000}.modal-icon{max-height:100px;align-self:center}.maplibregl-marker:has(.popup){z-index:10}.maplibregl-marker:not(:has(.popup)){z-index:5}.maplibregl-ctrl-compass{visibility:hidden;height:0px}')],n([t.c({context:e.sdkContext,subscribe:!0})],exports.CustomMap.prototype,"sdkData",2),exports.CustomMap=n([e.t("custom-map")],exports.CustomMap);
|
|
8
|
-
//# sourceMappingURL=custom-map-DARXhpnO.cjs.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./consume-BFImOAwk.cjs"),e=require("./lazy-load-B_m5cmiy.cjs"),t=require("./class-map-Bdex8DcD.cjs");var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=(o,e,t,i)=>{for(var a,s=i>1?void 0:i?n(e,t):e,l=o.length-1;l>=0;l--)(a=o[l])&&(s=(i?a(e,t,s):a(s))||s);return i&&s&&r(e,t,s),s};exports.FloorSelector=class extends e.i{_selectFloor(o){this.dispatchEvent(new CustomEvent("floorChange",{detail:o,bubbles:!0,composed:!0}))}render(){if(!this.sdkData)return e.x`<div>No data</div>`;const{currentFloor:o,parentPlace:r,enabledFloors:n}=this.sdkData;let i=r?.innerFloors||[];const a=this.sdkData?.generalConfig?.enabledFloors||[];return a.length>0&&(i=i.filter((o=>a.includes(o.key)))),e.x`
|
|
2
|
-
<div class="floor-selector-container">
|
|
3
|
-
${i.map((r=>{const i=r.key===o?.key,a=n?.some((o=>o.key===r.key))||!1;return e.x`
|
|
4
|
-
<div class="floor-btn-container">
|
|
5
|
-
<button
|
|
6
|
-
class=${t.e({"floor-btn":!0,active:i,disabled:!i&&!a})}
|
|
7
|
-
@click=${()=>a?this._selectFloor(r.key):null}
|
|
8
|
-
>
|
|
9
|
-
<span>${r.name}</span>
|
|
10
|
-
</button>
|
|
11
|
-
</div>
|
|
12
|
-
`}))}
|
|
13
|
-
</div>
|
|
14
|
-
`}},exports.FloorSelector.styles=[e.r(':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}}')],i([o.c({context:e.sdkContext,subscribe:!0})],exports.FloorSelector.prototype,"sdkData",2),exports.FloorSelector=i([e.t("floor-selector")],exports.FloorSelector);
|
|
15
|
-
//# sourceMappingURL=floor-selector-CzILr6OJ.cjs.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./consume-BFImOAwk.cjs"),e=require("./lazy-load-B_m5cmiy.cjs"),n=require("./class-map-Bdex8DcD.cjs");var r,o,i={};function s(){return o?r:(o=1,r=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var a,u={},c={};function l(){if(a)return c;let t;a=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 c.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},c.getSymbolTotalCodewords=function(t){return e[t]},c.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},c.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},c.isKanjiModeEnabled=function(){return void 0!==t},c.toSJIS=function(e){return t(e)},c}var f,d,h,g,p,w={};function m(){return f||(f=1,function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}}(w)),w}var y,E={};var v,C={};var A,B={};var M,I={};function b(){if(M)return I;M=1;const t=m(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return I.getBlocksCount=function(n,r){switch(r){case t.L:return e[4*(n-1)+0];case t.M:return e[4*(n-1)+1];case t.Q:return e[4*(n-1)+2];case t.H:return e[4*(n-1)+3];default:return}},I.getTotalCodewordsCount=function(e,r){switch(r){case t.L:return n[4*(e-1)+0];case t.M:return n[4*(e-1)+1];case t.Q:return n[4*(e-1)+2];case t.H:return n[4*(e-1)+3];default:return}},I}var P,T,N,R,x={},L={};function k(){return T||(T=1,function(t){const e=function(){if(P)return L;P=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let n=1;for(let r=0;r<255;r++)t[r]=n,e[n]=r,n<<=1,256&n&&(n^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),L.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},L.exp=function(e){return t[e]},L.mul=function(n,r){return 0===n||0===r?0:t[e[n]+e[r]]},L}();t.mul=function(t,n){const r=new Uint8Array(t.length+n.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<n.length;i++)r[o+i]^=e.mul(t[o],n[i]);return r},t.mod=function(t,n){let r=new Uint8Array(t);for(;r.length-n.length>=0;){const t=r[0];for(let i=0;i<n.length;i++)r[i]^=e.mul(n[i],t);let o=0;for(;o<r.length&&0===r[o];)o++;r=r.slice(o)}return r},t.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let o=0;o<n;o++)r=t.mul(r,new Uint8Array([1,e.exp(o)]));return r}}(x)),x}var U,S={},D={},F={};function z(){return U||(U=1,F.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),F}var H,q,_,j={};function J(){if(H)return j;H=1;const t="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";j.KANJI=new RegExp(e,"g"),j.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),j.BYTE=new RegExp(n,"g"),j.NUMERIC=new RegExp(t,"g"),j.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),o=new RegExp("^"+t+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return j.testKanji=function(t){return r.test(t)},j.testNumeric=function(t){return o.test(t)},j.testAlphanumeric=function(t){return i.test(t)},j}function K(){return q||(q=1,function(t){const e=z(),n=J();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}}(D)),D}function Y(){return _||(_=1,function(t){const e=l(),n=b(),r=m(),o=K(),i=z(),s=e.getBCHDigit(7973);function a(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let n=0;return t.forEach((function(t){const r=a(t.mode,e);n+=r+t.getBitsLength()})),n}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,s){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===s&&(s=o.BYTE);const u=8*(e.getSymbolTotalCodewords(t)-n.getTotalCodewordsCount(t,r));if(s===o.MIXED)return u;const c=u-a(s,t);switch(s){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let i;const s=r.from(n,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,s);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(i.mode,i.getLength(),s)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;e.getBCHDigit(n)-s>=0;)n^=7973<<e.getBCHDigit(n)-s;return t<<12|n}}(S)),S}var Q,V={};var O,$,Z,X,W,G,tt,et,nt={};var rt,ot,it,st={exports:{}};function at(){return rt||(rt=1,function(t){var e={single_source_shortest_paths:function(t,n,r){var o={},i={};i[n]=0;var s,a,u,c,l,f,d,h=e.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(u in a=(s=h.pop()).value,c=s.cost,l=t[a]||{})l.hasOwnProperty(u)&&(f=c+l[u],d=i[u],(void 0===i[u]||d>f)&&(i[u]=f,h.push(u,f),o[u]=a));if(void 0!==r&&void 0===i[r]){var g=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(g)}return o},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,n,r){var o=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,o={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(st)),st.exports}function ut(){return ot||(ot=1,function(t){const e=K(),n=function(){if($)return O;$=1;const t=K();function e(e){this.mode=t.NUMERIC,this.data=e.toString()}return e.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);const o=this.data.length-e;o>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*o+1))},O=e}(),r=function(){if(X)return Z;X=1;const t=K(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(e){this.mode=t.ALPHANUMERIC,this.data=e}return n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=45*e.indexOf(this.data[n]);r+=e.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(e.indexOf(this.data[n]),6)},Z=n}(),o=function(){if(G)return W;G=1;const t=K();function e(e){this.mode=t.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}return e.getBitsLength=function(t){return 8*t},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},W=e}(),i=function(){if(et)return tt;et=1;const t=K(),e=l();function n(e){this.mode=t.KANJI,this.data=e}return n.getBitsLength=function(t){return 13*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n;for(n=0;n<this.data.length;n++){let r=e.toSJIS(this.data[n]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},tt=n}(),s=J(),a=l(),u=at();function c(t){return unescape(encodeURIComponent(t)).length}function f(t,e,n){const r=[];let o;for(;null!==(o=t.exec(n));)r.push({data:o[0],index:o.index,mode:e,length:o[0].length});return r}function d(t){const n=f(s.NUMERIC,e.NUMERIC,t),r=f(s.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,i;a.isKanjiModeEnabled()?(o=f(s.BYTE,e.BYTE,t),i=f(s.KANJI,e.KANJI,t)):(o=f(s.BYTE_KANJI,e.BYTE,t),i=[]);return n.concat(r,o,i).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function h(t,s){switch(s){case e.NUMERIC:return n.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return o.getBitsLength(t)}}function g(t,s){let u;const c=e.getBestModeForData(t);if(u=e.from(s,c),u!==e.BYTE&&u.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(u)+".\n Suggested mode is: "+e.toString(c));switch(u!==e.KANJI||a.isKanjiModeEnabled()||(u=e.BYTE),u){case e.NUMERIC:return new n(t);case e.ALPHANUMERIC:return new r(t);case e.KANJI:return new i(t);case e.BYTE:return new o(t)}}t.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(g(e,null)):e.data&&t.push(g(e.data,e.mode)),t}),[])},t.fromString=function(n,r){const o=function(t){const n=[];for(let r=0;r<t.length;r++){const o=t[r];switch(o.mode){case e.NUMERIC:n.push([o,{data:o.data,mode:e.ALPHANUMERIC,length:o.length},{data:o.data,mode:e.BYTE,length:o.length}]);break;case e.ALPHANUMERIC:n.push([o,{data:o.data,mode:e.BYTE,length:o.length}]);break;case e.KANJI:n.push([o,{data:o.data,mode:e.BYTE,length:c(o.data)}]);break;case e.BYTE:n.push([{data:o.data,mode:e.BYTE,length:c(o.data)}])}}return n}(d(n,a.isKanjiModeEnabled())),i=function(t,n){const r={},o={start:{}};let i=["start"];for(let s=0;s<t.length;s++){const a=t[s],u=[];for(let t=0;t<a.length;t++){const c=a[t],l=""+s+t;u.push(l),r[l]={node:c,lastCount:0},o[l]={};for(let t=0;t<i.length;t++){const s=i[t];r[s]&&r[s].node.mode===c.mode?(o[s][l]=h(r[s].lastCount+c.length,c.mode)-h(r[s].lastCount,c.mode),r[s].lastCount+=c.length):(r[s]&&(r[s].lastCount=c.length),o[s][l]=h(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,n))}}i=u}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:r}}(o,r),s=u.find_path(i.map,"start","end"),l=[];for(let t=1;t<s.length-1;t++)l.push(i.table[s[t]].node);return t.fromArray(function(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(l))},t.rawSplit=function(e){return t.fromArray(d(e,a.isKanjiModeEnabled()))}}(nt)),nt}function ct(){if(it)return u;it=1;const t=l(),e=m(),n=function(){if(h)return d;function t(){this.buffer=[],this.length=0}return h=1,t.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},d=t}(),r=function(){if(p)return g;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 p=1,t.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},g=t}(),o=(y||(y=1,function(t){const e=l().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,r=e(t),o=145===r?26:2*Math.ceil((r-13)/(2*n-2)),i=[r-7];for(let e=1;e<n-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let t=0;t<o;t++)for(let e=0;e<o;e++)0===t&&0===e||0===t&&e===o-1||t===o-1&&0===e||n.push([r[t],r[e]]);return n}}(E)),E),i=function(){if(v)return C;v=1;const t=l().getSymbolSize;return C.getPositions=function(e){const n=t(e);return[[0,0],[n-7,0],[0,n-7]]},C}(),s=(A||(A=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,n=3,r=40,o=10;function i(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let r=0,o=0,i=0,s=null,a=null;for(let u=0;u<n;u++){o=i=0,s=a=null;for(let c=0;c<n;c++){let n=t.get(u,c);n===s?o++:(o>=5&&(r+=e+(o-5)),s=n,o=1),n=t.get(c,u),n===a?i++:(i>=5&&(r+=e+(i-5)),a=n,i=1)}o>=5&&(r+=e+(o-5)),i>=5&&(r+=e+(i-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n<e-1;n++)for(let o=0;o<e-1;o++){const e=t.get(n,o)+t.get(n,o+1)+t.get(n+1,o)+t.get(n+1,o+1);4!==e&&0!==e||r++}return r*n},t.getPenaltyN3=function(t){const e=t.size;let n=0,o=0,i=0;for(let r=0;r<e;r++){o=i=0;for(let s=0;s<e;s++)o=o<<1&2047|t.get(r,s),s>=10&&(1488===o||93===o)&&n++,i=i<<1&2047|t.get(s,r),s>=10&&(1488===i||93===i)&&n++}return n*r},t.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let r=0;r<n;r++)e+=t.data[r];return Math.abs(Math.ceil(100*e/n/5)-10)*o},t.applyMask=function(t,e){const n=e.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)e.isReserved(o,r)||e.xor(o,r,i(t,o,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){n(s),t.applyMask(s,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),r<i&&(i=r,o=s)}return o}}(B)),B),a=b(),c=function(){if(R)return N;R=1;const t=k();function e(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(e){this.degree=e,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const r=t.mod(n,this.genPoly),o=this.degree-r.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(r,o),t}return r},N=e}(),f=Y(),w=function(){if(Q)return V;Q=1;const t=l(),e=t.getBCHDigit(1335);return V.getEncodedBits=function(n,r){const o=n.bit<<3|r;let i=o<<10;for(;t.getBCHDigit(i)-e>=0;)i^=1335<<t.getBCHDigit(i)-e;return 21522^(o<<10|i)},V}(),M=K(),I=ut();function P(t,e,n){const r=t.size,o=w.getEncodedBits(e,n);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(r-15+i,8,s,!0),i<8?t.set(8,r-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(r-8,8,1,!0)}function T(e,r,o){const i=new n;o.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),M.getCharCountIndicator(t.mode,e)),t.write(i)}));const s=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,r));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const u=(s-i.getLengthInBits())/8;for(let t=0;t<u;t++)i.put(t%2?17:236,8);return function(e,n,r){const o=t.getSymbolTotalCodewords(n),i=a.getTotalCodewordsCount(n,r),s=o-i,u=a.getBlocksCount(n,r),l=o%u,f=u-l,d=Math.floor(o/u),h=Math.floor(s/u),g=h+1,p=d-h,w=new c(p);let m=0;const y=new Array(u),E=new Array(u);let v=0;const C=new Uint8Array(e.buffer);for(let t=0;t<u;t++){const e=t<f?h:g;y[t]=C.slice(m,m+e),E[t]=w.encode(y[t]),m+=e,v=Math.max(v,e)}const A=new Uint8Array(o);let B,M,I=0;for(B=0;B<v;B++)for(M=0;M<u;M++)B<y[M].length&&(A[I++]=y[M][B]);for(B=0;B<p;B++)for(M=0;M<u;M++)A[I++]=E[M][B];return A}(i,e,r)}function x(e,n,a,u){let c;if(Array.isArray(e))c=I.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=n;if(!t){const n=I.rawSplit(e);t=f.getBestVersionForData(n,a)}c=I.fromString(e,t||40)}}const l=f.getBestVersionForData(c,a);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}else n=l;const d=T(n,a,c),h=t.getSymbolSize(n),g=new r(h);return function(t,e){const n=t.size,r=i.getPositions(e);for(let o=0;o<r.length;o++){const e=r[o][0],i=r[o][1];for(let r=-1;r<=7;r++)if(!(e+r<=-1||n<=e+r))for(let o=-1;o<=7;o++)i+o<=-1||n<=i+o||(r>=0&&r<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===r||6===r)||r>=2&&r<=4&&o>=2&&o<=4?t.set(e+r,i+o,!0,!0):t.set(e+r,i+o,!1,!0))}}(g,n),function(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2==0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}(g),function(t,e){const n=o.getPositions(e);for(let r=0;r<n.length;r++){const e=n[r][0],o=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?t.set(e+n,o+r,!0,!0):t.set(e+n,o+r,!1,!0)}}(g,n),P(g,a,0),n>=7&&function(t,e){const n=t.size,r=f.getEncodedBits(e);let o,i,s;for(let a=0;a<18;a++)o=Math.floor(a/3),i=a%3+n-8-3,s=1==(r>>a&1),t.set(o,i,s,!0),t.set(i,o,s,!0)}(g,n),function(t,e){const n=t.size;let r=-1,o=n-1,i=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!t.isReserved(o,a-n)){let r=!1;s<e.length&&(r=1==(e[s]>>>i&1)),t.set(o,a-n,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(g,d),isNaN(u)&&(u=s.getBestMask(g,P.bind(null,g,a))),s.applyMask(u,g),P(g,a,u),{modules:g,version:n,errorCorrectionLevel:a,maskPattern:u,segments:c}}return u.create=function(n,r){if(void 0===n||""===n)throw new Error("No input text");let o,i,a=e.M;return void 0!==r&&(a=e.from(r.errorCorrectionLevel,e.M),o=f.from(r.version),i=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),x(n,o,a,i)},u}var lt,ft,dt={},ht={};function gt(){return lt||(lt=1,function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),u=r.margin*s,c=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let l=4*(t*a+n),f=r.color.light;if(t>=u&&n>=u&&t<a-u&&n<a-u){f=c[i[Math.floor((t-u)/s)*o+Math.floor((n-u)/s)]?1:0]}e[l++]=f.r,e[l++]=f.g,e[l++]=f.b,e[l]=f.a}}}(ht)),ht}function pt(){return ft||(ft=1,function(t){const e=gt();t.render=function(t,n,r){let o=r,i=n;void 0!==o||n&&n.getContext||(o=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),o=e.getOptions(o);const s=e.getImageWidth(t.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return e.qrToImageData(u.data,t,o),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(a,i,s),a.putImageData(u,0,0),i},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const i=t.render(e,n,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}}(dt)),dt}var wt,mt,yt={};function Et(){if(wt)return yt;wt=1;const t=gt();function e(t,e){const n=t.a/255,r=e+'="'+t.hex+'"';return n<1?r+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function n(t,e,n){let r=t+e;return void 0!==n&&(r+=" "+n),r}return yt.render=function(r,o,i){const s=t.getOptions(o),a=r.modules.size,u=r.modules.data,c=a+2*s.margin,l=s.color.light.a?"<path "+e(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",f="<path "+e(s.color.dark,"stroke")+' d="'+function(t,e,r){let o="",i=0,s=!1,a=0;for(let u=0;u<t.length;u++){const c=Math.floor(u%e),l=Math.floor(u/e);c||s||(s=!0),t[u]?(a++,u>0&&c>0&&t[u-1]||(o+=s?n("M",c+r,.5+l+r):n("m",i,0),i=0,s=!1),c+1<e&&t[u+1]||(o+=n("h",a),a=0)):i++}return o}(u,a,s.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+d+' shape-rendering="crispEdges">'+l+f+"</svg>\n";return"function"==typeof i&&i(null,h),h},yt}var vt=function(){if(mt)return i;mt=1;const t=s(),e=ct(),n=pt(),r=Et();function o(n,r,o,i,s){const a=[].slice.call(arguments,1),u=a.length,c="function"==typeof a[u-1];if(!c&&!t())throw new Error("Callback required as last argument");if(!c){if(u<1)throw new Error("Too few arguments provided");return 1===u?(o=r,r=i=void 0):2!==u||r.getContext||(i=o,o=r,r=void 0),new Promise((function(t,s){try{const s=e.create(o,i);t(n(s,r,i))}catch(a){s(a)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(s=o,o=r,r=i=void 0):3===u&&(r.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=o,o=r,r=void 0));try{const t=e.create(o,i);s(null,n(t,r,i))}catch(l){s(l)}}return i.create=e.create,i.toCanvas=o.bind(null,n.render),i.toDataURL=o.bind(null,n.renderToDataURL),i.toString=o.bind(null,(function(t,e,n){return r.render(t,n)})),i}();var Ct=Object.defineProperty,At=Object.getOwnPropertyDescriptor,Bt=(t,e,n,r)=>{for(var o,i=r>1?void 0:r?At(e,n):e,s=t.length-1;s>=0;s--)(o=t[s])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&Ct(e,n,i),i};exports.QRModal=class extends e.i{constructor(){super(...arguments),this.qrLoaded=!1}updated(){const{originId:t,destinationId:e,generalConfig:n}=this.sdkData??{};if(!this.qrLoaded&&t&&e&&n){this.qrLoaded=!0;const{baseUrl:r}=n,o=`${r}/${t}?destinationId=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,i={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};vt.toDataURL(o,i).then((t=>{const e=this.shadowRoot?.getElementById("qr");e&&e instanceof HTMLImageElement&&(e.src=t)}))}}render(){const{cameraInitialized:t}=this.sdkData??{};return e.x`
|
|
2
|
-
<div class=${n.e({card:!0,hidden:!t})}>
|
|
3
|
-
<div class="modal-content">
|
|
4
|
-
<div class="pin-container">
|
|
5
|
-
<span .innerHTML=${'<svg width="63" height="63" viewBox="0 0 63 63" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_15_10760)">\n<path d="M32.8125 55.125H21C19.6076 55.125 18.2723 54.5719 17.2877 53.5873C16.3031 52.6027 15.75 51.2674 15.75 49.875V13.125C15.75 11.7326 16.3031 10.3973 17.2877 9.41269C18.2723 8.42812 19.6076 7.875 21 7.875H42C43.3924 7.875 44.7277 8.42812 45.7123 9.41269C46.6969 10.3973 47.25 11.7326 47.25 13.125V28.875" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M28.8758 10.4992H34.1258" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M55.4418 52.8193C56.5434 51.7181 57.2937 50.3149 57.5977 48.7872C57.9018 47.2595 57.746 45.676 57.15 44.2369C56.554 42.7978 55.5447 41.5678 54.2496 40.7023C52.9545 39.8369 51.4318 39.375 49.8742 39.375C48.3166 39.375 46.7939 39.8369 45.4988 40.7023C44.2038 41.5678 43.1944 42.7978 42.5984 44.2369C42.0025 45.676 41.8466 47.2595 42.1507 48.7872C42.4548 50.3149 43.205 51.7181 44.3066 52.8193C45.4038 53.9192 47.2597 55.5624 49.8742 57.7517C52.6331 55.4154 54.4916 53.7722 55.4418 52.8193Z" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M49.8742 47.25V47.2757" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M31.5 44.6258V44.6515" stroke="#DAEBF2" stroke-width="5.25" stroke-linecap="round" stroke-linejoin="round"/>\n</g>\n<defs>\n<clipPath id="clip0_15_10760">\n<rect width="63" height="63" fill="white"/>\n</clipPath>\n</defs>\n</svg>\n'}></span>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="qr-text">
|
|
8
|
-
<span>Continúa la ruta en tu celular, escaneando el código QR</span>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="qr-code qr-container">
|
|
11
|
-
<img id="qr" src="" alt="QR Code" />
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
`}},exports.QRModal.styles=[e.r(":host{display:block;height:100%;width:100%;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.card{margin-top:15px;background:#11032b;color:#fff;border-radius:24px;z-index:10;width:29.79vw;min-width:415px}.card.hidden{display:none}.modal-content{display:flex;flex-direction:row;align-items:center;gap:16px;padding:16px}.pin-container{display:flex;align-items:center;gap:8px}.qr-text{margin:0;font-size:1rem;font-weight:600;font-family:Poppins}.qr-code{display:flex;justify-content:center;align-items:center}.qr-code img{height:auto}.qr-container{background:#fff;padding:4px}")],Bt([t.c({context:e.sdkContext,subscribe:!0})],exports.QRModal.prototype,"sdkData",2),exports.QRModal=Bt([e.t("qr-modal")],exports.QRModal);
|
|
16
|
-
//# sourceMappingURL=qr-modal-D-Dxv4eF.cjs.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const back_arrow = "<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";
|
|
2
|
-
|
|
3
|
-
export { back_arrow as default };
|
|
4
|
-
//# sourceMappingURL=back_arrow-B4vxoqtW.js.map
|