@mapvx/web-components 0.0.24 → 0.0.26
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/{base-floor-selector-CHfESDHE.cjs → base-floor-selector-Bm8sTYdJ.cjs} +2 -2
- package/dist/cjs/{class-map-hyA27jHC.cjs → class-map-BYn-9uvy.cjs} +2 -2
- package/dist/cjs/{compact-floor-selector-Def-YJ-o.cjs → compact-floor-selector-DhhESOe0.cjs} +9 -7
- package/dist/cjs/{consume-De0hbKnD.cjs → consume-BE7YStBl.cjs} +2 -2
- package/dist/cjs/{custom-map-D5AbTB7G.cjs → custom-map-03ak_Vof.cjs} +18 -31
- package/dist/cjs/{floor-selector-urAHbfeG.cjs → floor-selector-C27g9abV.cjs} +2 -2
- package/dist/cjs/{lazy-load-CxL4pQ50.cjs → lazy-load-CES1Ya_D.cjs} +2 -2
- package/dist/cjs/map-view-with-modal.cjs +18 -11
- package/dist/cjs/{qr-modal-DMHM405t.cjs → qr-modal-BQG75u-x.cjs} +2 -2
- package/dist/cjs/{route-options-BZQaj2EM.cjs → route-options-C09f-35r.cjs} +2 -2
- package/dist/cjs/route-view-totems.cjs +1 -1
- package/dist/es/assets/{compact-floor-selector-BS3kmZbM.js → compact-floor-selector-D-822e0L.js} +10 -8
- package/dist/es/assets/{components-Cg181WRf.js → components-B6oTyj0x.js} +19 -32
- package/dist/es/assets/{map-view-with-modal-DRCi4MZE.js → map-view-with-modal-DfkRlpPp.js} +15 -8
- package/dist/es/assets/{route-view-totems-Bpxdz9bU.js → route-view-totems-BWtwjegR.js} +7 -7
- package/dist/es/assets/{utils-D3oP0BX3.js → utils-EeRdvb4i.js} +3 -3
- package/dist/es/index.js +2 -2
- package/dist/es/route-view-totems.js +2 -2
- package/dist/iife/map-view-with-modal.js +45 -49
- package/dist/iife/route-view-totems.js +16 -29
- package/package.json +1 -1
- package/dist/components/custom-map.d.ts +0 -13
- package/dist/components/custom-map.js +0 -64
- package/dist/components/floor-selector.d.ts +0 -6
- package/dist/components/floor-selector.js +0 -40
- package/dist/components/qr-modal.d.ts +0 -7
- package/dist/components/qr-modal.js +0 -69
- package/dist/components/route-options.d.ts +0 -6
- package/dist/components/route-options.js +0 -51
- package/dist/components/zoom-controls.d.ts +0 -6
- package/dist/components/zoom-controls.js +0 -40
- package/dist/route-view-totems.d.ts +0 -16
- package/dist/route-view-totems.js +0 -58
- package/dist/utils/styles.d.ts +0 -2
- package/dist/utils/styles.js +0 -5
|
@@ -115,7 +115,7 @@ t.exports=function(){var t={},e={};function i(i,r,n){if(e[i]=n,"index"===i){var
|
|
|
115
115
|
height: 100%;
|
|
116
116
|
width: 100%;
|
|
117
117
|
}
|
|
118
|
-
`,a(':host{display:block;height:100%;width:100%}#map,.maplibregl-canvas{width:100%;height:100%}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 20px 50px 0}.maplibregl-ctrl{bottom:var(--zoom-button-margin, 80px);right:var(--zoom-button-margin, 40px);border:var(--mvx-border-width, 0px) solid var(--mvx-border-color, transparent);padding:0;border-radius:100px;background:#fff;overflow:hidden;display:flex;flex-direction:column;width:var(--zoom-button-size, 70px);height:calc(var(--zoom-button-size, 70px) * 1.8)}.maplibregl-ctrl button{font-family:var(--mvx-font-family, inherit);background-color:transparent;box-shadow:none;border-radius:0;margin:0;font-size:
|
|
118
|
+
`,a(':host{display:block;height:100%;width:100%}#map,.maplibregl-canvas{width:100%;height:100%}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 20px 50px 0}.maplibregl-ctrl{bottom:var(--zoom-button-margin, 80px);right:var(--zoom-button-margin, 40px);border:var(--mvx-border-width, 0px) solid var(--mvx-border-color, transparent);padding:0;border-radius:100px;background:#fff;overflow:hidden;display:flex;flex-direction:column;width:var(--zoom-button-size, 70px);height:calc(var(--zoom-button-size, 70px) * 1.8)}.maplibregl-ctrl button{font-family:var(--mvx-font-family, inherit);background-color:transparent;box-shadow:none;border-radius:0;margin:0;font-size:var(--zoom-icon-size, 18px);font-weight:400;width:100%;height:100%;color:var(--zoom-icon-color, var(--mvx-primary-color, #251660));transition:background-color .4s ease,color .4s ease}.maplibregl-ctrl button:hover{background-color:var(--mvx-primary-color, #251660)!important;color:#fff}.maplibregl-ctrl-group .maplibregl-ctrl-icon{background:none!important;display:none!important}.maplibregl-ctrl-group button.maplibregl-ctrl-zoom-in:after{content:"+";display:block;font-size:var(--zoom-icon-size, 18px);font-weight:600;line-height:1;text-align:center}.maplibregl-ctrl-group button.maplibregl-ctrl-zoom-out:after{content:"–";display:block;font-size:var(--zoom-icon-size, 18px);font-weight:600;line-height:1;text-align:center}#modal{position:absolute;width:100%;height:100%;background:#0003;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;justify-items:center;top:0;left:0;z-index:100}.modal-content{min-width:100px;min-height:100px;background-color:#fff;border:1px solid #000;border-radius:10px;padding:10px;width:fit-content;height:fit-content;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}@media (max-width: 768px){#modal{align-items:flex-start;padding-top:60px}.modal-content{max-width:90%;margin:0 auto;border-radius:12px;box-shadow:0 4px 12px #00000026}}:host([compact-mode]){border-radius:12px!important;overflow:hidden!important;box-shadow:0 4px 12px #00000026!important}:host([compact-mode]) #map{border-radius:12px}:host([compact-mode]) .maplibregl-canvas{border-radius:12px}.modal-text{font-family:Poppins,sans-serif;font-size:20pt;font-weight:500;color:#000}.modal-icon{height:100px;align-self:center}.maplibregl-marker:has(.popup){z-index:10}.maplibregl-marker:not(:has(.popup)){z-index:5}.maplibregl-ctrl-compass{visibility:hidden;height:0px}'),s`
|
|
119
119
|
:host([compact-mode]) {
|
|
120
120
|
border-radius: 12px !important;
|
|
121
121
|
overflow: hidden !important;
|
|
@@ -168,34 +168,20 @@ t.exports=function(){var t={},e={};function i(i,r,n){if(e[i]=n,"index"===i){var
|
|
|
168
168
|
right: 16px !important;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
/*
|
|
172
|
-
|
|
173
|
-
font-size:
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
:host([zoom-size='normal']) .maplibregl-ctrl button {
|
|
177
|
-
font-size: 18px !important;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
:host([zoom-size='large']) .maplibregl-ctrl button {
|
|
181
|
-
font-size: 22px !important;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
:host([zoom-size='small']) .maplibregl-ctrl-group button::after {
|
|
185
|
-
font-size: 14px !important;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
:host([zoom-size='normal']) .maplibregl-ctrl-group button::after {
|
|
189
|
-
font-size: 18px !important;
|
|
171
|
+
/* Icon size is independent from container size */
|
|
172
|
+
.maplibregl-ctrl button {
|
|
173
|
+
font-size: var(--zoom-icon-size, 18px) !important;
|
|
190
174
|
}
|
|
191
175
|
|
|
192
|
-
|
|
193
|
-
font-size:
|
|
176
|
+
.maplibregl-ctrl-group button::after {
|
|
177
|
+
font-size: var(--zoom-icon-size, 18px) !important;
|
|
194
178
|
}
|
|
195
179
|
|
|
196
|
-
/* Zoom button
|
|
180
|
+
/* Zoom button container customizable via CSS variables */
|
|
197
181
|
.maplibregl-ctrl {
|
|
198
182
|
border: var(--zoom-border-width, 0px) solid var(--zoom-border-color, transparent) !important;
|
|
183
|
+
box-shadow: var(--zoom-shadow, none) !important;
|
|
184
|
+
background: var(--zoom-background, #fff) !important;
|
|
199
185
|
}
|
|
200
186
|
|
|
201
187
|
.maplibregl-ctrl button {
|
|
@@ -203,14 +189,15 @@ t.exports=function(){var t={},e={};function i(i,r,n){if(e[i]=n,"index"===i){var
|
|
|
203
189
|
border-radius: unset;
|
|
204
190
|
}
|
|
205
191
|
|
|
206
|
-
/* Divider between zoom
|
|
207
|
-
.maplibregl-ctrl button
|
|
208
|
-
border-
|
|
192
|
+
/* Divider between zoom-in and zoom-out buttons, overridable separately */
|
|
193
|
+
.maplibregl-ctrl-group button + button {
|
|
194
|
+
border-top: var(--zoom-divider-width, var(--zoom-border-width, 0px)) solid
|
|
195
|
+
var(--zoom-divider-color, var(--zoom-border-color, transparent)) !important;
|
|
209
196
|
}
|
|
210
197
|
|
|
211
198
|
.maplibregl-ctrl button:hover {
|
|
212
|
-
background-color: var(--zoom-border-color, #251660) !important;
|
|
213
|
-
color: #fff !important;
|
|
199
|
+
background-color: var(--zoom-hover-bg, var(--zoom-border-color, #251660)) !important;
|
|
200
|
+
color: var(--zoom-hover-color, #fff) !important;
|
|
214
201
|
}
|
|
215
202
|
`],Qt([vt({context:Et,subscribe:!0})],Jt.prototype,"sdkData",2),Jt=Qt([ct("custom-map")],Jt);const Xt=Object.freeze(Object.defineProperty({__proto__:null,get CustomMap(){return Jt}},Symbol.toStringTag,{value:"Module"})),$t=1;
|
|
216
203
|
/**
|
|
@@ -235,7 +222,7 @@ t.exports=function(){var t={},e={};function i(i,r,n){if(e[i]=n,"index"===i){var
|
|
|
235
222
|
</div>
|
|
236
223
|
`}))}
|
|
237
224
|
</div>
|
|
238
|
-
`}};oe.styles=[a(':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}}')],oe=((t,e,i,r)=>{for(var n,o=r>1?void 0:r?ne(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=n(o)||o);return o})([ct("floor-selector")],oe);const ae=Object.freeze(Object.defineProperty({__proto__:null,get FloorSelector(){return oe}},Symbol.toStringTag,{value:"Module"}));var se,le,ce={};function ue(){return le?se:(le=1,se=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var he,de={},pe={};function fe(){if(he)return pe;let t;he=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 pe.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},pe.getSymbolTotalCodewords=function(t){return e[t]},pe.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},pe.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},pe.isKanjiModeEnabled=function(){return void 0!==t},pe.toSJIS=function(e){return t(e)},pe}var me,ge,ye,ve,be,xe={};function Ae(){return me||(me=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,i){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(ee){return i}}}(xe)),xe}var we,Ie={};var Ee,_e={};var Ce,Se={};var Me,ke={};function Te(){if(Me)return ke;Me=1;const t=Ae(),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],i=[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 ke.getBlocksCount=function(i,r){switch(r){case t.L:return e[4*(i-1)+0];case t.M:return e[4*(i-1)+1];case t.Q:return e[4*(i-1)+2];case t.H:return e[4*(i-1)+3];default:return}},ke.getTotalCodewordsCount=function(e,r){switch(r){case t.L:return i[4*(e-1)+0];case t.M:return i[4*(e-1)+1];case t.Q:return i[4*(e-1)+2];case t.H:return i[4*(e-1)+3];default:return}},ke}var Pe,Re,ze,Le,De={},Oe={};function Be(){return Re||(Re=1,function(t){const e=function(){if(Pe)return Oe;Pe=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let i=1;for(let r=0;r<255;r++)t[r]=i,e[i]=r,i<<=1,256&i&&(i^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),Oe.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},Oe.exp=function(e){return t[e]},Oe.mul=function(i,r){return 0===i||0===r?0:t[e[i]+e[r]]},Oe}();t.mul=function(t,i){const r=new Uint8Array(t.length+i.length-1);for(let n=0;n<t.length;n++)for(let o=0;o<i.length;o++)r[n+o]^=e.mul(t[n],i[o]);return r},t.mod=function(t,i){let r=new Uint8Array(t);for(;r.length-i.length>=0;){const t=r[0];for(let o=0;o<i.length;o++)r[o]^=e.mul(i[o],t);let n=0;for(;n<r.length&&0===r[n];)n++;r=r.slice(n)}return r},t.generateECPolynomial=function(i){let r=new Uint8Array([1]);for(let n=0;n<i;n++)r=t.mul(r,new Uint8Array([1,e.exp(n)]));return r}}(De)),De}var qe,Fe={},je={},Ne={};function Ge(){return qe||(qe=1,Ne.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Ne}var Ze,Ue,He,Ve={};function Ke(){if(Ze)return Ve;Ze=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 i="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Ve.KANJI=new RegExp(e,"g"),Ve.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ve.BYTE=new RegExp(i,"g"),Ve.NUMERIC=new RegExp(t,"g"),Ve.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),n=new RegExp("^"+t+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ve.testKanji=function(t){return r.test(t)},Ve.testNumeric=function(t){return n.test(t)},Ve.testAlphanumeric=function(t){return o.test(t)},Ve}function We(){return Ue||(Ue=1,function(t){const e=Ge(),i=Ke();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,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.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,i){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(ee){return i}}}(je)),je}function Ye(){return He||(He=1,function(t){const e=fe(),i=Te(),r=Ae(),n=We(),o=Ge(),a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let i=0;return t.forEach((function(t){const r=s(t.mode,e);i+=r+t.getBitsLength()})),i}t.from=function(t,e){return o.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,a){if(!o.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,r));if(a===n.MIXED)return l;const c=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(c/10*3);case n.ALPHANUMERIC:return Math.floor(c/11*2);case n.KANJI:return Math.floor(c/13);case n.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,i){let o;const a=r.from(i,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,i){for(let r=1;r<=40;r++)if(l(e,r)<=t.getCapacity(r,i,n.MIXED))return r}(e,a);if(0===e.length)return 1;o=e[0]}else o=e;return function(e,i,r){for(let n=1;n<=40;n++)if(i<=t.getCapacity(n,r,e))return n}(o.mode,o.getLength(),a)},t.getEncodedBits=function(t){if(!o.isValid(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;e.getBCHDigit(i)-a>=0;)i^=7973<<e.getBCHDigit(i)-a;return t<<12|i}}(Fe)),Fe}var Qe,Je={};var Xe,$e,ti,ei,ii,ri,ni,oi,ai={};var si,li,ci,ui={exports:{}};function hi(){return si||(si=1,function(t){var e={single_source_shortest_paths:function(t,i,r){var n={},o={};o[i]=0;var a,s,l,c,u,h,d,p=e.PriorityQueue.make();for(p.push(i,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=t[s]||{})u.hasOwnProperty(l)&&(h=c+u[l],d=o[l],(void 0===o[l]||d>h)&&(o[l]=h,p.push(l,h),n[l]=s));if(void 0!==r&&void 0===o[r]){var f=["Could not find a path from ",i," to ",r,"."].join("");throw new Error(f)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],r=e;r;)i.push(r),t[r],r=t[r];return i.reverse(),i},find_path:function(t,i,r){var n=e.single_source_shortest_paths(t,i,r);return e.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var i,r=e.PriorityQueue,n={};for(i in t=t||{},r)r.hasOwnProperty(i)&&(n[i]=r[i]);return n.queue=[],n.sorter=t.sorter||r.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var i={value:t,cost:e};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ui)),ui.exports}function di(){return li||(li=1,function(t){const e=We(),i=function(){if($e)return Xe;$e=1;const t=We();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,i,r;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),r=parseInt(i,10),t.put(r,10);const n=this.data.length-e;n>0&&(i=this.data.substr(e),r=parseInt(i,10),t.put(r,3*n+1))},Xe=e}(),r=function(){if(ei)return ti;ei=1;const t=We(),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 i(e){this.mode=t.ALPHANUMERIC,this.data=e}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let r=45*e.indexOf(this.data[i]);r+=e.indexOf(this.data[i+1]),t.put(r,11)}this.data.length%2&&t.put(e.indexOf(this.data[i]),6)},ti=i}(),n=function(){if(ri)return ii;ri=1;const t=We();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,i=this.data.length;e<i;e++)t.put(this.data[e],8)},ii=e}(),o=function(){if(oi)return ni;oi=1;const t=We(),e=fe();function i(e){this.mode=t.KANJI,this.data=e}return i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let r=e.toSJIS(this.data[i]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},ni=i}(),a=Ke(),s=fe(),l=hi();function c(t){return unescape(encodeURIComponent(t)).length}function u(t,e,i){const r=[];let n;for(;null!==(n=t.exec(i));)r.push({data:n[0],index:n.index,mode:e,length:n[0].length});return r}function h(t){const i=u(a.NUMERIC,e.NUMERIC,t),r=u(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,o;s.isKanjiModeEnabled()?(n=u(a.BYTE,e.BYTE,t),o=u(a.KANJI,e.KANJI,t)):(n=u(a.BYTE_KANJI,e.BYTE,t),o=[]);return i.concat(r,n,o).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function d(t,a){switch(a){case e.NUMERIC:return i.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return o.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function p(t,a){let l;const c=e.getBestModeForData(t);if(l=e.from(a,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||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new i(t);case e.ALPHANUMERIC:return new r(t);case e.KANJI:return new o(t);case e.BYTE:return new n(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(i,r){const n=function(t){const i=[];for(let r=0;r<t.length;r++){const n=t[r];switch(n.mode){case e.NUMERIC:i.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:i.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:i.push([n,{data:n.data,mode:e.BYTE,length:c(n.data)}]);break;case e.BYTE:i.push([{data:n.data,mode:e.BYTE,length:c(n.data)}])}}return i}(h(i,s.isKanjiModeEnabled())),o=function(t,i){const r={},n={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),r[u]={node:c,lastCount:0},n[u]={};for(let t=0;t<o.length;t++){const a=o[t];r[a]&&r[a].node.mode===c.mode?(n[a][u]=d(r[a].lastCount+c.length,c.mode)-d(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),n[a][u]=d(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,i))}}o=l}for(let e=0;e<o.length;e++)n[o[e]].end=0;return{map:n,table:r}}(n,r),a=l.find_path(o.map,"start","end"),u=[];for(let t=1;t<a.length-1;t++)u.push(o.table[a[t]].node);return t.fromArray(function(t){return t.reduce((function(t,e){const i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(u))},t.rawSplit=function(e){return t.fromArray(h(e,s.isKanjiModeEnabled()))}}(ai)),ai}function pi(){if(ci)return de;ci=1;const t=fe(),e=Ae(),i=function(){if(ye)return ge;function t(){this.buffer=[],this.length=0}return ye=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 i=0;i<e;i++)this.putBit(1==(t>>>e-i-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++}},ge=t}(),r=function(){if(be)return ve;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 be=1,t.prototype.set=function(t,e,i,r){const n=t*this.size+e;this.data[n]=i,r&&(this.reservedBit[n]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},ve=t}(),n=(we||(we=1,function(t){const e=fe().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,r=e(t),n=145===r?26:2*Math.ceil((r-13)/(2*i-2)),o=[r-7];for(let e=1;e<i-1;e++)o[e]=o[e-1]-n;return o.push(6),o.reverse()},t.getPositions=function(e){const i=[],r=t.getRowColCoords(e),n=r.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||i.push([r[t],r[e]]);return i}}(Ie)),Ie),o=function(){if(Ee)return _e;Ee=1;const t=fe().getSymbolSize;return _e.getPositions=function(e){const i=t(e);return[[0,0],[i-7,0],[0,i-7]]},_e}(),a=(Ce||(Ce=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,i=3,r=40,n=10;function o(e,i,r){switch(e){case t.Patterns.PATTERN000:return(i+r)%2==0;case t.Patterns.PATTERN001:return i%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(i+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return i*r%2+i*r%3==0;case t.Patterns.PATTERN110:return(i*r%2+i*r%3)%2==0;case t.Patterns.PATTERN111:return(i*r%3+(i+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 i=t.size;let r=0,n=0,o=0,a=null,s=null;for(let l=0;l<i;l++){n=o=0,a=s=null;for(let c=0;c<i;c++){let i=t.get(l,c);i===a?n++:(n>=5&&(r+=e+(n-5)),a=i,n=1),i=t.get(c,l),i===s?o++:(o>=5&&(r+=e+(o-5)),s=i,o=1)}n>=5&&(r+=e+(n-5)),o>=5&&(r+=e+(o-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let i=0;i<e-1;i++)for(let n=0;n<e-1;n++){const e=t.get(i,n)+t.get(i,n+1)+t.get(i+1,n)+t.get(i+1,n+1);4!==e&&0!==e||r++}return r*i},t.getPenaltyN3=function(t){const e=t.size;let i=0,n=0,o=0;for(let r=0;r<e;r++){n=o=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(r,a),a>=10&&(1488===n||93===n)&&i++,o=o<<1&2047|t.get(a,r),a>=10&&(1488===o||93===o)&&i++}return i*r},t.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let r=0;r<i;r++)e+=t.data[r];return Math.abs(Math.ceil(100*e/i/5)-10)*n},t.applyMask=function(t,e){const i=e.size;for(let r=0;r<i;r++)for(let n=0;n<i;n++)e.isReserved(n,r)||e.xor(n,r,o(t,n,r))},t.getBestMask=function(e,i){const r=Object.keys(t.Patterns).length;let n=0,o=1/0;for(let a=0;a<r;a++){i(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,n=a)}return n}}(Se)),Se),s=Te(),l=function(){if(Le)return ze;Le=1;const t=Be();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 i=new Uint8Array(e.length+this.degree);i.set(e);const r=t.mod(i,this.genPoly),n=this.degree-r.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(r,n),t}return r},ze=e}(),c=Ye(),u=function(){if(Qe)return Je;Qe=1;const t=fe(),e=t.getBCHDigit(1335);return Je.getEncodedBits=function(i,r){const n=i.bit<<3|r;let o=n<<10;for(;t.getBCHDigit(o)-e>=0;)o^=1335<<t.getBCHDigit(o)-e;return 21522^(n<<10|o)},Je}(),h=We(),d=di();function p(t,e,i){const r=t.size,n=u.getEncodedBits(e,i);let o,a;for(o=0;o<15;o++)a=1==(n>>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(r-15+o,8,a,!0),o<8?t.set(8,r-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(r-8,8,1,!0)}function f(e,r,n){const o=new i;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)}));const a=8*(t.getSymbolTotalCodewords(e)-s.getTotalCodewordsCount(e,r));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const c=(a-o.getLengthInBits())/8;for(let t=0;t<c;t++)o.put(t%2?17:236,8);return function(e,i,r){const n=t.getSymbolTotalCodewords(i),o=s.getTotalCodewordsCount(i,r),a=n-o,c=s.getBlocksCount(i,r),u=n%c,h=c-u,d=Math.floor(n/c),p=Math.floor(a/c),f=p+1,m=d-p,g=new l(m);let y=0;const v=new Array(c),b=new Array(c);let x=0;const A=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<h?p:f;v[t]=A.slice(y,y+e),b[t]=g.encode(v[t]),y+=e,x=Math.max(x,e)}const w=new Uint8Array(n);let I,E,_=0;for(I=0;I<x;I++)for(E=0;E<c;E++)I<v[E].length&&(w[_++]=v[E][I]);for(I=0;I<m;I++)for(E=0;E<c;E++)w[_++]=b[E][I];return w}(o,e,r)}function m(e,i,s,l){let u;if(Array.isArray(e))u=d.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=i;if(!t){const i=d.rawSplit(e);t=c.getBestVersionForData(i,s)}u=d.fromString(e,t||40)}}const h=c.getBestVersionForData(u,s);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(i){if(i<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else i=h;const m=f(i,s,u),g=t.getSymbolSize(i),y=new r(g);return function(t,e){const i=t.size,r=o.getPositions(e);for(let n=0;n<r.length;n++){const e=r[n][0],o=r[n][1];for(let r=-1;r<=7;r++)if(!(e+r<=-1||i<=e+r))for(let n=-1;n<=7;n++)o+n<=-1||i<=o+n||(r>=0&&r<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===r||6===r)||r>=2&&r<=4&&n>=2&&n<=4?t.set(e+r,o+n,!0,!0):t.set(e+r,o+n,!1,!0))}}(y,i),function(t){const e=t.size;for(let i=8;i<e-8;i++){const e=i%2==0;t.set(i,6,e,!0),t.set(6,i,e,!0)}}(y),function(t,e){const i=n.getPositions(e);for(let r=0;r<i.length;r++){const e=i[r][0],n=i[r][1];for(let i=-2;i<=2;i++)for(let r=-2;r<=2;r++)-2===i||2===i||-2===r||2===r||0===i&&0===r?t.set(e+i,n+r,!0,!0):t.set(e+i,n+r,!1,!0)}}(y,i),p(y,s,0),i>=7&&function(t,e){const i=t.size,r=c.getEncodedBits(e);let n,o,a;for(let s=0;s<18;s++)n=Math.floor(s/3),o=s%3+i-8-3,a=1==(r>>s&1),t.set(n,o,a,!0),t.set(o,n,a,!0)}(y,i),function(t,e){const i=t.size;let r=-1,n=i-1,o=7,a=0;for(let s=i-1;s>0;s-=2)for(6===s&&s--;;){for(let i=0;i<2;i++)if(!t.isReserved(n,s-i)){let r=!1;a<e.length&&(r=1==(e[a]>>>o&1)),t.set(n,s-i,r),o--,-1===o&&(a++,o=7)}if(n+=r,n<0||i<=n){n-=r,r=-r;break}}}(y,m),isNaN(l)&&(l=a.getBestMask(y,p.bind(null,y,s))),a.applyMask(l,y),p(y,s,l),{modules:y,version:i,errorCorrectionLevel:s,maskPattern:l,segments:u}}return de.create=function(i,r){if(void 0===i||""===i)throw new Error("No input text");let n,o,s=e.M;return void 0!==r&&(s=e.from(r.errorCorrectionLevel,e.M),n=c.from(r.version),o=a.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),m(i,n,s,o)},de}var fi,mi,gi={},yi={};function vi(){return fi||(fi=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 i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:r,scale:r?4:n,margin:i,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,i){const r=t.getScale(e,i);return Math.floor((e+2*i.margin)*r)},t.qrToImageData=function(e,i,r){const n=i.modules.size,o=i.modules.data,a=t.getScale(n,r),s=Math.floor((n+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let i=0;i<s;i++){let u=4*(t*s+i),h=r.color.light;if(t>=l&&i>=l&&t<s-l&&i<s-l){h=c[o[Math.floor((t-l)/a)*n+Math.floor((i-l)/a)]?1:0]}e[u++]=h.r,e[u++]=h.g,e[u++]=h.b,e[u]=h.a}}}(yi)),yi}function bi(){return mi||(mi=1,function(t){const e=vi();t.render=function(t,i,r){let n=r,o=i;void 0!==n||i&&i.getContext||(n=i,i=void 0),i||(o=function(){try{return document.createElement("canvas")}catch(ee){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=o.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,i,r){let n=r;void 0!==n||i&&i.getContext||(n=i,i=void 0),n||(n={});const o=t.render(e,i,n),a=n.type||"image/png",s=n.rendererOpts||{};return o.toDataURL(a,s.quality)}}(gi)),gi}var xi,Ai,wi={};function Ii(){if(xi)return wi;xi=1;const t=vi();function e(t,e){const i=t.a/255,r=e+'="'+t.hex+'"';return i<1?r+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function i(t,e,i){let r=t+e;return void 0!==i&&(r+=" "+i),r}return wi.render=function(r,n,o){const a=t.getOptions(n),s=r.modules.size,l=r.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+e(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",h="<path "+e(a.color.dark,"stroke")+' d="'+function(t,e,r){let n="",o=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(n+=a?i("M",c+r,.5+u+r):i("m",o,0),o=0,a=!1),c+1<e&&t[l+1]||(n+=i("h",s),s=0)):o++}return n}(l,s,a.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+d+' shape-rendering="crispEdges">'+u+h+"</svg>\n";return"function"==typeof o&&o(null,p),p},wi}var Ei=function(){if(Ai)return ce;Ai=1;const t=ue(),e=pi(),i=bi(),r=Ii();function n(i,r,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[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?(n=r,r=o=void 0):2!==l||r.getContext||(o=n,n=r,r=void 0),new Promise((function(t,a){try{const a=e.create(n,o);t(i(a,r,o))}catch(ee){a(ee)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=r,r=o=void 0):3===l&&(r.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=r,r=void 0));try{const t=e.create(n,o);a(null,i(t,r,o))}catch(ee){a(ee)}}return ce.create=e.create,ce.toCanvas=n.bind(null,i.render),ce.toDataURL=n.bind(null,i.renderToDataURL),ce.toString=n.bind(null,(function(t,e,i){return r.render(t,i)})),ce}();var _i=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Si=(t,e,i,r)=>{for(var n,o=r>1?void 0:r?Ci(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=(r?n(e,i,o):n(o))||o);return r&&o&&_i(e,i,o),o};let Mi=class extends st{constructor(){super(...arguments),this.qrLoaded=!1}updated(){const{originId:t,destinationId:e,generalConfig:i}=this.sdkData??{};if(!this.qrLoaded&&t&&e&&i){this.qrLoaded=!0;const{baseUrl:r}=i,n=`${r}/${t}?destinationId=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,o={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};Ei.toDataURL(n,o).then((t=>{const e=this.shadowRoot?.getElementById("qr");e&&e instanceof HTMLImageElement&&(e.src=t)}))}}render(){const{cameraInitialized:t}=this.sdkData??{};return Z`
|
|
225
|
+
`}};oe.styles=[a(':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}}')],oe=((t,e,i,r)=>{for(var n,o=r>1?void 0:r?ne(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=n(o)||o);return o})([ct("floor-selector")],oe);const ae=Object.freeze(Object.defineProperty({__proto__:null,get FloorSelector(){return oe}},Symbol.toStringTag,{value:"Module"}));var se,le,ce={};function ue(){return le?se:(le=1,se=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var he,de={},pe={};function fe(){if(he)return pe;let t;he=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 pe.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},pe.getSymbolTotalCodewords=function(t){return e[t]},pe.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},pe.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},pe.isKanjiModeEnabled=function(){return void 0!==t},pe.toSJIS=function(e){return t(e)},pe}var me,ge,ye,ve,be,xe={};function Ae(){return me||(me=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,i){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(ee){return i}}}(xe)),xe}var we,Ie={};var Ee,_e={};var Ce,Se={};var Me,ke={};function Te(){if(Me)return ke;Me=1;const t=Ae(),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],i=[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 ke.getBlocksCount=function(i,r){switch(r){case t.L:return e[4*(i-1)+0];case t.M:return e[4*(i-1)+1];case t.Q:return e[4*(i-1)+2];case t.H:return e[4*(i-1)+3];default:return}},ke.getTotalCodewordsCount=function(e,r){switch(r){case t.L:return i[4*(e-1)+0];case t.M:return i[4*(e-1)+1];case t.Q:return i[4*(e-1)+2];case t.H:return i[4*(e-1)+3];default:return}},ke}var Pe,Re,ze,Le,De={},Oe={};function Be(){return Re||(Re=1,function(t){const e=function(){if(Pe)return Oe;Pe=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let i=1;for(let r=0;r<255;r++)t[r]=i,e[i]=r,i<<=1,256&i&&(i^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),Oe.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},Oe.exp=function(e){return t[e]},Oe.mul=function(i,r){return 0===i||0===r?0:t[e[i]+e[r]]},Oe}();t.mul=function(t,i){const r=new Uint8Array(t.length+i.length-1);for(let n=0;n<t.length;n++)for(let o=0;o<i.length;o++)r[n+o]^=e.mul(t[n],i[o]);return r},t.mod=function(t,i){let r=new Uint8Array(t);for(;r.length-i.length>=0;){const t=r[0];for(let o=0;o<i.length;o++)r[o]^=e.mul(i[o],t);let n=0;for(;n<r.length&&0===r[n];)n++;r=r.slice(n)}return r},t.generateECPolynomial=function(i){let r=new Uint8Array([1]);for(let n=0;n<i;n++)r=t.mul(r,new Uint8Array([1,e.exp(n)]));return r}}(De)),De}var qe,Fe={},je={},Ne={};function Ge(){return qe||(qe=1,Ne.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Ne}var Ze,Ue,He,Ve={};function Ke(){if(Ze)return Ve;Ze=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 i="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Ve.KANJI=new RegExp(e,"g"),Ve.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ve.BYTE=new RegExp(i,"g"),Ve.NUMERIC=new RegExp(t,"g"),Ve.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),n=new RegExp("^"+t+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ve.testKanji=function(t){return r.test(t)},Ve.testNumeric=function(t){return n.test(t)},Ve.testAlphanumeric=function(t){return o.test(t)},Ve}function We(){return Ue||(Ue=1,function(t){const e=Ge(),i=Ke();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,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.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,i){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(ee){return i}}}(je)),je}function Ye(){return He||(He=1,function(t){const e=fe(),i=Te(),r=Ae(),n=We(),o=Ge(),a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let i=0;return t.forEach((function(t){const r=s(t.mode,e);i+=r+t.getBitsLength()})),i}t.from=function(t,e){return o.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,a){if(!o.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,r));if(a===n.MIXED)return l;const c=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(c/10*3);case n.ALPHANUMERIC:return Math.floor(c/11*2);case n.KANJI:return Math.floor(c/13);case n.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,i){let o;const a=r.from(i,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,i){for(let r=1;r<=40;r++)if(l(e,r)<=t.getCapacity(r,i,n.MIXED))return r}(e,a);if(0===e.length)return 1;o=e[0]}else o=e;return function(e,i,r){for(let n=1;n<=40;n++)if(i<=t.getCapacity(n,r,e))return n}(o.mode,o.getLength(),a)},t.getEncodedBits=function(t){if(!o.isValid(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;e.getBCHDigit(i)-a>=0;)i^=7973<<e.getBCHDigit(i)-a;return t<<12|i}}(Fe)),Fe}var Qe,Je={};var Xe,$e,ti,ei,ii,ri,ni,oi,ai={};var si,li,ci,ui={exports:{}};function hi(){return si||(si=1,function(t){var e={single_source_shortest_paths:function(t,i,r){var n={},o={};o[i]=0;var a,s,l,c,u,h,d,p=e.PriorityQueue.make();for(p.push(i,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=t[s]||{})u.hasOwnProperty(l)&&(h=c+u[l],d=o[l],(void 0===o[l]||d>h)&&(o[l]=h,p.push(l,h),n[l]=s));if(void 0!==r&&void 0===o[r]){var f=["Could not find a path from ",i," to ",r,"."].join("");throw new Error(f)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],r=e;r;)i.push(r),t[r],r=t[r];return i.reverse(),i},find_path:function(t,i,r){var n=e.single_source_shortest_paths(t,i,r);return e.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var i,r=e.PriorityQueue,n={};for(i in t=t||{},r)r.hasOwnProperty(i)&&(n[i]=r[i]);return n.queue=[],n.sorter=t.sorter||r.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var i={value:t,cost:e};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ui)),ui.exports}function di(){return li||(li=1,function(t){const e=We(),i=function(){if($e)return Xe;$e=1;const t=We();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,i,r;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),r=parseInt(i,10),t.put(r,10);const n=this.data.length-e;n>0&&(i=this.data.substr(e),r=parseInt(i,10),t.put(r,3*n+1))},Xe=e}(),r=function(){if(ei)return ti;ei=1;const t=We(),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 i(e){this.mode=t.ALPHANUMERIC,this.data=e}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let r=45*e.indexOf(this.data[i]);r+=e.indexOf(this.data[i+1]),t.put(r,11)}this.data.length%2&&t.put(e.indexOf(this.data[i]),6)},ti=i}(),n=function(){if(ri)return ii;ri=1;const t=We();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,i=this.data.length;e<i;e++)t.put(this.data[e],8)},ii=e}(),o=function(){if(oi)return ni;oi=1;const t=We(),e=fe();function i(e){this.mode=t.KANJI,this.data=e}return i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let r=e.toSJIS(this.data[i]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},ni=i}(),a=Ke(),s=fe(),l=hi();function c(t){return unescape(encodeURIComponent(t)).length}function u(t,e,i){const r=[];let n;for(;null!==(n=t.exec(i));)r.push({data:n[0],index:n.index,mode:e,length:n[0].length});return r}function h(t){const i=u(a.NUMERIC,e.NUMERIC,t),r=u(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,o;s.isKanjiModeEnabled()?(n=u(a.BYTE,e.BYTE,t),o=u(a.KANJI,e.KANJI,t)):(n=u(a.BYTE_KANJI,e.BYTE,t),o=[]);return i.concat(r,n,o).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function d(t,a){switch(a){case e.NUMERIC:return i.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return o.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function p(t,a){let l;const c=e.getBestModeForData(t);if(l=e.from(a,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||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new i(t);case e.ALPHANUMERIC:return new r(t);case e.KANJI:return new o(t);case e.BYTE:return new n(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(i,r){const n=function(t){const i=[];for(let r=0;r<t.length;r++){const n=t[r];switch(n.mode){case e.NUMERIC:i.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:i.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:i.push([n,{data:n.data,mode:e.BYTE,length:c(n.data)}]);break;case e.BYTE:i.push([{data:n.data,mode:e.BYTE,length:c(n.data)}])}}return i}(h(i,s.isKanjiModeEnabled())),o=function(t,i){const r={},n={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),r[u]={node:c,lastCount:0},n[u]={};for(let t=0;t<o.length;t++){const a=o[t];r[a]&&r[a].node.mode===c.mode?(n[a][u]=d(r[a].lastCount+c.length,c.mode)-d(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),n[a][u]=d(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,i))}}o=l}for(let e=0;e<o.length;e++)n[o[e]].end=0;return{map:n,table:r}}(n,r),a=l.find_path(o.map,"start","end"),u=[];for(let t=1;t<a.length-1;t++)u.push(o.table[a[t]].node);return t.fromArray(function(t){return t.reduce((function(t,e){const i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(u))},t.rawSplit=function(e){return t.fromArray(h(e,s.isKanjiModeEnabled()))}}(ai)),ai}function pi(){if(ci)return de;ci=1;const t=fe(),e=Ae(),i=function(){if(ye)return ge;function t(){this.buffer=[],this.length=0}return ye=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 i=0;i<e;i++)this.putBit(1==(t>>>e-i-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++}},ge=t}(),r=function(){if(be)return ve;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 be=1,t.prototype.set=function(t,e,i,r){const n=t*this.size+e;this.data[n]=i,r&&(this.reservedBit[n]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},ve=t}(),n=(we||(we=1,function(t){const e=fe().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,r=e(t),n=145===r?26:2*Math.ceil((r-13)/(2*i-2)),o=[r-7];for(let e=1;e<i-1;e++)o[e]=o[e-1]-n;return o.push(6),o.reverse()},t.getPositions=function(e){const i=[],r=t.getRowColCoords(e),n=r.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||i.push([r[t],r[e]]);return i}}(Ie)),Ie),o=function(){if(Ee)return _e;Ee=1;const t=fe().getSymbolSize;return _e.getPositions=function(e){const i=t(e);return[[0,0],[i-7,0],[0,i-7]]},_e}(),a=(Ce||(Ce=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,i=3,r=40,n=10;function o(e,i,r){switch(e){case t.Patterns.PATTERN000:return(i+r)%2==0;case t.Patterns.PATTERN001:return i%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(i+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return i*r%2+i*r%3==0;case t.Patterns.PATTERN110:return(i*r%2+i*r%3)%2==0;case t.Patterns.PATTERN111:return(i*r%3+(i+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 i=t.size;let r=0,n=0,o=0,a=null,s=null;for(let l=0;l<i;l++){n=o=0,a=s=null;for(let c=0;c<i;c++){let i=t.get(l,c);i===a?n++:(n>=5&&(r+=e+(n-5)),a=i,n=1),i=t.get(c,l),i===s?o++:(o>=5&&(r+=e+(o-5)),s=i,o=1)}n>=5&&(r+=e+(n-5)),o>=5&&(r+=e+(o-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let i=0;i<e-1;i++)for(let n=0;n<e-1;n++){const e=t.get(i,n)+t.get(i,n+1)+t.get(i+1,n)+t.get(i+1,n+1);4!==e&&0!==e||r++}return r*i},t.getPenaltyN3=function(t){const e=t.size;let i=0,n=0,o=0;for(let r=0;r<e;r++){n=o=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(r,a),a>=10&&(1488===n||93===n)&&i++,o=o<<1&2047|t.get(a,r),a>=10&&(1488===o||93===o)&&i++}return i*r},t.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let r=0;r<i;r++)e+=t.data[r];return Math.abs(Math.ceil(100*e/i/5)-10)*n},t.applyMask=function(t,e){const i=e.size;for(let r=0;r<i;r++)for(let n=0;n<i;n++)e.isReserved(n,r)||e.xor(n,r,o(t,n,r))},t.getBestMask=function(e,i){const r=Object.keys(t.Patterns).length;let n=0,o=1/0;for(let a=0;a<r;a++){i(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,n=a)}return n}}(Se)),Se),s=Te(),l=function(){if(Le)return ze;Le=1;const t=Be();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 i=new Uint8Array(e.length+this.degree);i.set(e);const r=t.mod(i,this.genPoly),n=this.degree-r.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(r,n),t}return r},ze=e}(),c=Ye(),u=function(){if(Qe)return Je;Qe=1;const t=fe(),e=t.getBCHDigit(1335);return Je.getEncodedBits=function(i,r){const n=i.bit<<3|r;let o=n<<10;for(;t.getBCHDigit(o)-e>=0;)o^=1335<<t.getBCHDigit(o)-e;return 21522^(n<<10|o)},Je}(),h=We(),d=di();function p(t,e,i){const r=t.size,n=u.getEncodedBits(e,i);let o,a;for(o=0;o<15;o++)a=1==(n>>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(r-15+o,8,a,!0),o<8?t.set(8,r-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(r-8,8,1,!0)}function f(e,r,n){const o=new i;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)}));const a=8*(t.getSymbolTotalCodewords(e)-s.getTotalCodewordsCount(e,r));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const c=(a-o.getLengthInBits())/8;for(let t=0;t<c;t++)o.put(t%2?17:236,8);return function(e,i,r){const n=t.getSymbolTotalCodewords(i),o=s.getTotalCodewordsCount(i,r),a=n-o,c=s.getBlocksCount(i,r),u=n%c,h=c-u,d=Math.floor(n/c),p=Math.floor(a/c),f=p+1,m=d-p,g=new l(m);let y=0;const v=new Array(c),b=new Array(c);let x=0;const A=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<h?p:f;v[t]=A.slice(y,y+e),b[t]=g.encode(v[t]),y+=e,x=Math.max(x,e)}const w=new Uint8Array(n);let I,E,_=0;for(I=0;I<x;I++)for(E=0;E<c;E++)I<v[E].length&&(w[_++]=v[E][I]);for(I=0;I<m;I++)for(E=0;E<c;E++)w[_++]=b[E][I];return w}(o,e,r)}function m(e,i,s,l){let u;if(Array.isArray(e))u=d.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=i;if(!t){const i=d.rawSplit(e);t=c.getBestVersionForData(i,s)}u=d.fromString(e,t||40)}}const h=c.getBestVersionForData(u,s);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(i){if(i<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else i=h;const m=f(i,s,u),g=t.getSymbolSize(i),y=new r(g);return function(t,e){const i=t.size,r=o.getPositions(e);for(let n=0;n<r.length;n++){const e=r[n][0],o=r[n][1];for(let r=-1;r<=7;r++)if(!(e+r<=-1||i<=e+r))for(let n=-1;n<=7;n++)o+n<=-1||i<=o+n||(r>=0&&r<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===r||6===r)||r>=2&&r<=4&&n>=2&&n<=4?t.set(e+r,o+n,!0,!0):t.set(e+r,o+n,!1,!0))}}(y,i),function(t){const e=t.size;for(let i=8;i<e-8;i++){const e=i%2==0;t.set(i,6,e,!0),t.set(6,i,e,!0)}}(y),function(t,e){const i=n.getPositions(e);for(let r=0;r<i.length;r++){const e=i[r][0],n=i[r][1];for(let i=-2;i<=2;i++)for(let r=-2;r<=2;r++)-2===i||2===i||-2===r||2===r||0===i&&0===r?t.set(e+i,n+r,!0,!0):t.set(e+i,n+r,!1,!0)}}(y,i),p(y,s,0),i>=7&&function(t,e){const i=t.size,r=c.getEncodedBits(e);let n,o,a;for(let s=0;s<18;s++)n=Math.floor(s/3),o=s%3+i-8-3,a=1==(r>>s&1),t.set(n,o,a,!0),t.set(o,n,a,!0)}(y,i),function(t,e){const i=t.size;let r=-1,n=i-1,o=7,a=0;for(let s=i-1;s>0;s-=2)for(6===s&&s--;;){for(let i=0;i<2;i++)if(!t.isReserved(n,s-i)){let r=!1;a<e.length&&(r=1==(e[a]>>>o&1)),t.set(n,s-i,r),o--,-1===o&&(a++,o=7)}if(n+=r,n<0||i<=n){n-=r,r=-r;break}}}(y,m),isNaN(l)&&(l=a.getBestMask(y,p.bind(null,y,s))),a.applyMask(l,y),p(y,s,l),{modules:y,version:i,errorCorrectionLevel:s,maskPattern:l,segments:u}}return de.create=function(i,r){if(void 0===i||""===i)throw new Error("No input text");let n,o,s=e.M;return void 0!==r&&(s=e.from(r.errorCorrectionLevel,e.M),n=c.from(r.version),o=a.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),m(i,n,s,o)},de}var fi,mi,gi={},yi={};function vi(){return fi||(fi=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 i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:r,scale:r?4:n,margin:i,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,i){const r=t.getScale(e,i);return Math.floor((e+2*i.margin)*r)},t.qrToImageData=function(e,i,r){const n=i.modules.size,o=i.modules.data,a=t.getScale(n,r),s=Math.floor((n+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let i=0;i<s;i++){let u=4*(t*s+i),h=r.color.light;if(t>=l&&i>=l&&t<s-l&&i<s-l){h=c[o[Math.floor((t-l)/a)*n+Math.floor((i-l)/a)]?1:0]}e[u++]=h.r,e[u++]=h.g,e[u++]=h.b,e[u]=h.a}}}(yi)),yi}function bi(){return mi||(mi=1,function(t){const e=vi();t.render=function(t,i,r){let n=r,o=i;void 0!==n||i&&i.getContext||(n=i,i=void 0),i||(o=function(){try{return document.createElement("canvas")}catch(ee){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=o.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,i,r){let n=r;void 0!==n||i&&i.getContext||(n=i,i=void 0),n||(n={});const o=t.render(e,i,n),a=n.type||"image/png",s=n.rendererOpts||{};return o.toDataURL(a,s.quality)}}(gi)),gi}var xi,Ai,wi={};function Ii(){if(xi)return wi;xi=1;const t=vi();function e(t,e){const i=t.a/255,r=e+'="'+t.hex+'"';return i<1?r+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function i(t,e,i){let r=t+e;return void 0!==i&&(r+=" "+i),r}return wi.render=function(r,n,o){const a=t.getOptions(n),s=r.modules.size,l=r.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+e(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",h="<path "+e(a.color.dark,"stroke")+' d="'+function(t,e,r){let n="",o=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(n+=a?i("M",c+r,.5+u+r):i("m",o,0),o=0,a=!1),c+1<e&&t[l+1]||(n+=i("h",s),s=0)):o++}return n}(l,s,a.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+d+' shape-rendering="crispEdges">'+u+h+"</svg>\n";return"function"==typeof o&&o(null,p),p},wi}var Ei=function(){if(Ai)return ce;Ai=1;const t=ue(),e=pi(),i=bi(),r=Ii();function n(i,r,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[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?(n=r,r=o=void 0):2!==l||r.getContext||(o=n,n=r,r=void 0),new Promise((function(t,a){try{const a=e.create(n,o);t(i(a,r,o))}catch(ee){a(ee)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=r,r=o=void 0):3===l&&(r.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=r,r=void 0));try{const t=e.create(n,o);a(null,i(t,r,o))}catch(ee){a(ee)}}return ce.create=e.create,ce.toCanvas=n.bind(null,i.render),ce.toDataURL=n.bind(null,i.renderToDataURL),ce.toString=n.bind(null,(function(t,e,i){return r.render(t,i)})),ce}();var _i=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Si=(t,e,i,r)=>{for(var n,o=r>1?void 0:r?Ci(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=(r?n(e,i,o):n(o))||o);return r&&o&&_i(e,i,o),o};let Mi=class extends st{constructor(){super(...arguments),this.qrLoaded=!1}updated(){const{originId:t,destinationId:e,generalConfig:i}=this.sdkData??{};if(!this.qrLoaded&&t&&e&&i){this.qrLoaded=!0;const{baseUrl:r}=i,n=`${r}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,o={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};Ei.toDataURL(n,o).then((t=>{const e=this.shadowRoot?.getElementById("qr");e&&e instanceof HTMLImageElement&&(e.src=t)}))}}render(){const{cameraInitialized:t}=this.sdkData??{};return Z`
|
|
239
226
|
<div class=${ee({card:!0,hidden:!t})}>
|
|
240
227
|
<div class="modal-content">
|
|
241
228
|
<div class="pin-container">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapvx/web-components",
|
|
3
3
|
"description": "MapVX Web Components is a web components library that provides interactive and accessible mapping solutions. Built with Lit, it offers a modern, lightweight, and framework-agnostic way to integrate maps into any web application.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.26",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Mapvx",
|
|
7
7
|
"homepage": "https://mapvx.com",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class CustomMap extends LitElement {
|
|
3
|
-
apiKey: string;
|
|
4
|
-
locale: string;
|
|
5
|
-
parentPlaceId: string;
|
|
6
|
-
originId: string;
|
|
7
|
-
destinationId: string;
|
|
8
|
-
private lzSDK;
|
|
9
|
-
private mapLoaded;
|
|
10
|
-
private loadMap;
|
|
11
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=custom-map.d.ts.map
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { initializeSDK } from '@lzdevelopers/my-maps-js';
|
|
8
|
-
import { LitElement, html } from 'lit';
|
|
9
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
10
|
-
let CustomMap = class CustomMap extends LitElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.apiKey = '';
|
|
14
|
-
this.locale = 'es';
|
|
15
|
-
this.parentPlaceId = '';
|
|
16
|
-
this.originId = '';
|
|
17
|
-
this.destinationId = '';
|
|
18
|
-
this.mapLoaded = false;
|
|
19
|
-
}
|
|
20
|
-
loadMap() {
|
|
21
|
-
this.lzSDK = initializeSDK(this.apiKey, { lang: this.locale });
|
|
22
|
-
const mapContainer = document.querySelector('#map');
|
|
23
|
-
if (mapContainer) {
|
|
24
|
-
const mapConfig = {
|
|
25
|
-
zoom: 17,
|
|
26
|
-
parentPlaceId: this.parentPlaceId,
|
|
27
|
-
center: {
|
|
28
|
-
lat: -33.41775447136968,
|
|
29
|
-
lng: -70.60683493677072,
|
|
30
|
-
},
|
|
31
|
-
minZoom: 15,
|
|
32
|
-
maxZoom: 22,
|
|
33
|
-
};
|
|
34
|
-
this.lzSDK.createMap(mapContainer, mapConfig);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
if (!this.mapLoaded && this.apiKey.length > 0) {
|
|
39
|
-
this.loadMap();
|
|
40
|
-
this.mapLoaded = true;
|
|
41
|
-
}
|
|
42
|
-
return html ` <div id="map"></div> `;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
__decorate([
|
|
46
|
-
property({ type: String })
|
|
47
|
-
], CustomMap.prototype, "apiKey", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
property({ type: String })
|
|
50
|
-
], CustomMap.prototype, "locale", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
property({ type: String })
|
|
53
|
-
], CustomMap.prototype, "parentPlaceId", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
property({ type: String })
|
|
56
|
-
], CustomMap.prototype, "originId", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
property({ type: String })
|
|
59
|
-
], CustomMap.prototype, "destinationId", void 0);
|
|
60
|
-
CustomMap = __decorate([
|
|
61
|
-
customElement('custom-map')
|
|
62
|
-
], CustomMap);
|
|
63
|
-
export { CustomMap };
|
|
64
|
-
//# sourceMappingURL=custom-map.js.map
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from 'lit';
|
|
8
|
-
import { customElement, state } from 'lit/decorators.js';
|
|
9
|
-
let FloorSelector = class FloorSelector extends LitElement {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.currentFloor = 1;
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return html `
|
|
16
|
-
<div class="flex flex-col gap-2 bg-white p-4 rounded-lg shadow-md">
|
|
17
|
-
<button
|
|
18
|
-
class="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600"
|
|
19
|
-
@click=${() => this.currentFloor++}
|
|
20
|
-
>
|
|
21
|
-
⬆️ Subir (${this.currentFloor})
|
|
22
|
-
</button>
|
|
23
|
-
<button
|
|
24
|
-
class="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600"
|
|
25
|
-
@click=${() => (this.currentFloor = Math.max(1, this.currentFloor - 1))}
|
|
26
|
-
>
|
|
27
|
-
⬇️ Bajar
|
|
28
|
-
</button>
|
|
29
|
-
</div>
|
|
30
|
-
`;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
__decorate([
|
|
34
|
-
state()
|
|
35
|
-
], FloorSelector.prototype, "currentFloor", void 0);
|
|
36
|
-
FloorSelector = __decorate([
|
|
37
|
-
customElement('floor-selector')
|
|
38
|
-
], FloorSelector);
|
|
39
|
-
export { FloorSelector };
|
|
40
|
-
//# sourceMappingURL=floor-selector.js.map
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, css } from 'lit';
|
|
8
|
-
import { customElement, state } from 'lit/decorators.js';
|
|
9
|
-
let QRModal = class QRModal extends LitElement {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.isOpen = false;
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return html `
|
|
16
|
-
<div class="relative">
|
|
17
|
-
<button
|
|
18
|
-
@click=${() => (this.isOpen = true)}
|
|
19
|
-
class="px-4 py-2 bg-purple-500 text-white rounded-lg hover:bg-purple-600"
|
|
20
|
-
>
|
|
21
|
-
📱 Mostrar QR
|
|
22
|
-
</button>
|
|
23
|
-
|
|
24
|
-
${this.isOpen
|
|
25
|
-
? html `
|
|
26
|
-
<div class="modal" @click=${() => (this.isOpen = false)}>
|
|
27
|
-
<div
|
|
28
|
-
class="bg-white p-6 rounded-lg shadow-xl"
|
|
29
|
-
@click=${(e) => e.stopPropagation()}
|
|
30
|
-
>
|
|
31
|
-
<h3 class="text-lg font-bold mb-4">Escanea el código QR</h3>
|
|
32
|
-
<div class="w-48 h-48 bg-gray-200 flex items-center justify-center">
|
|
33
|
-
<span class="text-4xl">📱</span>
|
|
34
|
-
</div>
|
|
35
|
-
<button
|
|
36
|
-
@click=${() => (this.isOpen = false)}
|
|
37
|
-
class="mt-4 px-4 py-2 bg-gray-500 text-white rounded hover:bg-gray-600"
|
|
38
|
-
>
|
|
39
|
-
Cerrar
|
|
40
|
-
</button>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
`
|
|
44
|
-
: null}
|
|
45
|
-
</div>
|
|
46
|
-
`;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
QRModal.styles = css `
|
|
50
|
-
.modal {
|
|
51
|
-
background: rgba(16, 143, 33, 0.5);
|
|
52
|
-
position: fixed;
|
|
53
|
-
top: 0;
|
|
54
|
-
left: 0;
|
|
55
|
-
right: 0;
|
|
56
|
-
bottom: 0;
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
|
-
__decorate([
|
|
63
|
-
state()
|
|
64
|
-
], QRModal.prototype, "isOpen", void 0);
|
|
65
|
-
QRModal = __decorate([
|
|
66
|
-
customElement('qr-modal')
|
|
67
|
-
], QRModal);
|
|
68
|
-
export { QRModal };
|
|
69
|
-
//# sourceMappingURL=qr-modal.js.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from 'lit';
|
|
8
|
-
import { customElement, state } from 'lit/decorators.js';
|
|
9
|
-
let RouteOptions = class RouteOptions extends LitElement {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.selectedOption = 'fastest';
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return html `
|
|
16
|
-
<div class="bg-white p-4 rounded-lg shadow-md">
|
|
17
|
-
<h3 class="text-lg font-bold mb-4">Opciones de Ruta</h3>
|
|
18
|
-
<div class="space-y-2">
|
|
19
|
-
<label class="flex items-center space-x-2">
|
|
20
|
-
<input
|
|
21
|
-
type="radio"
|
|
22
|
-
name="route"
|
|
23
|
-
value="fastest"
|
|
24
|
-
?checked=${this.selectedOption === 'fastest'}
|
|
25
|
-
@change=${(e) => (this.selectedOption = e.target.value)}
|
|
26
|
-
/>
|
|
27
|
-
<span>🚀 Más rápida</span>
|
|
28
|
-
</label>
|
|
29
|
-
<label class="flex items-center space-x-2">
|
|
30
|
-
<input
|
|
31
|
-
type="radio"
|
|
32
|
-
name="route"
|
|
33
|
-
value="accessible"
|
|
34
|
-
?checked=${this.selectedOption === 'accessible'}
|
|
35
|
-
@change=${(e) => (this.selectedOption = e.target.value)}
|
|
36
|
-
/>
|
|
37
|
-
<span>♿ Accesible</span>
|
|
38
|
-
</label>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
`;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
__decorate([
|
|
45
|
-
state()
|
|
46
|
-
], RouteOptions.prototype, "selectedOption", void 0);
|
|
47
|
-
RouteOptions = __decorate([
|
|
48
|
-
customElement('route-options')
|
|
49
|
-
], RouteOptions);
|
|
50
|
-
export { RouteOptions };
|
|
51
|
-
//# sourceMappingURL=route-options.js.map
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from 'lit';
|
|
8
|
-
import { customElement, state } from 'lit/decorators.js';
|
|
9
|
-
let ZoomControls = class ZoomControls extends LitElement {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.zoomLevel = 100;
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return html `
|
|
16
|
-
<div class="flex flex-col gap-2 bg-white p-3 rounded-lg shadow-md">
|
|
17
|
-
<button
|
|
18
|
-
class="p-2 bg-gray-100 hover:bg-gray-200 rounded-lg"
|
|
19
|
-
@click=${() => (this.zoomLevel += 10)}
|
|
20
|
-
>
|
|
21
|
-
🔍+ (${this.zoomLevel}%)
|
|
22
|
-
</button>
|
|
23
|
-
<button
|
|
24
|
-
class="p-2 bg-gray-100 hover:bg-gray-200 rounded-lg"
|
|
25
|
-
@click=${() => (this.zoomLevel = Math.max(50, this.zoomLevel - 10))}
|
|
26
|
-
>
|
|
27
|
-
🔍-
|
|
28
|
-
</button>
|
|
29
|
-
</div>
|
|
30
|
-
`;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
__decorate([
|
|
34
|
-
state()
|
|
35
|
-
], ZoomControls.prototype, "zoomLevel", void 0);
|
|
36
|
-
ZoomControls = __decorate([
|
|
37
|
-
customElement('zoom-controls')
|
|
38
|
-
], ZoomControls);
|
|
39
|
-
export { ZoomControls };
|
|
40
|
-
//# sourceMappingURL=zoom-controls.js.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import './components/custom-map.js';
|
|
3
|
-
import './components/floor-selector.js';
|
|
4
|
-
import './components/qr-modal.js';
|
|
5
|
-
import './components/route-options.js';
|
|
6
|
-
import './components/zoom-controls.js';
|
|
7
|
-
export declare class RouteViewTotems extends LitElement {
|
|
8
|
-
styles: import("lit").CSSResult[];
|
|
9
|
-
apiKey: string;
|
|
10
|
-
parentPlaceId: string;
|
|
11
|
-
locale: string;
|
|
12
|
-
originId: string;
|
|
13
|
-
destinationId: string;
|
|
14
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=route-view-totems.d.ts.map
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, css } from 'lit';
|
|
8
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
-
import { tailwindStyles } from './utils/styles';
|
|
10
|
-
import './components/custom-map.js';
|
|
11
|
-
import './components/floor-selector.js';
|
|
12
|
-
import './components/qr-modal.js';
|
|
13
|
-
import './components/route-options.js';
|
|
14
|
-
import './components/zoom-controls.js';
|
|
15
|
-
let RouteViewTotems = class RouteViewTotems extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.styles = [tailwindStyles, css ``];
|
|
19
|
-
this.apiKey = '';
|
|
20
|
-
this.parentPlaceId = '';
|
|
21
|
-
this.locale = 'es';
|
|
22
|
-
this.originId = '';
|
|
23
|
-
this.destinationId = '';
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
return html `
|
|
27
|
-
<div class="flex flex-col items-center justify-center h-full">
|
|
28
|
-
<custom-map
|
|
29
|
-
apiKey="${this.apiKey}"
|
|
30
|
-
parentPlaceId="${this.parentPlaceId}"
|
|
31
|
-
locale="${this.locale}"
|
|
32
|
-
originId="${this.originId}"
|
|
33
|
-
destinationId="${this.destinationId}"
|
|
34
|
-
></custom-map>
|
|
35
|
-
</div>
|
|
36
|
-
`;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
__decorate([
|
|
40
|
-
property({ type: String })
|
|
41
|
-
], RouteViewTotems.prototype, "apiKey", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
property({ type: String })
|
|
44
|
-
], RouteViewTotems.prototype, "parentPlaceId", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
property({ type: String })
|
|
47
|
-
], RouteViewTotems.prototype, "locale", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
property({ type: String })
|
|
50
|
-
], RouteViewTotems.prototype, "originId", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
property({ type: String })
|
|
53
|
-
], RouteViewTotems.prototype, "destinationId", void 0);
|
|
54
|
-
RouteViewTotems = __decorate([
|
|
55
|
-
customElement('route-view-totems')
|
|
56
|
-
], RouteViewTotems);
|
|
57
|
-
export { RouteViewTotems };
|
|
58
|
-
//# sourceMappingURL=route-view-totems.js.map
|
package/dist/utils/styles.d.ts
DELETED