@mapvx/web-components-ssr 1.5.0 → 1.5.1-dev.1
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/browser/main.js +1 -1
- package/package.json +1 -1
package/dist/browser/main.js
CHANGED
|
@@ -1993,7 +1993,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1993
1993
|
`);n.setAttribute(Ep,``),n.innerHTML=m}};function iz(t){t()}function v7(t,e){var n=typeof e==`function`?e:p2;if(t.length===0)n();else{var o=iz;xt.mutateApproach===Xre&&(o=gu.requestAnimationFrame||iz),o(function(){var c=Hie(),s=pM.begin(`mutate`);t.map(c),s(),n()})}}var hM=!1;function _7(){hM=!0}function eM(){hM=!1}var g2=null;function oz(t){if(j8&&xt.observeMutations){var e=t.treeCallback,n=e===void 0?p2:e,o=t.nodeCallback,c=o===void 0?p2:o,s=t.pseudoElementsCallback,m=s===void 0?p2:s,x=t.observeMutationsRoot,I=x===void 0?Zn:x;g2=new j8(function(P){if(!hM){var N=yu();cm(P).forEach(function(B){if(B.type===`childList`&&B.addedNodes.length>0&&!rz(B.addedNodes[0])&&(xt.searchPseudoElements&&m(B.target),n(B.target)),B.type===`attributes`&&B.target.parentNode&&xt.searchPseudoElements&&m([B.target],!0),B.type===`attributes`&&rz(B.target)&&~nie.indexOf(B.attributeName))if(B.attributeName===`class`&&jie(B.target)){var Z=b2(aM(B.target)),q=Z.prefix,ue=Z.iconName;B.target.setAttribute(iM,q||N),ue&&B.target.setAttribute(oM,ue)}else $ie(B.target)&&c(B.target)})}}),Xl&&g2.observe(I,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Zie(){g2&&g2.disconnect()}function Yie(t){var e=t.getAttribute(`style`),n=[];return e&&(n=e.split(`;`).reduce(function(o,c){var s=c.split(`:`),m=s[0],x=s.slice(1);return m&&x.length>0&&(o[m]=x.join(`:`).trim()),o},{})),n}function Xie(t){var e=t.getAttribute(`data-prefix`),n=t.getAttribute(`data-icon`),o=t.innerText!==void 0?t.innerText.trim():``,c=b2(aM(t));return c.prefix||(c.prefix=yu()),e&&n&&(c.prefix=e,c.iconName=n),c.iconName&&c.prefix||(c.prefix&&o.length>0&&(c.iconName=bie(c.prefix,t.innerText)||uM(c.prefix,o7(t.innerText))),!c.iconName&&xt.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(c.iconName=t.firstChild.data)),c}function Kie(t){return cm(t.attributes).reduce(function(n,o){return n.name!==`class`&&n.name!==`style`&&(n[o.name]=o.value),n},{})}function Qie(){return{iconName:null,prefix:null,transform:Ba,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function sz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Xie(t),o=n.iconName,c=n.prefix,s=n.rest,m=Kie(t),x=YA(`parseNodeAttributes`,{},t);return He({iconName:o,prefix:c,transform:Ba,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:e.styleParser?Yie(t):[],attributes:m}},x)}var Jie=Ws.styles;function b7(t){var e=xt.autoReplaceSvg===`nest`?sz(t,{styleParser:!1}):sz(t);return~e.extra.classes.indexOf(Jz)?vu(`generateLayersText`,t,e):vu(`generateSvgReplacementMutation`,t,e)}function eoe(){return[].concat(Zs(Gz),Zs(qz))}function az(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Xl)return Promise.resolve();var n=Zn.documentElement.classList,o=function(B){return n.add(``.concat(G8,`-`).concat(B))},c=function(B){return n.remove(``.concat(G8,`-`).concat(B))},s=xt.autoFetchSvg?eoe():xz.concat(Object.keys(Jie));s.includes(`fa`)||s.push(`fa`);var m=[`.`.concat(Jz,`:not([`).concat(Ep,`])`)].concat(s.map(function(N){return`.`.concat(N,`:not([`).concat(Ep,`])`)})).join(`, `);if(m.length===0)return Promise.resolve();var x=[];try{x=cm(t.querySelectorAll(m))}catch{}if(x.length>0)o(`pending`),c(`complete`);else return Promise.resolve();var I=pM.begin(`onTree`),P=x.reduce(function(N,B){try{var Z=b7(B);Z&&N.push(Z)}catch(q){Kz||q.name===`MissingIcon`&&console.error(q)}return N},[]);return new Promise(function(N,B){Promise.all(P).then(function(Z){v7(Z,function(){o(`active`),o(`complete`),c(`pending`),typeof e==`function`&&e(),I(),N()})}).catch(function(Z){I(),B(Z)})})}function toe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;b7(t).then(function(n){n&&v7([n],e)})}function noe(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(e||{}).icon?e:XA(e||{}),c=n.mask;return c&&(c=(c||{}).icon?c:XA(c||{})),t(o,He(He({},n),{},{mask:c}))}}var roe=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.transform,c=o===void 0?Ba:o,s=n.symbol,m=s===void 0?!1:s,x=n.mask,I=x===void 0?null:x,P=n.maskId,N=P===void 0?null:P,B=n.classes,Z=B===void 0?[]:B,q=n.attributes,ue=q===void 0?{}:q,_e=n.styles,he=_e===void 0?{}:_e;if(e){var Pe=e.prefix,Ke=e.iconName,ot=e.icon;return x2(He({type:`icon`},e),function(){return Ip(`beforeDOMElementCreation`,{iconDefinition:e,params:n}),dM({icons:{main:KA(ot),mask:I?KA(I.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Pe,iconName:Ke,transform:He(He({},Ba),c),symbol:m,maskId:N,extra:{attributes:ue,styles:he,classes:Z}})})}};var ioe={mixout:function(){return{icon:noe(roe)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=az,n.nodeCallback=toe,n}}},provides:function(e){e.i2svg=function(n){var o=n.node,c=o===void 0?Zn:o,s=n.callback;return az(c,s===void 0?function(){}:s)},e.generateSvgReplacementMutation=function(n,o){var c=o.iconName,s=o.prefix,m=o.transform,x=o.symbol,I=o.mask,P=o.maskId,N=o.extra;return new Promise(function(B,Z){Promise.all([QA(c,s),I.iconName?QA(I.iconName,I.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(q){var ue=y2(q,2),_e=ue[0],he=ue[1];B([n,dM({icons:{main:_e,mask:he},prefix:s,iconName:c,transform:m,symbol:x,maskId:P,extra:N,watchable:!0})])}).catch(Z)})},e.generateAbstractIcon=function(n){var o=n.children,c=n.attributes,s=n.main,m=n.transform,x=n.styles,I=v2(x);I.length>0&&(c.style=I);var P;return lM(m)&&(P=vu(`generateAbstractTransformGrouping`,{main:s,transform:m,containerWidth:s.width,iconWidth:s.width})),o.push(P||s.icon),{children:o,attributes:c}}}};var ooe={mixout:function(){return{layer:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=o.classes,s=c===void 0?[]:c;return x2({type:`layer`},function(){Ip(`beforeDOMElementCreation`,{assembler:n,params:o});var m=[];return n(function(x){Array.isArray(x)?x.map(function(I){m=m.concat(I.abstract)}):m=m.concat(x.abstract)}),[{tag:`span`,attributes:{class:[``.concat(xt.cssPrefix,`-layers`)].concat(Zs(s)).join(` `)},children:m}]})}}}};var soe={mixout:function(){return{counter:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=o.title,s=c===void 0?null:c,m=o.classes,x=m===void 0?[]:m,I=o.attributes,P=I===void 0?{}:I,N=o.styles,B=N===void 0?{}:N;return x2({type:`counter`,content:n},function(){return Ip(`beforeDOMElementCreation`,{content:n,params:o}),zie({content:n.toString(),title:s,extra:{attributes:P,styles:B,classes:[``.concat(xt.cssPrefix,`-layers-counter`)].concat(Zs(x))}})})}}}};var aoe={mixout:function(){return{text:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=o.transform,s=c===void 0?Ba:c,m=o.classes,x=m===void 0?[]:m,I=o.attributes,P=I===void 0?{}:I,N=o.styles,B=N===void 0?{}:N;return x2({type:`text`,content:n},function(){return Ip(`beforeDOMElementCreation`,{content:n,params:o}),tz({content:n,transform:He(He({},Ba),s),extra:{attributes:P,styles:B,classes:[``.concat(xt.cssPrefix,`-layers-text`)].concat(Zs(x))}})})}}},provides:function(e){e.generateLayersText=function(n,o){var c=o.transform,s=o.extra,m=null,x=null;if(_z){var I=parseInt(getComputedStyle(n).fontSize,10),P=n.getBoundingClientRect();m=P.width/I,x=P.height/I}return Promise.resolve([n,tz({content:n.innerHTML,width:m,height:x,transform:c,extra:s,watchable:!0})])}}};var x7=new RegExp(`"`,`ug`);var lz=[1105920,1112319];var cz=He(He(He(He({},{FontAwesome:{normal:`fas`,400:`fas`}}),Pne),Zre),Une);var tM=Object.keys(cz).reduce(function(t,e){return t[e.toLowerCase()]=cz[e],t},{});var loe=Object.keys(tM).reduce(function(t,e){var n=tM[e];return t[e]=n[900]||Zs(Object.entries(n))[0][1],t},{});function coe(t){return o7(Zs(t.replace(x7,``))[0]||``)}function uoe(t){var e=t.getPropertyValue(`font-feature-settings`).includes(`ss01`),o=t.getPropertyValue(`content`).replace(x7,``),c=o.codePointAt(0),s=c>=lz[0]&&c<=lz[1],m=o.length===2?o[0]===o[1]:!1;return s||m||e}function doe(t,e){var n=t.replace(/^['"]|['"]$/g,``).toLowerCase(),o=parseInt(e),c=isNaN(o)?`normal`:o;return(tM[n]||{})[c]||loe[n]}function uz(t,e){var n=``.concat(Yre).concat(e.replace(`:`,`-`));return new Promise(function(o,c){if(t.getAttribute(n)!==null)return o();var m=cm(t.children).filter(function(st){return st.getAttribute(HA)===e})[0],x=gu.getComputedStyle(t,e),I=x.getPropertyValue(`font-family`),P=I.match(eie),N=x.getPropertyValue(`font-weight`),B=x.getPropertyValue(`content`);if(m&&!P)return t.removeChild(m),o();if(P&&B!==`none`&&B!==``){var Z=x.getPropertyValue(`content`),q=doe(I,N),ue=coe(Z),_e=P[0].startsWith(`FontAwesome`),he=uoe(x),Pe=uM(q,ue),Ke=Pe;if(_e){var ot=xie(ue);ot.iconName&&ot.prefix&&(Pe=ot.iconName,q=ot.prefix)}if(Pe&&!he&&(!m||m.getAttribute(iM)!==q||m.getAttribute(oM)!==Ke)){t.setAttribute(n,Ke),m&&t.removeChild(m);var Zt=Qie(),qt=Zt.extra;qt.attributes[HA]=e,QA(Pe,q).then(function(st){var ee=dM(He(He({},Zt),{},{icons:{main:st,mask:f7()},prefix:q,iconName:Ke,extra:qt,watchable:!0})),de=Zn.createElementNS(`http://www.w3.org/2000/svg`,`svg`);e===`::before`?t.insertBefore(de,t.firstChild):t.appendChild(de),de.outerHTML=ee.map(function(me){return qv(me)}).join(`
|
|
1994
1994
|
`),t.removeAttribute(n),o()}).catch(c)}else o()}else o()})}function poe(t){return Promise.all([uz(t,`::before`),uz(t,`::after`)])}function hoe(t){return t.parentNode!==document.head&&!~Kre.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(HA)&&(!t.parentNode||t.parentNode.tagName!==`svg`)}var foe=function(e){return!!e&&Xz.some(function(n){return e.includes(n)})};var moe=function(e){if(!e)return[];var n=new Set,o=e.split(/,(?![^()]*\))/).map(function(I){return I.trim()});o=o.flatMap(function(I){return I.includes(`(`)?I:I.split(`,`).map(function(P){return P.trim()})});var c=d2(o),s;try{for(c.s();!(s=c.n()).done;){var m=s.value;if(foe(m)){var x=Xz.reduce(function(I,P){return I.replace(P,``)},m);x!==``&&x!==`*`&&n.add(x)}}}catch(I){c.e(I)}finally{c.f()}return n};function dz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Xl){var n;if(e)n=t;else if(xt.searchPseudoElementsFullScan)n=t.querySelectorAll(`*`);else{var o=new Set,c=d2(document.styleSheets),s;try{for(c.s();!(s=c.n()).done;){var m=s.value;try{var x=d2(m.cssRules),I;try{for(x.s();!(I=x.n()).done;){var P=I.value,B=d2(moe(P.selectorText)),Z;try{for(B.s();!(Z=B.n()).done;){var q=Z.value;o.add(q)}}catch(_e){B.e(_e)}finally{B.f()}}}catch(_e){x.e(_e)}finally{x.f()}}catch(_e){xt.searchPseudoElementsWarnings&&console.warn(`Font Awesome: cannot parse stylesheet: `.concat(m.href,` (`).concat(_e.message,`)
|
|
1995
1995
|
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(_e){c.e(_e)}finally{c.f()}if(!o.size)return;var ue=Array.from(o).join(`, `);try{n=t.querySelectorAll(ue)}catch{}}return new Promise(function(_e,he){var Pe=cm(n).filter(hoe).map(poe),Ke=pM.begin(`searchPseudoElements`);_7(),Promise.all(Pe).then(function(){Ke(),eM(),_e()}).catch(function(){Ke(),eM(),he()})})}}var goe={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=dz,n}}},provides:function(e){e.pseudoElements2svg=function(n){var o=n.node,c=o===void 0?Zn:o;xt.searchPseudoElements&&dz(c)}}};var pz=!1;var yoe={mixout:function(){return{dom:{unwatch:function(){_7(),pz=!0}}}},hooks:function(){return{bootstrap:function(){oz(YA(`mutationObserverCallbacks`,{}))},noAuto:function(){Zie()},watch:function(n){var o=n.observeMutationsRoot;pz?eM():oz(YA(`mutationObserverCallbacks`,{observeMutationsRoot:o}))}}}};var hz=function(e){return e.toLowerCase().split(` `).reduce(function(o,c){var s=c.toLowerCase().split(`-`),m=s[0],x=s.slice(1).join(`-`);if(m&&x===`h`)return o.flipX=!0,o;if(m&&x===`v`)return o.flipY=!0,o;if(x=parseFloat(x),isNaN(x))return o;switch(m){case`grow`:o.size=o.size+x;break;case`shrink`:o.size=o.size-x;break;case`left`:o.x=o.x-x;break;case`right`:o.x=o.x+x;break;case`up`:o.y=o.y-x;break;case`down`:o.y=o.y+x;break;case`rotate`:o.rotate=o.rotate+x;break}return o},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})};var voe={mixout:function(){return{parse:{transform:function(n){return hz(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,o){var c=o.getAttribute(`data-fa-transform`);return c&&(n.transform=hz(c)),n}}},provides:function(e){e.generateAbstractTransformGrouping=function(n){var o=n.main,c=n.transform,s=n.containerWidth,m=n.iconWidth,x={transform:`translate(`.concat(s/2,` 256)`)},I=`translate(`.concat(c.x*32,`, `).concat(c.y*32,`) `),P=`scale(`.concat(c.size/16*(c.flipX?-1:1),`, `).concat(c.size/16*(c.flipY?-1:1),`) `),N=`rotate(`.concat(c.rotate,` 0 0)`),q={outer:x,inner:{transform:``.concat(I,` `).concat(P,` `).concat(N)},path:{transform:`translate(`.concat(m/2*-1,` -256)`)}};return{tag:`g`,attributes:He({},q.outer),children:[{tag:`g`,attributes:He({},q.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:He(He({},o.icon.attributes),q.path)}]}]}}}};var UA={x:0,y:0,width:`100%`,height:`100%`};function fz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill=`black`),t}function _oe(t){return t.tag===`g`?t.children:[t]}Mie([hie,ioe,ooe,soe,aoe,goe,yoe,voe,{hooks:function(){return{parseNodeAttributes:function(n,o){var c=o.getAttribute(`data-fa-mask`),s=c?b2(c.split(` `).map(function(m){return m.trim()})):f7();return s.prefix||(s.prefix=yu()),n.mask=s,n.maskId=o.getAttribute(`data-fa-mask-id`),n}}},provides:function(e){e.generateAbstractMask=function(n){var o=n.children,c=n.attributes,s=n.main,m=n.mask,x=n.maskId,I=n.transform,P=s.width,N=s.icon,B=m.width,Z=m.icon,q=uie({transform:I,containerWidth:B,iconWidth:P}),ue={tag:`rect`,attributes:He(He({},UA),{},{fill:`white`})},_e=N.children?{children:N.children.map(fz)}:{},he={tag:`g`,attributes:He({},q.inner),children:[fz(He({tag:N.tag,attributes:He(He({},N.attributes),q.path)},_e))]},Pe={tag:`g`,attributes:He({},q.outer),children:[he]},Ke=`mask-`.concat(x||Z8()),ot=`clip-`.concat(x||Z8()),Zt={tag:`mask`,attributes:He(He({},UA),{},{id:Ke,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[ue,Pe]},qt={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:ot},children:_oe(Z)},Zt]};return o.push(qt,{tag:`rect`,attributes:He({fill:`currentColor`,"clip-path":`url(#`.concat(ot,`)`),mask:`url(#`.concat(Ke,`)`)},UA)}),{children:o,attributes:c}}}},{provides:function(e){var n=!1;gu.matchMedia&&(n=gu.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){var o=[],c={fill:`currentColor`},s={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};o.push({tag:`path`,attributes:He(He({},c),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});var m=He(He({},s),{},{attributeName:`opacity`}),x={tag:`circle`,attributes:He(He({},c),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return n||x.children.push({tag:`animate`,attributes:He(He({},s),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:He(He({},m),{},{values:`1;0;1;1;0;1;`})}),o.push(x),o.push({tag:`path`,attributes:He(He({},c),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:n?[]:[{tag:`animate`,attributes:He(He({},m),{},{values:`1;0;0;0;0;1;`})}]}),n||o.push({tag:`path`,attributes:He(He({},c),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:He(He({},m),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:o}}}},{hooks:function(){return{parseNodeAttributes:function(n,o){var c=o.getAttribute(`data-fa-symbol`);return n.symbol=c===null?!1:c===``?!0:c,n}}}}],{mixoutsTo:$o});$o.noAuto;var w2=$o.config;$o.library;var w7=$o.dom;var S7=$o.parse;$o.findIconDefinition;$o.toHtml;var S2=$o.icon;var fM=$o.layer;$o.text;$o.counter;var Toe=[`*`];var Coe=(()=>{class t{defaultPrefix=`fas`;fallbackIcon=null;fixedWidth;set autoAddCss(n){w2.autoAddCss=n,this._autoAddCss=n}get autoAddCss(){return this._autoAddCss}_autoAddCss=!0;static ɵfac=function(o){return new(o||t)};static ɵprov=ct({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var Wv=(()=>{class t{definitions={};addIcons(...n){for(let o of n){o.prefix in this.definitions||(this.definitions[o.prefix]={}),this.definitions[o.prefix][o.iconName]=o;for(let c of o.icon[2])typeof c==`string`&&(this.definitions[o.prefix][c]=o)}}addIconPacks(...n){for(let o of n){let c=Object.keys(o).map(s=>o[s]);this.addIcons(...c)}}getIconDefinition(n,o){return n in this.definitions&&o in this.definitions[n]?this.definitions[n][o]:null}static ɵfac=function(o){return new(o||t)};static ɵprov=ct({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var Doe=t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)};var Aoe=()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")};var I7=t=>t!=null&&(t===90||t===180||t===270||t===`90`||t===`180`||t===`270`);var Moe=t=>{let e=I7(t.rotate),n={[`fa-${t.animation}`]:t.animation!=null&&!t.animation.startsWith(`spin`),"fa-spin":t.animation===`spin`||t.animation===`spin-reverse`,"fa-spin-pulse":t.animation===`spin-pulse`||t.animation===`spin-pulse-reverse`,"fa-spin-reverse":t.animation===`spin-reverse`||t.animation===`spin-pulse-reverse`,"fa-pulse":t.animation===`spin-pulse`||t.animation===`spin-pulse-reverse`,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":t.flip===`horizontal`||t.flip===`both`,"fa-flip-vertical":t.flip===`vertical`||t.flip===`both`,[`fa-${t.size}`]:t.size!=null,[`fa-rotate-${t.rotate}`]:e,"fa-rotate-by":t.rotate!=null&&!e,[`fa-pull-${t.pull}`]:t.pull!=null,[`fa-stack-${t.stackItemSize}`]:t.stackItemSize!=null};return Object.keys(n).map(o=>n[o]?o:null).filter(o=>o!=null)};var mM=new WeakSet;var E7=`fa-auto-css`;function Poe(t,e,n){if(!e.autoAddCss||mM.has(t))return;if(t.getElementById(E7)!=null){e.autoAddCss=!1,mM.add(t);return}let o=t.createElement(`style`);o.setAttribute(`type`,`text/css`),o.setAttribute(`id`,E7),n&&o.setAttribute(`nonce`,n),o.innerHTML=w7.css();let c=t.head.childNodes,s=null;for(let m=c.length-1;m>-1;m--){let x=c[m],I=x.nodeName.toUpperCase();[`STYLE`,`LINK`].indexOf(I)>-1&&(s=x)}t.head.insertBefore(o,s),e.autoAddCss=!1,mM.add(t)}var Roe=t=>t.prefix!==void 0&&t.iconName!==void 0;var koe=(t,e)=>Roe(t)?t:Array.isArray(t)&&t.length===2?{prefix:t[0],iconName:t[1]}:{prefix:e,iconName:t};var Ooe=(()=>{class t{stackItemSize=Wt(`1x`);size=Wt();_effect=Ot(()=>{if(this.size())throw new Error(`fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.`)});static ɵfac=function(o){return new(o||t)};static ɵdir=Ol({type:t,selectors:[[`fa-icon`,`stackItemSize`,``],[`fa-duotone-icon`,`stackItemSize`,``]],inputs:{stackItemSize:[1,`stackItemSize`],size:[1,`size`]}})}return t})();var Noe=(()=>{class t{size=Wt();classes=Xe(()=>{let n=this.size();return s(r({},n?{[`fa-${n}`]:!0}:{}),{"fa-stack":!0})});static ɵfac=function(o){return new(o||t)};static ɵcmp=ft({type:t,selectors:[[`fa-stack`]],hostVars:2,hostBindings:function(o,c){o&2&&FT(c.classes())},inputs:{size:[1,`size`]},ngContentSelectors:Toe,decls:1,vars:0,template:function(o,c){o&1&&(Nl(),Ll(0))},encapsulation:2})}return t})();var rn=(()=>{class t{icon=ro();title=ro();animation=ro();mask=ro();flip=ro();size=ro();pull=ro();border=ro();inverse=ro();symbol=ro();rotate=ro();fixedWidth=ro();transform=ro();a11yRole=ro();renderedIconHTML=Xe(()=>{let n=this.icon()??this.config.fallbackIcon;if(!n)return Aoe(),``;let o=this.findIconDefinition(n);if(!o)return``;let c=this.buildParams();Poe(this.document,this.config,this.cspNonce);let s=S2(o,c);return this.sanitizer.bypassSecurityTrustHtml(s.html.join(`
|
|
1996
|
-
`))});cspNonce=se(hf);document=se(Sn);sanitizer=se(Vy);config=se(Coe);iconLibrary=se(Wv);stackItem=se(Ooe,{optional:!0});stack=se(Noe,{optional:!0});constructor(){this.stack!=null&&this.stackItem==null&&console.error(`FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x" />.`)}findIconDefinition(n){let o=koe(n,this.config.defaultPrefix);if(`icon`in o)return o;return this.iconLibrary.getIconDefinition(o.prefix,o.iconName)??(Doe(o),null)}buildParams(){let n=this.fixedWidth(),o={flip:this.flip(),animation:this.animation(),border:this.border(),inverse:this.inverse(),size:this.size(),pull:this.pull(),rotate:this.rotate(),fixedWidth:typeof n==`boolean`?n:this.config.fixedWidth,stackItemSize:this.stackItem!=null?this.stackItem.stackItemSize():void 0},c=this.transform(),s=typeof c==`string`?S7.transform(c):c,m=this.mask(),x=m!=null?this.findIconDefinition(m):null,I={},P=this.a11yRole();P!=null&&(I.role=P);let N={};return o.rotate!=null&&!I7(o.rotate)&&(N[`--fa-rotate-angle`]=`${o.rotate}`),{title:this.title(),transform:s,classes:Moe(o),mask:x??void 0,symbol:this.symbol(),attributes:I,styles:N}}static ɵfac=function(o){return new(o||t)};static ɵcmp=ft({type:t,selectors:[[`fa-icon`]],hostAttrs:[1,`ng-fa-icon`],hostVars:2,hostBindings:function(o,c){o&2&&(m1(`innerHTML`,c.renderedIconHTML(),Xc),Dy(`title`,c.title()??void 0))},inputs:{icon:[1,`icon`],title:[1,`title`],animation:[1,`animation`],mask:[1,`mask`],flip:[1,`flip`],size:[1,`size`],pull:[1,`pull`],border:[1,`border`],inverse:[1,`inverse`],symbol:[1,`symbol`],rotate:[1,`rotate`],fixedWidth:[1,`fixedWidth`],transform:[1,`transform`],a11yRole:[1,`a11yRole`]},outputs:{icon:`iconChange`,title:`titleChange`,animation:`animationChange`,mask:`maskChange`,flip:`flipChange`,size:`sizeChange`,pull:`pullChange`,border:`borderChange`,inverse:`inverseChange`,symbol:`symbolChange`,rotate:`rotateChange`,fixedWidth:`fixedWidthChange`,transform:`transformChange`,a11yRole:`a11yRoleChange`},decls:0,vars:0,template:function(o,c){},encapsulation:2})}return t})();var E2=(()=>{class t{static ɵfac=function(o){return new(o||t)};static ɵmod=zs({type:t});static ɵinj=Qo({})}return t})();var Vt=class t{iconLibrary=se(Wv);logger=se(Ct);getIconDefinition(e,n){return this.iconLibrary.getIconDefinition(e,n)||(this.logger.logWarning(new Error(`Icon definition not found for ${e} ${n}`)),OA)}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};var Zr=class t{logger=se(Ct);router=se(tu);platformId=se(Rs);history=[[`/`]];resetHistory(){this.history=[[`/`]],this.router.navigate([`/`])}getCurrentPath(){return this.history.at(-1)?.join(``)??`/`}navigateToHome(){this.router.navigate([`/`]),this.history.push([`/`])}navigateToListView(){this.router.navigate([`/list`]),this.history.push([`/list`])}navigateToSearchView(){this.router.navigate([`/search`]),this.history.push([`/search`])}navigateToProfile(e){this.scrollToTop(),this.router.navigate([`/profile`,e]),this.history.push([`/profile`,e])}navigateToRoute(e){this.router.navigate([`/route`,e]),this.history.push([`/route`,e])}goBack(){if(this.history.length>1){this.history.pop();let e=this.history.pop();if(!e){this.logger.log(`No previous path found`);return}this.router.navigate(e),this.history.push(e);return}this.logger.log(`Only current path in history`)}scrollToTop(){if(Aa(this.platformId))try{let e=document.querySelector(`mapvx-website`);if(e){e.scrollIntoView({behavior:`smooth`,block:`start`});return}window.scrollTo({top:0,behavior:`smooth`})}catch(e){this.logger.log(`Error scrolling to top:`,e),window.scrollTo(0,0)}}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};w2.autoAddCss=!1;function gM(t){return S2(t)}var Foe={"Yoga Studio":[`fak`,`beauty`],"Salon / Barbershop":[`fak`,`services`],"Event Space":[`fak`,`events`],"Comedy Club":[`fak`,`events`],"Women's Store":[`fak`,`shopping`],Gym:[`fak`,`beauty`],Spa:[`fak`,`beauty`],"Men's Store":[`fak`,`shopping`],"Clothing Store":[`fak`,`shopping`],"Shoe Store":[`fak`,`shopping`],"Gift Shop":[`fak`,`shopping`],Winery:[`fak`,`food-and-beverage`],"Perfume Shop":[`fak`,`shopping`],"Sporting Goods Shop":[`fak`,`shopping`],"Jewelry Store":[`fak`,`shopping`],"Flower Shop":[`fak`,`shopping`],"Watch Shop":[`fak`,`shopping`],"Health & Beauty Service":[`fak`,`beauty`],"Furniture / Home Store":[`fak`,`shopping`],"Optical Shop":[`fak`,`beauty`],"Salad Place":[`fak`,`food-and-beverage`],"Italian Restaurant":[`fak`,`food-and-beverage`],Cafeteria:[`fak`,`food-and-beverage`],Restaurant:[`fak`,`food-and-beverage`],Café:[`fak`,`food-and-beverage`],"American Restaurant":[`fak`,`food-and-beverage`],"Fast Food Restaurant":[`fak`,`food-and-beverage`],"Cocktail Bar":[`fak`,`food-and-beverage`],Delicatessen:[`fak`,`food-and-beverage`],"Japanese Restaurant":[`fak`,`food-and-beverage`],"Middle Eastern Restaurant":[`fak`,`food-and-beverage`],"Mediterranean Restaurant":[`fak`,`food-and-beverage`],"Brazilian Restaurant":[`fak`,`food-and-beverage`],Pub:[`fak`,`food-and-beverage`],"Beer Bar":[`fak`,`food-and-beverage`],Bar:[`fak`,`food-and-beverage`],Lounge:[`fak`,`food-and-beverage`],Nightclub:[`fak`,`food-and-beverage`],"Chocolate Shop":[`fak`,`food-and-beverage`],"Ice Cream Shop":[`fak`,`food-and-beverage`],"Donut Shop":[`fak`,`food-and-beverage`],"Coffee Shop":[`fak`,`food-and-beverage`],"Grocery Store":[`fak`,`shopping`],Pharmacy:[`fak`,`health`],"Convenience Store":[`fak`,`shopping`],"Dentist's Office":[`fak`,`health`],Bank:[`fak`,`services`],"Travel Agency":[`fak`,`airport`],"Shipping Store":[`fak`,`services`],"Mobile Phone Shop":[`fak`,`shopping`],Parking:[`fak`,`parking`],"Parking pay station":[`fak`,`deals`],"Accessible entrance":[`fak`,`wheelchair`],"Accessible women's restroom":[`fak`,`restroom`],"Accessible men's restroom":[`fak`,`restroom`],Elevators:[`fak`,`elevator`],"Public Restrooms":[`fak`,`user`],"Public Bathroom":[`fak`,`user`],"Transport Service":[`fak`,`user`],Hotel:[`fak`,`hotels`],"Coming soon":[`fak`,`user`],"Roller Rink":[`fak`,`beauty`],"Music Venue":[`fak`,`events`],"Football Shop":[`fak`,`shopping`],Stage:[`fak`,`events`],Tavern:[`fak`,`food-and-beverage`],"Point of interest":[`fak`,`user`],Entrance:[`fak`,`user`],Exit:[`fak`,`user`],"Music Festival":[`fak`,`events`],"Public Art":[`fak`,`palette`]};function I2(t){return Foe[t]||[`fak`,`shopping`]}var vM={};w(vM,{faAirport:()=>zoe,faArrowTopRight:()=>Boe,faBackground:()=>yM,faBeauty:()=>Uoe,faCenter:()=>Voe,faCompass:()=>joe,faCompassNorth:()=>$oe,faDeals:()=>Hoe,faElevator:()=>Goe,faEvents:()=>qoe,faFoodAndBeverage:()=>Woe,faHealth:()=>Zoe,faHotels:()=>Yoe,faPalette:()=>Xoe,faParking:()=>Koe,faRestroom:()=>Qoe,faRoute:()=>Joe,faServices:()=>ese,faShopping:()=>tse,faUser:()=>nse,faWheelchair:()=>rse});var zoe={prefix:`fak`,iconName:`airport`,icon:[448,512,[],`e009`,`M431.4 140.8c-.2-.7-.6-1.3-1.1-1.9-14.7-18.5-41.3-23.7-61.9-11.8l-84.5 48.8-49.6-32.1 4.1-2.4c3.6-2 4.8-6.6 2.8-10.2s-6.6-4.8-10.2-2.8l-10.7 6.3-28-18.2 4.1-2.4c3.6-2 4.8-6.6 2.8-10.2s-6.6-4.8-10.2-2.8l-10.7 6.3-66.7-43.2-44.9 25.9 133.4 134.5-54.3 31.4c-10.7 6.1-27.7 21.2-41 36.2L33.3 254.2c-2.3-1.2-5.1-1.2-7.2 .1L4.2 266.9C2.3 268 1 270.1 .6 272.2s.4 4.5 1.9 6.1l65.4 70.9 28.8 92.1c.7 2.2 2.3 3.9 4.5 4.7 .8 .4 1.8 .5 2.8 .5 1.3 0 2.5-.4 3.7-1l21.9-12.6c2.3-1.3 3.6-3.6 3.7-6.1l2.9-80.6c19.7-4.1 41.3-11.3 51.9-17.5l54.3-31.4 49.8 182.7 44.9-25.9-4.1-79.3 10.7-6.3c3.6-2 4.8-6.6 2.8-10.2s-6.6-4.8-10.2-2.8l-4.1 2.4-1.7-33.5 10.7-6.3c3.6-2 4.8-6.6 2.8-10.2s-6.6-4.8-10.2-2.8l-4.1 2.4-3-59.1 84.5-48.7c20.6-11.8 29.4-37.4 20.7-59.5l-.4 .5z`]};var Boe={prefix:`fak`,iconName:`arrow-top-right`,icon:[427,512,[],`e010`,`M41 490.7l0-320 275.1 0-88.6-95.3 35.1-38 147.7 160-148.3 160.7-34.5-38 88.6-96-225.8 0 0 266.7-49.2 0z`]};var yM={prefix:`fak`,iconName:`background`,icon:[388,512,[],`e00a`,`M387.9 193.9C387.9 86.9 301 0 193.9 0S0 86.9 0 193.9 84.7 385.6 190.1 387.7l0 67.8c-11.6 1.9-20.5 11.9-20.5 24 0 13.5 11 24.4 24.4 24.4s24.4-11 24.4-24.4c0-12.1-8.8-22.2-20.5-24l0-67.8c105.3-2 190.1-88 190.1-193.8zM210.5 479.4c0 9.2-7.4 16.6-16.6 16.6s-16.6-7.4-16.6-16.6 7.4-16.6 16.6-16.6 16.6 7.4 16.6 16.6z`]};var Uoe={prefix:`fak`,iconName:`beauty`,icon:[576,512,[],`e000`,`M190.8 234.2c-21.8-10.6-45.1-16.3-66.9-18.6-.6-35.8 5.4-66.6 8.6-78.7 1-3.2 4.2-5.1 7.4-4.5 11.8 3.5 40 13.1 69.4 31.7-9 21.1-16 45.1-18.2 70.4l0 0zm176.6-70.4c29.1-18.6 57.6-28.2 69.4-31.7 3.2-.6 6.4 1 7.4 4.5 3.2 12.5 9.3 42.9 8.6 78.7-22.1 2.2-45.1 8-66.9 18.6-2.2-25.3-9-49-18.2-70.4l0 0zM260.9 417.6c-33.9 6.1-94.1 10.2-143.7-19.8-63-38.4-89-120-95-142.7-.6-3.2 1-6.7 4.2-7.7 21.8-5.8 101.1-23 163.8 14.4 5.1 71 49.6 131.2 70.4 155.5l0 0zM385.7 262.1c63-37.4 142.4-20.2 163.8-14.4 3.2 1 5.1 4.2 4.2 7.7-6.1 22.7-32 104.3-95 142.7-49.6 30.1-109.4 25.9-143.7 19.8 5.1-5.8 11.2-13.4 18.2-23 17.3-24 37.4-58.6 47-98.6 2.6-10.9 4.5-22.1 5.4-33.6l0 0zm-23.4-12.8c0 89.3-74.2 161.9-74.2 161.9s-74.2-72.6-74.2-161.9c0-76.8 54.4-140.8 70.1-157.8 2.2-2.2 6.1-2.2 8.3 0 15.7 17 70.1 81 70.1 157.8l0 0z`]};var Voe={prefix:`fak`,iconName:`center`,icon:[576,512,[],`e00f`,`M545.2 238.7l-50.9 0C486 138.2 406 57.9 305.5 49.9l0-50.9c0-9.6-8-17.3-17.3-17.3S271-10.6 271-1l0 50.9C170.5 58.2 90.5 138.2 82.2 238.7l-50.9 0c-9.6 0-17.3 8-17.3 17.3s7.7 17.3 17.3 17.3l50.9 0C90.5 373.4 170.5 454.1 271 462.1l0 50.9c0 9.6 8 17.3 17.3 17.3s17.3-7.7 17.3-17.3l0-50.9c100.2-8.3 180.8-88.6 188.8-188.8l50.9 0c9.6 0 17.3-7.7 17.3-17.3s-7.7-17.3-17.3-17.3zM459.1 256c0 5.8-.3 11.5-1 17.3-8 80.3-72.3 144.6-152.6 153-11.5 1.3-23 1.3-34.6 0-80.6-8.3-144.6-72.6-152.6-153l0 0c-.6-5.4-1-11.2-1-17.3s.3-11.5 1-17.3l0 0c8.3-80.6 72.3-144.6 152.6-152.6 11.5-1.3 23-1.3 34.6 0 80.3 8.3 144.6 72.3 152.6 152.6 .6 5.8 1 11.5 1 17.3zm-271.2 0a100.1 100.1 0 1 1 200.2 0 100.1 100.1 0 1 1 -200.2 0z`]};var joe={prefix:`fak`,iconName:`compass`,icon:[256,512,[],`e00d`,`M238.9 263.4l0 257.6-47 0-118.4-163.2 0 163.2-55.7 0 0-257.6 47 0 118.4 161.6 0-161.6 55.7 0zM26.8 203.5c-3.2 0-5.8-1.3-7.7-3.5-1.6-2.2-1.9-4.8-.6-7L119.9-4.2C121.2-7 124.7-9 128.2-9s7 1.9 8.3 4.8L238 193c1.6 3.2 .6 6.7-2.6 9s-7.7 2.2-10.9 .6l-96.3-53.4-96.3 53.4s-3.2 1.3-5.1 1.3l0 0z`]};var $oe={prefix:`fak`,iconName:`compass-north`,icon:[382,512,[],`e00b`,`M202.8 6.9c-6.5-6.5-17-6.5-23.6 0L112.5 73.6c-4.8 4.8-6.2 11.9-3.6 18.2 2.6 6.2 8.7 10.4 15.4 10.4l133.4 0c6.7 0 12.9-4 15.4-10.4 2.6-6.2 1.2-13.3-3.6-18.2L202.8 6.9zM191 133a190.5 190.5 0 1 0 0 381 190.5 190.5 0 1 0 0-381zm38.9 278.1l-74.7-107.9 0 97.6c0 9.9-8 17.9-17.9 17.9s-17.9-8-17.9-17.9l0-154.7c0-7.9 5.1-14.8 12.5-17s15.6 .5 20 6.9l74.7 107.9 0-97.6c0-9.9 8-17.9 17.9-17.9s17.9 8 17.9 17.9l0 154.7c0 7.9-5 14.8-12.5 17-7.4 2.3-15.6-.5-20-6.9z`]};var Hoe={prefix:`fak`,iconName:`deals`,icon:[512,512,[],`e007`,`M256 0a256 256 0 1 0 0 512 256 256 0 1 0 0-512zm0 30.1a225.9 225.9 0 1 1 0 451.8 225.9 225.9 0 1 1 0-451.8zM288 232l-10.2-2.2 0-66.9c19.5 6.1 30.7 23 36.8 41.6l46.7-18.6c-9.3-32-34.2-63.7-83.2-70.7l0-33.6-35.5 0 0 33.3c-53.4 5.8-81.3 41.6-81.3 80.6 0 51.5 30.1 73.3 73 81.3l8 1.6 0 72.3c-26.9-7.4-40.6-31-44.8-53.8l-49 18.6 .3 0c9.3 39.7 38.7 75.8 93.8 82.2l0 33.6 35.5 0 0-33.3c58.9-5.8 86.1-42.2 86.1-83.8 0-50.9-37.4-73-75.8-82.2zm-45.8-70.7l0 61.8c-17.6-4.8-27.5-13.8-27.5-31 0-12.5 7.7-26.2 27.5-30.7l0 0zM277.8 351l0-66.9c19.8 4.8 32 16 32 32.6s-9.6 30.1-32 34.2z`]};var Goe={prefix:`fak`,iconName:`elevator`,icon:[512,512,[],`e014`,`M292.7-4.7l64 64c6.2 6.2 16.4 6.2 22.6 0l64-64c4.6-4.6 5.9-11.5 3.5-17.4S438.5-32 432-32L304-32c-6.5 0-12.3 3.9-14.8 9.9s-1.1 12.9 3.5 17.4zm-160-22.6l-64 64c-4.6 4.6-5.9 11.5-3.5 17.4S73.5 64 80 64l128 0c6.5 0 12.3-3.9 14.8-9.9s1.1-12.9-3.5-17.4l-64-64c-6.2-6.2-16.4-6.2-22.6 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 128zM208 272a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zM80 400c0-26.5 21.5-48 48-48l64 0c26.5 0 48 21.5 48 48l0 16c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-16zm192 0c0-26.5 21.5-48 48-48l64 0c26.5 0 48 21.5 48 48l0 16c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-16zM400 272a48 48 0 1 1 -96 0 48 48 0 1 1 96 0z`]};var qoe={prefix:`fak`,iconName:`events`,icon:[576,512,[],`e003`,`M421.4 122.6c-24.3-24.3-27.2-62.1-8.6-89.6 1.6-2.2 1.3-5.4-.6-7.4L370.2-16.3c-2.2-2.2-5.8-2.2-8 0L132.8 213.1c-2.2 2.2-2.2 5.8 0 8l11.5 11.5c3.5 3.5 3.5 9.3 0 12.8s-9.3 3.5-12.8 0L120 233.9c-2.2-2.2-5.8-2.2-8 0L15.7 330.2c-2.2 2.2-2.2 5.8 0 8l41.9 41.9c1.9 1.9 5.1 2.2 7.4 .6 27.5-18.6 65.3-15.7 89.6 8.6s27.2 62.1 8.6 89.6c-1.6 2.2-1.3 5.4 .6 7.4l41.9 41.9c2.2 2.2 5.8 2.2 8 0L310.1 432c2.2-2.2 2.2-5.8 0-8l-11.5-11.5c-3.5-3.5-3.5-9.3 0-12.5 3.5-3.5 9.3-3.5 12.5 0l11.5 11.5c2.2 2.2 5.8 2.2 8 0L560 182.1c2.2-2.2 2.2-5.8 0-8l-41.9-41.9c-1.9-1.9-5.1-2.2-7.4-.6-27.5 18.6-65.3 15.7-89.6-8.6zm-225 174.7c-4.5 4.5-11.8 4.5-16.3 0L152 269.1c-4.5-4.5-4.5-11.8 0-16.3s11.8-4.5 16.3 0L196.5 281c4.5 4.5 4.5 11.8 0 16.3zM247 344.6c-4.5 4.5-11.8 4.5-16.3 0l-28.2-28.2c-4.5-4.5-4.5-11.8 0-16.3s11.8-4.5 16.3 0L247 328.3c4.5 4.5 4.5 11.8 0 16.3zm48.3 48c-4.5 4.5-11.8 4.5-16.3 0l-28.2-28.2c-4.5-4.5-4.5-11.8 0-16.3s11.8-4.5 16.3 0l28.2 28.2c4.5 4.5 4.5 11.8 0 16.3zM421.4 229.1c-.3 2.9-2.6 5.4-5.1 6.7l-43.2 18.9c-1.9 1-3.5 2.2-4.2 4.2l-18.9 43.2s-1 1.9-1.9 2.6c-1.3 1.3-2.9 2.2-4.8 2.6-2.9 .3-6.1-.6-8-2.9l-31-35.2c-1.3-1.6-3.5-2.6-5.4-2.9l-46.7-4.5c-2.9 0-5.8-2.2-7-4.8s-1.3-6.1 0-8.3l23.7-40.3c1-1.9 1.6-4.2 1-6.1l-10.2-45.8c-.6-2.9 0-6.1 2.2-8.3s5.1-2.9 8.3-2.2l45.8 10.2c2.2 .3 4.2 0 6.1-1l40.3-23.7c2.6-1.6 5.8-1.6 8.3 0 2.6 1.3 4.5 4.2 4.8 7l4.5 46.7c0 2.2 1.3 4.2 2.9 5.4l35.2 31c2.2 1.9 3.2 5.1 2.9 8l0 0z`]};var Woe={prefix:`fak`,iconName:`food-and-beverage`,icon:[512,512,[],`e001`,`M497.9 145.9l-127 0 0-114.6-24 0 0 114.6-127.4 0c-8 0-14.4 6.4-14.4 14.4l0 17.3c0 8 6.4 14.4 14.4 14.4l19.2 0 3.5 53.8c-61.1-30.1-140.5-23.4-192.6 18.2-29.1 23-47.4 55-48.6 90.6 0 5.1 3.8 9.3 9 9.3l301.4 0c5.1 0 9.3-4.2 9-9.3-1.6-43.5-28.8-80.6-66.6-103l-3.8-59.5 218.9 0-17 259.2c-.6 10.9-11.8 18.2-23 18.2l-116.2 0c5.1-4.5 8.6-10.9 8.6-18.2l0-19.5c0-4.8-4.2-8.3-9-8.3l-303 0c-4.8 0-9 3.5-9 8.3l0 19.5c0 17.9 19.2 29.4 37.4 29.4l390.4 0c17-.3 32.6-11.8 33.6-28.8L479 192 498.2 192c8 0 14.4-6.4 14.4-14.4l0-17.3c0-8-6.4-14.4-14.4-14.4zm3.8 31.7c0 1.9-1.6 3.8-3.8 3.8l-278.4 0c-1.9 0-3.8-1.6-3.8-3.8l0-17.3c0-1.9 1.6-3.8 3.8-3.8l278.4 0c1.9 0 3.8 1.6 3.8 3.8l0 17.3zM9.3 402.9l301.8 0c4.8 0 8.6-3.8 8.6-8.6s-3.8-8.6-8.6-8.6l-301.8 0c-4.8 0-8.6 3.8-8.6 8.6s3.8 8.6 8.6 8.6z`]};var Zoe={prefix:`fak`,iconName:`health`,icon:[512,512,[],`e002`,`M256 0a256 256 0 1 0 0 512 256 256 0 1 0 0-512zm0 30.1a225.9 225.9 0 1 1 0 451.8 225.9 225.9 0 1 1 0-451.8zM393.9 212.5l-94.4 0 0-94.4c0-5.1-4.2-9.3-9.3-9.3l-68.5 0c-5.1 0-9.3 4.2-9.3 9.3l0 94.4-94.4 0c-5.1 0-9.3 4.2-9.3 9.3l0 68.5c0 5.1 4.2 9.3 9.3 9.3l94.4 0 0 94.4c0 5.1 4.2 9.3 9.3 9.3l68.5 0c5.1 0 9.3-4.2 9.3-9.3l0-94.4 94.4 0c5.1 0 9.3-4.2 9.3-9.3l0-68.5c0-5.1-4.2-9.3-9.3-9.3z`]};var Yoe={prefix:`fak`,iconName:`hotels`,icon:[512,512,[],`e00c`,`M50.1 357.8l8.1-18.1 80.6 36.1-8.1 18.1zm462.7 78.7L428 207.7c14.4-8.6 26.2-21.4 33.9-36.8 10.9-22.4 11.8-48 3.2-72.3-17.9-48.3-71.7-74.9-119.7-59.2-17 5.4-31.4 15.7-42.2 29.4-7.7-2.2-15.7-3.5-23.7-4.5-3.5-.3-6.7 0-10.2-.3-1.6-4.5-3.5-8.3-5.8-11.2-2.2-3.2-5.4-6.4-9.3-9.9-14.4-12.8-32.3-21.1-51.2-22.7-5.1-.3-9.6-.6-13.4 0-4.8 .3-10.2 2.2-16 5.1-10.9 5.4-20.5 13.4-28.8 23.7L46.2 171.8c-8.3 10.9-15 23-19.8 35.5-5.4 12.5-9.3 25.9-10.9 40.3L-.5 407c-1.3 13.1 0 25.9 3.5 37.8 1.9 6.4 4.5 11.2 7.4 15.4 2.2 3.2 5.4 6.4 9.3 9.9 14.4 12.8 32.3 21.1 51.2 22.7 2.9 .3 5.4 .3 8 .3l0 0c1.9 0 3.8 0 5.4-.3 4.8-.3 10.2-2.2 16-5.1 10.9-5.4 20.5-13.4 28.8-23.7l98.6-122.9c8.3-10.9 15-23 19.8-35.5 5.4-12.5 9.3-25.9 10.9-40l13.8-136.3 1.9 0c3.5 .3 6.7 .3 10.2 .3 .6 9.3 1.9 18.6 5.4 27.8 14.4 39 52.2 63.7 91.2 63.7 3.2 0 6.4-.3 9.6-.6l42.9 116.5-44.5 14.4 12.2 37.8 46.1-15 6.4 17-59.5 19.5 12.2 37.8 61.1-19.8 8.3 22.1 37.1-13.8zM237.6 92.5c2.9-1.6 9-3.5 17.3-4.5 .3 4.2 0 8.3 0 12.8-8.6-2.9-14.7-6.1-17.3-8.3zm1.3 170.2c-1.3 11.8-4.5 23.7-9.6 34.9-4.2 10.9-9.9 21.4-17 30.7L114 450.9c-6.4 8-13.8 14.1-22.1 18.2-4.5 2.2-7.7 2.9-9.3 3.2l-9.3 0c-14.7-1.3-28.5-7.7-40-17.9-2.9-2.6-5.1-4.8-6.7-7-1-1.3-2.6-4.2-4.2-9.6-2.6-9.3-3.8-19.2-2.6-29.8L36 248.6c1.6-11.8 4.8-23.7 9.6-34.9 4.2-10.9 9.9-21.4 17-30.7L161.1 60.5c6.4-8 13.8-14.1 22.1-18.2 4.5-2.2 7.7-2.9 9.3-3.2l9.3 0c14.7 1.3 28.5 7.7 40 17.9 2.6 2.6 5.1 5.1 6.4 7l.3 .6c-8 1.3-14.7 3.2-20.5 6.1-2.6-3.2-5.8-6.1-9.6-8-6.4-2.9-13.8-3.2-20.5-.3s-12.2 8.3-15 15c-5.8 14.1 .6 30.4 14.1 36.2 3.5 1.6 7 2.2 10.9 2.2 3.2 0 6.7-.6 9.9-1.9 1.9-1 3.5-2.2 5.1-3.5 7.4 6.1 17.9 10.9 30.1 14.1L239.2 262.1zM212.9 93.1s-1.6 2.2-2.9 2.9c-1 .6-2.9 1-5.1 0-3.8-1.6-5.4-6.4-3.8-10.6 .6-1.9 2.2-3.2 4.2-4.2 1-.6 2.9-1 5.1 0 1.9 .6 3.2 2.2 3.8 4.2-.6 1.9-1.3 3.5-1.3 5.1l0 2.6zM274.4 105c.6-5.8 .6-11.5 0-17.3l2.9 0c5.1 .6 9.6 1.3 13.4 2.2-2.2 5.1-3.8 10.2-5.1 15.7-3.2 0-6.1 0-9.6-.3l-1.9 0zm52.5 38.4c-2.6-6.7-3.5-13.4-3.5-20.2 3.5-1.6 6.7-3.2 9-5.4 6.4-5.1 8-11.2 8.3-15.4 .3-4.5-1-8.6-3.2-12.5 5.4-5.8 12.2-10.9 20.2-13.4 28.2-9.3 59.5 6.7 70.1 35.2 5.1 13.8 4.5 28.5-1.6 41.3-5.8 12.2-16.3 21.1-29.1 25.3-28.2 9.3-59.5-6.7-70.1-35.2z`]};var Xoe={prefix:`fak`,iconName:`palette`,icon:[512,512,[],`e012`,`M453 132.6q11.2 21.2 11.2 45.1 0 46.9-37.3 64.8-5 2.4-15.2 6.6-12.9 5.4-18.9 8.5-9.8 5.1-16.3 11.1-9.2 8.5-9.1 25.7 .1 15.5 6.8 29.9 1.8 3.8 6.4 11.3 7.5 12.4 9.8 19.5 4.5 13.4 1.6 28.4-2.6 14-10.8 26.2-19.1 28.3-58.2 41.8-31.3 10.8-70.2 10.8-51.4 0-93.2-17.6-38.5-16.2-66.1-46-25.6-27.6-39.1-63.9-12.9-34.5-12.9-71.3 0-34.2 12.7-68.8 13.3-36.4 38-65.7 26.9-31.9 63.7-50.6 40.5-20.6 89.3-23.3 77.1-4.2 132.6 17 2.2 .8 3.1 2.9t.1 4.3-2.9 3.1-4.3 .1q-53.3-20.4-128-16.3-46.5 2.6-84.8 22.1-34.8 17.7-60.2 47.9-23.4 27.8-36.1 62.3-12 32.7-12 65 0 34.8 12.2 67.4 12.7 34.2 36.9 60.2 26 28 62.2 43.3 39.7 16.7 88.9 16.7 37.1 0 66.6-10.2 35.5-12.3 52.5-37.5 6.9-10.3 9.1-22 2.3-12.2-1.3-22.9-2-6-8.8-17.2-4.8-8-6.9-12.4-7.8-16.7-7.9-34.6-.1-22.1 12.8-34 7.6-6.9 18.6-12.7 6.5-3.4 19.8-8.9 9.9-4.1 14.6-6.4 30.9-14.8 30.9-54.7 0-21.1-9.9-39.8-1.1-2-.4-4.3t2.7-3.3 4.3-.4 3.3 2.7zM289.7 405.3a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zM267.6 162.8a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zM164.7 199.5a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zm-44.1 103a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zm58.8 88a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zM299.1 181.9c8.5 7.4 16.6 15.7 24.3 25l0 0c3.9 4.7 7.7 9.6 11.2 14.6l-19.8 21.1c1.1 12-3 24.4-12.3 33.7-.4 .4-.8 .7-1.3 1-11.3 10.6-26.1 17.2-40.8 19.9-15.1 2.8-30.7 1.5-42.4-4.3-1.6-.8-2.7-2.3-3-4.1s.3-3.6 1.6-4.9c6-6 9.1-11.4 10.8-16.5 1.8-5.2 2.2-10.2 2.6-15.6 .6-10.8 .6-23.3 12.7-35.4 9-9 21-13 32.7-12.3l22.7-21.2 1.1-1zm130.1-122c8.1-7.5 21.1-7.4 28.9 .4 4 4 6.1 9.1 6.1 14.4 .2 5.5-1.9 10.6-5.7 14.5l0 0-116.2 123.9c-3.3-4.6-6.8-9.1-10.4-13.4l0 0c-7.8-9.4-16-17.9-24.7-25.5l121.9-114.3 0 0z`]};var Koe={prefix:`fak`,iconName:`parking`,icon:[448,512,[],`e006`,`M16 0L246.4 0C356.5 0 432 63.7 432 165.4S356.5 332.2 247 332.2l-119.7 0 0 179.8-111.4 0 0-512zM315.8 165.4c0-45.1-36.5-73.3-89.3-73.3l-98.9 0 0 147.8 98.9 0c52.8 0 89.3-26.9 89.3-74.6z`]};var Qoe={prefix:`fak`,iconName:`restroom`,icon:[640,512,[],`e015`,`M176.5 48a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zm-56 304l0 128c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-154.8c-8.1 9.2-21.1 13.2-33.5 9.4-16.9-5.3-26.3-23.2-21-40.1l29.7-95.2C44.9 156.9 84.1 128 128.5 128s83.6 28.9 96.8 71.2L255 294.4c5.3 16.9-4.1 34.8-21 40.1-12.4 3.9-25.4-.2-33.5-9.4l0 154.9c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-128-16 0zM320.5 0c13.3 0 24 10.7 24 24l0 464c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-464c0-13.3 10.7-24 24-24zm240 48a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zm-120 432l0-96-17.8 0c-10.9 0-18.6-10.7-15.2-21.1l9-26.9c-3.2 0-6.4-.5-9.5-1.5-16.9-5.3-26.3-23.2-21-40.1l29.7-95.2c13.2-42.3 52.4-71.2 96.8-71.2s83.6 28.9 96.8 71.2L639 294.4c5.3 16.9-4.1 34.8-21 40.1-3.2 1-6.4 1.5-9.5 1.5l9 26.9c3.5 10.4-4.3 21.1-15.2 21.1l-17.8 0 0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96-16 0 0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32z`]};var Joe={prefix:`fak`,iconName:`route`,icon:[384,512,[],`e00e`,`M22.7 206.4c-3.2-3.2-5.1-7.7-4.5-11.8 .3-4.2 3.2-7.4 7-8.6L347.8 82.6c4.8-1.6 10.2 0 14.1 4.2 3.8 3.8 5.8 9.6 4.2 14.1L262.7 423c-1.6 5.1-6.7 7.7-12.2 6.7-5.8-1-10.6-5.8-12.2-11.2L192.3 257 30.4 210.6c-2.6-.6-4.8-2.2-6.7-4.2l-.3 0z`]};var ese={prefix:`fak`,iconName:`services`,icon:[512,512,[],`e005`,`M89.6 51.2l102.4 0c7 0 12.8-5.8 12.8-12.8S199 25.6 192 25.6l-140.8 0C22.7 25.6 0 48.6 0 76.8l0 384C0 489.3 23 512 51.2 512L192 512c7 0 12.8-5.8 12.8-12.8S199 486.4 192 486.4l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 435.2 192 435.2l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 384 192 384L89.6 384c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 332.8 192 332.8l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 281.6 192 281.6l-102.4 0c-7 0-12.8-5.8-12.8-12.8S82.6 256 89.6 256L192 256c7 0 12.8-5.8 12.8-12.8S199 230.4 192 230.4l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 179.2 192 179.2l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 128 192 128L89.6 128c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 76.8 192 76.8l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l0 0zM460.8 385.3l0-1.3c0-33.6-28.8-63.4-72.6-81.9 21.4-26.9 21.4-73.3 21.4-97.3 0-25.6-17.3-204.8-38.4-204.8s-38.4 179.2-38.4 204.8c0 20.2 .3 70.1 21.8 97.3-44.2 18.6-73 48.3-73 81.9l0 1.3c-29.1 6.1-51.2 31.7-51.2 62.7 0 35.5 28.8 64 64 64s64-28.8 64-64c0-31-22.1-57-51.2-62.7l0-1.3c0-23.4 25.3-46.7 64-61.4 39 14.7 64 38.1 64 61.4l0 1.3c-29.4 6.1-51.2 31.7-51.2 62.7 0 35.5 28.8 64 64 64s64-28.8 64-64c0-31-22.1-57-51.2-62.7l0 0zM256 448a38.4 38.4 0 1 1 76.8 0 38.4 38.4 0 1 1 -76.8 0zM371.2 256a12.8 12.8 0 1 1 0 25.6 12.8 12.8 0 1 1 0-25.6zM448 409.6a38.4 38.4 0 1 1 0 76.8 38.4 38.4 0 1 1 0-76.8z`]};var tse={prefix:`fak`,iconName:`shopping`,icon:[512,512,[],`e004`,`M498.1 501.1L446.6 107.8c-.6-4.8-4.8-8.6-9.6-8.6l-76.5 0 0-22.4c0-42.6-34.6-77.1-77.1-77.1-9.3 0-17.9 1.6-26.2 4.8-8.3-2.9-17-4.8-26.2-4.8-42.6 0-77.1 34.6-77.1 77.1l0 22.4-77.8 0c-4.8 0-9 3.5-9.6 8.6L14.9 501.1c0 2.9 .3 5.4 2.2 7.7s4.5 3.2 7.4 3.2l464.3 0c2.9 0 5.4-1.3 7.4-3.2s2.6-5.1 2.2-7.7l0 0zM354.4 481.3l47.7-362.6 26.6 0 47.7 364.2zM283.1 19.5c32 0 57.6 25.9 57.6 57.6l0 22.4-33 0 0-22.4c0-23-10.2-43.5-25.9-57.6l1.3 0zm-25.9 6.4c18.6 9.6 31.4 28.8 31.4 51.2l0 22.4-63 0 0-22.4c0-22.4 12.8-41.9 31.4-51.2l0 0zM173 77.1c0-32 25.9-57.6 57.6-57.6l1.3 0c-16 14.1-25.9 34.9-25.9 57.6l0 22.4-33 0 0-22.4z`]};var nse={prefix:`fak`,iconName:`user`,icon:[320,512,[],`e008`,`M190.7 104l0 0c28.8 0 52.2-23.4 52.2-52.2S219.5-.3 190.7-.3l0 0c-28.8 0-52.2 23.7-52.2 52.2s23.7 51.8 52.2 51.8zM75.8 381.1l0 0c-.6 1.6-1.6 3.2-2.9 4.8-11.5 13.8-22.7 27.2-34.2 41L12.1 458.6c-5.4 6.4-4.5 16 1.9 21.4l20.5 17.3c2.9 2.2 6.1 3.5 9.9 3.5 4.5 0 8.6-1.9 11.5-5.4 12.2-14.4 38.1-45.1 51.8-61.4 1.6-1.9 3.5-4.2 5.4-6.1 4.8-5.1 9.3-10.6 12.8-16.6 4.8-9 9.3-18.2 13.1-27.5L88.6 345.6c-4.2 11.8-8 23.7-12.2 35.2zM312 223.7l-1.3 0c-6.7-1-13.1-2.2-19.5-3.8-39.4-11.8-62.1-33-71.7-65.9-1.9-6.7-5.1-12.8-9-18.6-10.2-15.4-26.2-25.6-44.2-28.2-16.3-2.9-32.6 1.6-45.4 11.8-17.3 14.1-35.8 26.9-53.8 39.4L63 161.3c-10.2 7-19.5 16.3-26.6 26.9-9.9 14.1-20.2 28.2-30.7 42.2l-7 9.6c-4.8 6.7-3.5 16.3 3.2 21.1l21.8 15.7c6.7 4.8 16.3 3.5 21.1-3.5l7-9.6c11.8-16.3 23-32 34.9-47.4 2.2-2.6 4.5-5.1 7.4-7l-9.6 54.4c-3.5 19.2 3.5 38.4 18.2 50.9 11.8 9.9 24 20.2 35.8 30.1 13.4 11.2 26.9 22.4 40.3 33.9 1.6 1.3 2.9 3.2 3.8 5.4 7.7 20.5 15 41 22.4 61.4l20.5 56.3c2.2 6.1 8 9.9 14.1 9.9 1.6 0 3.5 0 5.1-1l25-9c7.7-2.9 11.8-11.5 9-19.2-9-25.3-33.9-94.1-47.7-131.2-1.3-2.9-2.9-5.4-5.4-7.7-13.8-11.8-27.5-23.7-41.6-34.9-1.6-1.3-2.2-1.6-1.3-5.4 2.9-11.2 5.1-22.4 6.7-33.6 2.2-16.3 4.2-28.8 7-42.9 29.4 31.7 69.8 50.6 112.6 53.4 4.2 0 8-1.3 11.2-3.8 3.2-2.9 4.8-7 4.8-11.2l0-26.9c0-7.7-5.8-14.1-13.1-15z`]};var rse={prefix:`fak`,iconName:`wheelchair`,icon:[512,512,[],`e013`,`M248 40a56 56 0 1 1 -112 0 56 56 0 1 1 112 0zM117.9 197.6l12.6 63c-38.6 12.4-66.5 48.7-66.5 91.4 0 53 43 96 96 96 35.6 0 66.7-19.4 83.3-48.2 2.3 .1 4.6 .2 7 .2l4.1 0c1 0 2.1 0 3.1 0l55.2 0c-20.4 64.9-81 112-152.7 112-88.4 0-160-71.6-160-160 0-73.8 50-135.9 117.9-154.4zm148.6-28.1l23.7 118.5 60.5 0c33.3 0 63.2 20.7 74.9 51.9l25.5 68 18.7-6.2c16.8-5.6 34.9 3.5 40.5 20.2s-3.5 34.9-20.2 40.5l-48 16c-16.3 5.4-34-3-40.1-19.1l-36.3-96.9c-2.3-6.2-8.3-10.4-15-10.4l-86.1 0c-.4 0-.8 0-1.3 0l-13.1 0c-30.5 0-56.8-21.5-62.8-51.4L165.3 189.7c-6.4-31.9 18-61.7 50.6-61.7 24.6 0 45.8 17.4 50.6 41.5z`]};var ci=class t{onDestroy=new Jt;logger=se(Ct);mapService=se(tr);navigatorService=se(Zr);loadedDataService=se(In);iconLibraryService=se(Vt);document=se(Sn);markers=new Set;_hasCurrentLocationMarker=!1;ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}getIconFromPlace(e){this.logger.log(`getIconFromPlace`,e);let[n,o]=I2(e.localizedCategory||``);return this.iconLibraryService.getIconDefinition(n,o)}toSVGString(e){return fM(n=>{n(gM(yM)),n(gM(e))}).html.join(``)}createPlaceMarkerElement(e){let n=this.getIconFromPlace(e);return this.createElement(e.mapvxId,n)}createOriginMarkerElement(){let e=this.iconLibraryService.getIconDefinition(`fak`,`user`);return this.createElement(`origin`,e,[`route-marker`,`origin-marker`])}createElement(e,n,o=[]){let c=this.document.createElement(`div`);return c.className=`marker`,c.classList.add(...o),c.id=`${e}-marker`,c.innerHTML=this.toSVGString(n),c}addMarker(e){if(this.markers.has(e.mapvxId)){this.logger.log(`Marker already exists for place`,e.mapvxId);return}let n={element:this.createPlaceMarkerElement(e),id:e.mapvxId,coordinate:e.position,floorId:e.inFloors?.[0],onClick:()=>{this.logger.log(`Marker clicked for place`,e.mapvxId),this.logger.logEvent(`marker_clicked`,{id:e.mapvxId,name:e.title,clientId:e.clientId||``}),this.navigatorService.navigateToProfile(e.mapvxId)},anchor:`bottom`};this.mapService.addMarker(n),this.markers.add(e.mapvxId),this.logger.log(`Marker added for place`,e.mapvxId)}addInitialMarkers(){this.loadedDataService.getAvailablePlaces().pipe(Qi(1),ri(this.onDestroy)).subscribe({next:e=>{for(let n of e)this.addMarker(n)},error:e=>{this.logger.logWarning(`Error adding initial markers`,e)}})}addMarkers(e){this.mapService.mapReady.pipe(gr(n=>n),Qi(1),ri(this.onDestroy)).subscribe({next:()=>{this.removeAllMarkers();for(let n of e)this.addMarker(n)},error:n=>{this.logger.logWarning(`Error adding markers`,n)}})}removeAllMarkers(){for(let e of this.markers)this.mapService.removeMarker(e);this.markers.clear()}hasMarker(e){return this.markers.has(e)}selectMarker(e){if(!this.markers.has(e)){this.logger.logWarning(`Marker not found`,e);return}let n=this.document.getElementById(`${e}-marker`);if(!n){this.logger.logWarning(`Marker not found`,e);return}n.classList.add(`selected`)}deselectMarker(e){if(!this.markers.has(e)){this.logger.logWarning(`Marker not found`,e);return}let n=this.document.getElementById(`${e}-marker`);if(!n){this.logger.logWarning(`Marker not found`,e);return}n.classList.remove(`selected`)}deselectMarkers(){let e=this.document.querySelectorAll(`.marker.selected`);for(let n of e)n.classList.remove(`selected`)}addOriginMarker(e){let n={element:this.createOriginMarkerElement(),id:`origin`,coordinate:e,anchor:`bottom`};this.mapService.addMarker(n),this.markers.add(`origin`)}addDestinationMarker(e){let n={element:this.createElement(e.mapvxId,this.getIconFromPlace(e),[`route-marker`,`destination-marker`]),id:e.mapvxId,coordinate:e.position,anchor:`bottom`};this.mapService.addMarker(n),this.markers.add(e.mapvxId)}addRouteMarker(e){let n={element:this.createElement(e.mapvxId,this.getIconFromPlace(e),[`route-marker`]),id:e.mapvxId,coordinate:e.position,anchor:`bottom`};this.mapService.addMarker(n),this.markers.add(e.mapvxId)}addRouteMarkers(e){for(let n of e)this.addRouteMarker(n)}createCurrentLocationMarkerElement(){let e=this.document.createElement(`div`);return e.className=`current-location-marker`,e.id=`current-location-marker`,e.innerHTML=zL,e}addCurrentLocationMarker(e){let n={element:this.createCurrentLocationMarkerElement(),id:`current-location`,coordinate:e,anchor:`bottom`};this.mapService.addMarker(n),this._hasCurrentLocationMarker=!0}updateCurrentLocationMarker(e){this.mapService.updateMarkerPosition(`current-location`,e)}getCurrentLocationMarkerElement(){return this.document.getElementById(`current-location-marker`)}get hasCurrentLocationMarker(){return this._hasCurrentLocationMarker}removeCurrentLocationMarker(){this.mapService.removeMarker(`current-location`),this._hasCurrentLocationMarker=!1}prepareToMapReuse(){this.removeAllMarkers()}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};var _u=class t{sdkService=se(Eo);logger=se(Ct);markerService=se(ci);currentlyWatchingLocation=dt(!1);currentLocation=new Cn(null);currentBearing=new Cn(null);hasBearingPermission=!1;watchId;async checkLocationPermission(){return`permissions`in navigator?navigator.permissions.query({name:`geolocation`}).then(async e=>e.state).catch(e=>(this.logger.logWarning(e),`denied`)):(this.logger.log(`Permissions API not supported`),`denied`)}async requestLocationPermission(){return new Promise(e=>{navigator.geolocation.getCurrentPosition(()=>{console.log(`requestLocationPermission granted`),e(`granted`)},n=>{console.log(`requestLocationPermission denied`,n),n.code===3?e(`prompt`):e(`denied`)},{enableHighAccuracy:!0,timeout:5e3})})}async getCurrentLocation(){return this.currentlyWatchingLocation()&&this.currentLocation.value!=null?this.currentLocation.value:new Promise((e,n)=>{navigator.geolocation.getCurrentPosition(o=>{e(A1(o))},o=>{n(new Error(`Error getting current location`,{cause:o}))},{enableHighAccuracy:!0})})}checkBearingLocation(){typeof DeviceOrientationEvent<`u`&&`requestPermission`in DeviceOrientationEvent?DeviceOrientationEvent.requestPermission().then(n=>{this.hasBearingPermission=n===`granted`}).catch(n=>{this.logger.logWarning(n),this.hasBearingPermission=!1}):this.hasBearingPermission=!0}startWatching(){this.checkBearingLocation(),console.log(`startWatching`),console.log(`hasBearingPermission`,this.hasBearingPermission),this.currentlyWatchingLocation.set(!0),!this.watchId&&(this.watchId=this.sdkService.watchUserLocation(e=>{this.currentLocation.next(e)},e=>{this.logger.logWarning(`Error watching user location`,e)}),this.hasBearingPermission&&this.sdkService.watchUserHeading(e=>{this.currentBearing.next(e)},e=>{this.logger.logWarning(`Error watching user bearing`,e)}))}stopWatching(){this.watchId&&this.sdkService.stopWatchingUserLocation(this.watchId),this.hasBearingPermission&&this.sdkService.stopWatchingUserHeading(),this.watchId=void 0,this.markerService.removeCurrentLocationMarker(),this.currentlyWatchingLocation.set(!1)}temporalStopWatching(){this.watchId&&this.sdkService.stopWatchingUserLocation(this.watchId),this.hasBearingPermission&&this.sdkService.stopWatchingUserHeading(),this.watchId=void 0}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};var Zv=(s=>(s[s.NotStarted=0]=`NotStarted`,s[s.Playing=1]=`Playing`,s[s.Paused=2]=`Paused`,s[s.Finished=3]=`Finished`,s[s.Stepping=4]=`Stepping`,s))(Zv||{});var ise=1.5;var Io=class t{logger=se(Ct);mapService=se(tr);sdkService=se(Eo);platformId=se(Rs);document=se(Sn);animationStatusSubject=new Cn(0);activeRouteSubject=new Cn(null);currentStepSubject=new Cn(null);getRoute(e,n){return this.sdkService.getRoute(e,n)}getSecondaryOrangeColor(){if(!Aa(this.platformId))return`#EE5845`;try{return getComputedStyle(this.document.documentElement).getPropertyValue(`--definitions-colors-secondary-orange`).trim()}catch(e){return this.logger.logWarning(`Error getting --definitions-colors-secondary-orange:`,e),`#EE5845`}}startAnimatingRoute(e){this.animationStatusSubject.next(1),this.activeRouteSubject.next(e),this.mapService.startAnimatingRoute(e,this.getDrawConfig(),this.getAnimationConfig(1))}startSteppingRoute(e){this.animationStatusSubject.next(4),this.activeRouteSubject.next(e),this.mapService.addStepAnimation(e,this.getDrawConfig(),this.getAnimationConfig(4))}animateNextStep(){this.mapService.nextStepAnimation()}animatePreviousStep(){this.mapService.previousStepAnimation()}centerOnCurrentStep(){this.mapService.centerOnCurrentStepAnimation()}getDrawConfig(){let e=this.getSecondaryOrangeColor();return{behindPathStyle:{type:`Solid`,color:e},aheadPathStyle:{type:`Solid`,color:`#000000`},routeIcon:this.getRouteIcon(e)}}getAnimationConfig(e){return{changeFloorTime:ise,callBack:({isFinished:n,step:o})=>{n?(this.animationStatusSubject.next(3),this.currentStepSubject.next(null)):(this.animationStatusSubject.next(e),this.currentStepSubject.next(o))}}}getRouteIcon(e){let n=this.document.createElement(`div`);return n.className=`route-icon`,n.id=`route-icon`,n.innerHTML=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1996
|
+
`))});cspNonce=se(hf);document=se(Sn);sanitizer=se(Vy);config=se(Coe);iconLibrary=se(Wv);stackItem=se(Ooe,{optional:!0});stack=se(Noe,{optional:!0});constructor(){this.stack!=null&&this.stackItem==null&&console.error(`FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x" />.`)}findIconDefinition(n){let o=koe(n,this.config.defaultPrefix);if(`icon`in o)return o;return this.iconLibrary.getIconDefinition(o.prefix,o.iconName)??(Doe(o),null)}buildParams(){let n=this.fixedWidth(),o={flip:this.flip(),animation:this.animation(),border:this.border(),inverse:this.inverse(),size:this.size(),pull:this.pull(),rotate:this.rotate(),fixedWidth:typeof n==`boolean`?n:this.config.fixedWidth,stackItemSize:this.stackItem!=null?this.stackItem.stackItemSize():void 0},c=this.transform(),s=typeof c==`string`?S7.transform(c):c,m=this.mask(),x=m!=null?this.findIconDefinition(m):null,I={},P=this.a11yRole();P!=null&&(I.role=P);let N={};return o.rotate!=null&&!I7(o.rotate)&&(N[`--fa-rotate-angle`]=`${o.rotate}`),{title:this.title(),transform:s,classes:Moe(o),mask:x??void 0,symbol:this.symbol(),attributes:I,styles:N}}static ɵfac=function(o){return new(o||t)};static ɵcmp=ft({type:t,selectors:[[`fa-icon`]],hostAttrs:[1,`ng-fa-icon`],hostVars:2,hostBindings:function(o,c){o&2&&(m1(`innerHTML`,c.renderedIconHTML(),Xc),Dy(`title`,c.title()??void 0))},inputs:{icon:[1,`icon`],title:[1,`title`],animation:[1,`animation`],mask:[1,`mask`],flip:[1,`flip`],size:[1,`size`],pull:[1,`pull`],border:[1,`border`],inverse:[1,`inverse`],symbol:[1,`symbol`],rotate:[1,`rotate`],fixedWidth:[1,`fixedWidth`],transform:[1,`transform`],a11yRole:[1,`a11yRole`]},outputs:{icon:`iconChange`,title:`titleChange`,animation:`animationChange`,mask:`maskChange`,flip:`flipChange`,size:`sizeChange`,pull:`pullChange`,border:`borderChange`,inverse:`inverseChange`,symbol:`symbolChange`,rotate:`rotateChange`,fixedWidth:`fixedWidthChange`,transform:`transformChange`,a11yRole:`a11yRoleChange`},decls:0,vars:0,template:function(o,c){},encapsulation:2})}return t})();var E2=(()=>{class t{static ɵfac=function(o){return new(o||t)};static ɵmod=zs({type:t});static ɵinj=Qo({})}return t})();var Vt=class t{iconLibrary=se(Wv);logger=se(Ct);getIconDefinition(e,n){return this.iconLibrary.getIconDefinition(e,n)||(this.logger.logWarning(new Error(`Icon definition not found for ${e} ${n}`)),OA)}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};var Zr=class t{logger=se(Ct);router=se(tu);platformId=se(Rs);history=[[`/`]];resetHistory(){this.history=[[`/`]],this.router.navigate([`/`])}getCurrentPath(){return this.history.at(-1)?.join(``)??`/`}navigateToHome(){this.router.navigate([`/`]),this.history.push([`/`])}navigateToListView(){this.router.navigate([`/list`]),this.history.push([`/list`])}navigateToSearchView(){this.router.navigate([`/search`]),this.history.push([`/search`])}navigateToProfile(e){this.scrollToTop(),this.router.navigate([`/profile`,e]),this.history.push([`/profile`,e])}navigateToRoute(e){this.router.navigate([`/route`,e]),this.history.push([`/route`,e])}goBack(){if(this.history.length>1){this.history.pop();let e=this.history.pop();if(!e){this.logger.log(`No previous path found`);return}this.router.navigate(e),this.history.push(e);return}this.logger.log(`Only current path in history`)}scrollToTop(){if(Aa(this.platformId))try{let e=document.querySelector(`mapvx-website`);if(e){e.scrollIntoView({behavior:`smooth`,block:`start`});return}window.scrollTo({top:0,behavior:`smooth`})}catch(e){this.logger.log(`Error scrolling to top:`,e),window.scrollTo(0,0)}}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};w2.autoAddCss=!1;function gM(t){return S2(t)}var Foe={"Yoga Studio":[`fak`,`beauty`],"Salon / Barbershop":[`fak`,`services`],"Event Space":[`fak`,`events`],"Comedy Club":[`fak`,`events`],"Women's Store":[`fak`,`shopping`],Gym:[`fak`,`beauty`],Spa:[`fak`,`beauty`],"Men's Store":[`fak`,`shopping`],"Clothing Store":[`fak`,`shopping`],"Shoe Store":[`fak`,`shopping`],"Gift Shop":[`fak`,`shopping`],Winery:[`fak`,`food-and-beverage`],"Perfume Shop":[`fak`,`shopping`],"Sporting Goods Shop":[`fak`,`shopping`],"Jewelry Store":[`fak`,`shopping`],"Flower Shop":[`fak`,`shopping`],"Watch Shop":[`fak`,`shopping`],"Health & Beauty Service":[`fak`,`beauty`],"Furniture / Home Store":[`fak`,`shopping`],"Optical Shop":[`fak`,`beauty`],"Salad Place":[`fak`,`food-and-beverage`],"Italian Restaurant":[`fak`,`food-and-beverage`],Cafeteria:[`fak`,`food-and-beverage`],Restaurant:[`fak`,`food-and-beverage`],Café:[`fak`,`food-and-beverage`],"American Restaurant":[`fak`,`food-and-beverage`],"Fast Food Restaurant":[`fak`,`food-and-beverage`],"Cocktail Bar":[`fak`,`food-and-beverage`],Delicatessen:[`fak`,`food-and-beverage`],"Japanese Restaurant":[`fak`,`food-and-beverage`],"Middle Eastern Restaurant":[`fak`,`food-and-beverage`],"Mediterranean Restaurant":[`fak`,`food-and-beverage`],"Brazilian Restaurant":[`fak`,`food-and-beverage`],Pub:[`fak`,`food-and-beverage`],"Beer Bar":[`fak`,`food-and-beverage`],Bar:[`fak`,`food-and-beverage`],Lounge:[`fak`,`food-and-beverage`],Nightclub:[`fak`,`food-and-beverage`],"Chocolate Shop":[`fak`,`food-and-beverage`],"Ice Cream Shop":[`fak`,`food-and-beverage`],"Donut Shop":[`fak`,`food-and-beverage`],"Coffee Shop":[`fak`,`food-and-beverage`],"Grocery Store":[`fak`,`shopping`],Pharmacy:[`fak`,`health`],"Convenience Store":[`fak`,`shopping`],"Dentist's Office":[`fak`,`health`],Bank:[`fak`,`services`],"Travel Agency":[`fak`,`airport`],"Shipping Store":[`fak`,`services`],"Mobile Phone Shop":[`fak`,`shopping`],Parking:[`fak`,`parking`],"Parking pay station":[`fak`,`deals`],"Accessible entrance":[`fak`,`wheelchair`],restroom:[`fak`,`restroom`],"Entrance Elevator":[`fak`,`elevator`],"Public Restrooms":[`fak`,`user`],"Public Bathroom":[`fak`,`user`],"Transport Service":[`fak`,`user`],Hotel:[`fak`,`hotels`],"Coming soon":[`fak`,`user`],"Roller Rink":[`fak`,`beauty`],"Music Venue":[`fak`,`events`],"Football Shop":[`fak`,`shopping`],Stage:[`fak`,`events`],Tavern:[`fak`,`food-and-beverage`],"Point of interest":[`fak`,`user`],Entrance:[`fak`,`user`],Exit:[`fak`,`user`],"Music Festival":[`fak`,`events`],"Public Art":[`fak`,`palette`]};function I2(t){return Foe[t]||[`fak`,`shopping`]}var vM={};w(vM,{faAirport:()=>zoe,faArrowTopRight:()=>Boe,faBackground:()=>yM,faBeauty:()=>Uoe,faCenter:()=>Voe,faCompass:()=>joe,faCompassNorth:()=>$oe,faDeals:()=>Hoe,faElevator:()=>Goe,faEvents:()=>qoe,faFoodAndBeverage:()=>Woe,faHealth:()=>Zoe,faHotels:()=>Yoe,faPalette:()=>Xoe,faParking:()=>Koe,faRestroom:()=>Qoe,faRoute:()=>Joe,faServices:()=>ese,faShopping:()=>tse,faUser:()=>nse,faWheelchair:()=>rse});var zoe={prefix:`fak`,iconName:`airport`,icon:[448,512,[],`e009`,`M431.4 140.8c-.2-.7-.6-1.3-1.1-1.9-14.7-18.5-41.3-23.7-61.9-11.8l-84.5 48.8-49.6-32.1 4.1-2.4c3.6-2 4.8-6.6 2.8-10.2s-6.6-4.8-10.2-2.8l-10.7 6.3-28-18.2 4.1-2.4c3.6-2 4.8-6.6 2.8-10.2s-6.6-4.8-10.2-2.8l-10.7 6.3-66.7-43.2-44.9 25.9 133.4 134.5-54.3 31.4c-10.7 6.1-27.7 21.2-41 36.2L33.3 254.2c-2.3-1.2-5.1-1.2-7.2 .1L4.2 266.9C2.3 268 1 270.1 .6 272.2s.4 4.5 1.9 6.1l65.4 70.9 28.8 92.1c.7 2.2 2.3 3.9 4.5 4.7 .8 .4 1.8 .5 2.8 .5 1.3 0 2.5-.4 3.7-1l21.9-12.6c2.3-1.3 3.6-3.6 3.7-6.1l2.9-80.6c19.7-4.1 41.3-11.3 51.9-17.5l54.3-31.4 49.8 182.7 44.9-25.9-4.1-79.3 10.7-6.3c3.6-2 4.8-6.6 2.8-10.2s-6.6-4.8-10.2-2.8l-4.1 2.4-1.7-33.5 10.7-6.3c3.6-2 4.8-6.6 2.8-10.2s-6.6-4.8-10.2-2.8l-4.1 2.4-3-59.1 84.5-48.7c20.6-11.8 29.4-37.4 20.7-59.5l-.4 .5z`]};var Boe={prefix:`fak`,iconName:`arrow-top-right`,icon:[427,512,[],`e010`,`M41 490.7l0-320 275.1 0-88.6-95.3 35.1-38 147.7 160-148.3 160.7-34.5-38 88.6-96-225.8 0 0 266.7-49.2 0z`]};var yM={prefix:`fak`,iconName:`background`,icon:[388,512,[],`e00a`,`M387.9 193.9C387.9 86.9 301 0 193.9 0S0 86.9 0 193.9 84.7 385.6 190.1 387.7l0 67.8c-11.6 1.9-20.5 11.9-20.5 24 0 13.5 11 24.4 24.4 24.4s24.4-11 24.4-24.4c0-12.1-8.8-22.2-20.5-24l0-67.8c105.3-2 190.1-88 190.1-193.8zM210.5 479.4c0 9.2-7.4 16.6-16.6 16.6s-16.6-7.4-16.6-16.6 7.4-16.6 16.6-16.6 16.6 7.4 16.6 16.6z`]};var Uoe={prefix:`fak`,iconName:`beauty`,icon:[576,512,[],`e000`,`M190.8 234.2c-21.8-10.6-45.1-16.3-66.9-18.6-.6-35.8 5.4-66.6 8.6-78.7 1-3.2 4.2-5.1 7.4-4.5 11.8 3.5 40 13.1 69.4 31.7-9 21.1-16 45.1-18.2 70.4l0 0zm176.6-70.4c29.1-18.6 57.6-28.2 69.4-31.7 3.2-.6 6.4 1 7.4 4.5 3.2 12.5 9.3 42.9 8.6 78.7-22.1 2.2-45.1 8-66.9 18.6-2.2-25.3-9-49-18.2-70.4l0 0zM260.9 417.6c-33.9 6.1-94.1 10.2-143.7-19.8-63-38.4-89-120-95-142.7-.6-3.2 1-6.7 4.2-7.7 21.8-5.8 101.1-23 163.8 14.4 5.1 71 49.6 131.2 70.4 155.5l0 0zM385.7 262.1c63-37.4 142.4-20.2 163.8-14.4 3.2 1 5.1 4.2 4.2 7.7-6.1 22.7-32 104.3-95 142.7-49.6 30.1-109.4 25.9-143.7 19.8 5.1-5.8 11.2-13.4 18.2-23 17.3-24 37.4-58.6 47-98.6 2.6-10.9 4.5-22.1 5.4-33.6l0 0zm-23.4-12.8c0 89.3-74.2 161.9-74.2 161.9s-74.2-72.6-74.2-161.9c0-76.8 54.4-140.8 70.1-157.8 2.2-2.2 6.1-2.2 8.3 0 15.7 17 70.1 81 70.1 157.8l0 0z`]};var Voe={prefix:`fak`,iconName:`center`,icon:[576,512,[],`e00f`,`M545.2 238.7l-50.9 0C486 138.2 406 57.9 305.5 49.9l0-50.9c0-9.6-8-17.3-17.3-17.3S271-10.6 271-1l0 50.9C170.5 58.2 90.5 138.2 82.2 238.7l-50.9 0c-9.6 0-17.3 8-17.3 17.3s7.7 17.3 17.3 17.3l50.9 0C90.5 373.4 170.5 454.1 271 462.1l0 50.9c0 9.6 8 17.3 17.3 17.3s17.3-7.7 17.3-17.3l0-50.9c100.2-8.3 180.8-88.6 188.8-188.8l50.9 0c9.6 0 17.3-7.7 17.3-17.3s-7.7-17.3-17.3-17.3zM459.1 256c0 5.8-.3 11.5-1 17.3-8 80.3-72.3 144.6-152.6 153-11.5 1.3-23 1.3-34.6 0-80.6-8.3-144.6-72.6-152.6-153l0 0c-.6-5.4-1-11.2-1-17.3s.3-11.5 1-17.3l0 0c8.3-80.6 72.3-144.6 152.6-152.6 11.5-1.3 23-1.3 34.6 0 80.3 8.3 144.6 72.3 152.6 152.6 .6 5.8 1 11.5 1 17.3zm-271.2 0a100.1 100.1 0 1 1 200.2 0 100.1 100.1 0 1 1 -200.2 0z`]};var joe={prefix:`fak`,iconName:`compass`,icon:[256,512,[],`e00d`,`M238.9 263.4l0 257.6-47 0-118.4-163.2 0 163.2-55.7 0 0-257.6 47 0 118.4 161.6 0-161.6 55.7 0zM26.8 203.5c-3.2 0-5.8-1.3-7.7-3.5-1.6-2.2-1.9-4.8-.6-7L119.9-4.2C121.2-7 124.7-9 128.2-9s7 1.9 8.3 4.8L238 193c1.6 3.2 .6 6.7-2.6 9s-7.7 2.2-10.9 .6l-96.3-53.4-96.3 53.4s-3.2 1.3-5.1 1.3l0 0z`]};var $oe={prefix:`fak`,iconName:`compass-north`,icon:[382,512,[],`e00b`,`M202.8 6.9c-6.5-6.5-17-6.5-23.6 0L112.5 73.6c-4.8 4.8-6.2 11.9-3.6 18.2 2.6 6.2 8.7 10.4 15.4 10.4l133.4 0c6.7 0 12.9-4 15.4-10.4 2.6-6.2 1.2-13.3-3.6-18.2L202.8 6.9zM191 133a190.5 190.5 0 1 0 0 381 190.5 190.5 0 1 0 0-381zm38.9 278.1l-74.7-107.9 0 97.6c0 9.9-8 17.9-17.9 17.9s-17.9-8-17.9-17.9l0-154.7c0-7.9 5.1-14.8 12.5-17s15.6 .5 20 6.9l74.7 107.9 0-97.6c0-9.9 8-17.9 17.9-17.9s17.9 8 17.9 17.9l0 154.7c0 7.9-5 14.8-12.5 17-7.4 2.3-15.6-.5-20-6.9z`]};var Hoe={prefix:`fak`,iconName:`deals`,icon:[512,512,[],`e007`,`M256 0a256 256 0 1 0 0 512 256 256 0 1 0 0-512zm0 30.1a225.9 225.9 0 1 1 0 451.8 225.9 225.9 0 1 1 0-451.8zM288 232l-10.2-2.2 0-66.9c19.5 6.1 30.7 23 36.8 41.6l46.7-18.6c-9.3-32-34.2-63.7-83.2-70.7l0-33.6-35.5 0 0 33.3c-53.4 5.8-81.3 41.6-81.3 80.6 0 51.5 30.1 73.3 73 81.3l8 1.6 0 72.3c-26.9-7.4-40.6-31-44.8-53.8l-49 18.6 .3 0c9.3 39.7 38.7 75.8 93.8 82.2l0 33.6 35.5 0 0-33.3c58.9-5.8 86.1-42.2 86.1-83.8 0-50.9-37.4-73-75.8-82.2zm-45.8-70.7l0 61.8c-17.6-4.8-27.5-13.8-27.5-31 0-12.5 7.7-26.2 27.5-30.7l0 0zM277.8 351l0-66.9c19.8 4.8 32 16 32 32.6s-9.6 30.1-32 34.2z`]};var Goe={prefix:`fak`,iconName:`elevator`,icon:[512,512,[],`e014`,`M292.7-4.7l64 64c6.2 6.2 16.4 6.2 22.6 0l64-64c4.6-4.6 5.9-11.5 3.5-17.4S438.5-32 432-32L304-32c-6.5 0-12.3 3.9-14.8 9.9s-1.1 12.9 3.5 17.4zm-160-22.6l-64 64c-4.6 4.6-5.9 11.5-3.5 17.4S73.5 64 80 64l128 0c6.5 0 12.3-3.9 14.8-9.9s1.1-12.9-3.5-17.4l-64-64c-6.2-6.2-16.4-6.2-22.6 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 128zM208 272a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zM80 400c0-26.5 21.5-48 48-48l64 0c26.5 0 48 21.5 48 48l0 16c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-16zm192 0c0-26.5 21.5-48 48-48l64 0c26.5 0 48 21.5 48 48l0 16c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-16zM400 272a48 48 0 1 1 -96 0 48 48 0 1 1 96 0z`]};var qoe={prefix:`fak`,iconName:`events`,icon:[576,512,[],`e003`,`M421.4 122.6c-24.3-24.3-27.2-62.1-8.6-89.6 1.6-2.2 1.3-5.4-.6-7.4L370.2-16.3c-2.2-2.2-5.8-2.2-8 0L132.8 213.1c-2.2 2.2-2.2 5.8 0 8l11.5 11.5c3.5 3.5 3.5 9.3 0 12.8s-9.3 3.5-12.8 0L120 233.9c-2.2-2.2-5.8-2.2-8 0L15.7 330.2c-2.2 2.2-2.2 5.8 0 8l41.9 41.9c1.9 1.9 5.1 2.2 7.4 .6 27.5-18.6 65.3-15.7 89.6 8.6s27.2 62.1 8.6 89.6c-1.6 2.2-1.3 5.4 .6 7.4l41.9 41.9c2.2 2.2 5.8 2.2 8 0L310.1 432c2.2-2.2 2.2-5.8 0-8l-11.5-11.5c-3.5-3.5-3.5-9.3 0-12.5 3.5-3.5 9.3-3.5 12.5 0l11.5 11.5c2.2 2.2 5.8 2.2 8 0L560 182.1c2.2-2.2 2.2-5.8 0-8l-41.9-41.9c-1.9-1.9-5.1-2.2-7.4-.6-27.5 18.6-65.3 15.7-89.6-8.6zm-225 174.7c-4.5 4.5-11.8 4.5-16.3 0L152 269.1c-4.5-4.5-4.5-11.8 0-16.3s11.8-4.5 16.3 0L196.5 281c4.5 4.5 4.5 11.8 0 16.3zM247 344.6c-4.5 4.5-11.8 4.5-16.3 0l-28.2-28.2c-4.5-4.5-4.5-11.8 0-16.3s11.8-4.5 16.3 0L247 328.3c4.5 4.5 4.5 11.8 0 16.3zm48.3 48c-4.5 4.5-11.8 4.5-16.3 0l-28.2-28.2c-4.5-4.5-4.5-11.8 0-16.3s11.8-4.5 16.3 0l28.2 28.2c4.5 4.5 4.5 11.8 0 16.3zM421.4 229.1c-.3 2.9-2.6 5.4-5.1 6.7l-43.2 18.9c-1.9 1-3.5 2.2-4.2 4.2l-18.9 43.2s-1 1.9-1.9 2.6c-1.3 1.3-2.9 2.2-4.8 2.6-2.9 .3-6.1-.6-8-2.9l-31-35.2c-1.3-1.6-3.5-2.6-5.4-2.9l-46.7-4.5c-2.9 0-5.8-2.2-7-4.8s-1.3-6.1 0-8.3l23.7-40.3c1-1.9 1.6-4.2 1-6.1l-10.2-45.8c-.6-2.9 0-6.1 2.2-8.3s5.1-2.9 8.3-2.2l45.8 10.2c2.2 .3 4.2 0 6.1-1l40.3-23.7c2.6-1.6 5.8-1.6 8.3 0 2.6 1.3 4.5 4.2 4.8 7l4.5 46.7c0 2.2 1.3 4.2 2.9 5.4l35.2 31c2.2 1.9 3.2 5.1 2.9 8l0 0z`]};var Woe={prefix:`fak`,iconName:`food-and-beverage`,icon:[512,512,[],`e001`,`M497.9 145.9l-127 0 0-114.6-24 0 0 114.6-127.4 0c-8 0-14.4 6.4-14.4 14.4l0 17.3c0 8 6.4 14.4 14.4 14.4l19.2 0 3.5 53.8c-61.1-30.1-140.5-23.4-192.6 18.2-29.1 23-47.4 55-48.6 90.6 0 5.1 3.8 9.3 9 9.3l301.4 0c5.1 0 9.3-4.2 9-9.3-1.6-43.5-28.8-80.6-66.6-103l-3.8-59.5 218.9 0-17 259.2c-.6 10.9-11.8 18.2-23 18.2l-116.2 0c5.1-4.5 8.6-10.9 8.6-18.2l0-19.5c0-4.8-4.2-8.3-9-8.3l-303 0c-4.8 0-9 3.5-9 8.3l0 19.5c0 17.9 19.2 29.4 37.4 29.4l390.4 0c17-.3 32.6-11.8 33.6-28.8L479 192 498.2 192c8 0 14.4-6.4 14.4-14.4l0-17.3c0-8-6.4-14.4-14.4-14.4zm3.8 31.7c0 1.9-1.6 3.8-3.8 3.8l-278.4 0c-1.9 0-3.8-1.6-3.8-3.8l0-17.3c0-1.9 1.6-3.8 3.8-3.8l278.4 0c1.9 0 3.8 1.6 3.8 3.8l0 17.3zM9.3 402.9l301.8 0c4.8 0 8.6-3.8 8.6-8.6s-3.8-8.6-8.6-8.6l-301.8 0c-4.8 0-8.6 3.8-8.6 8.6s3.8 8.6 8.6 8.6z`]};var Zoe={prefix:`fak`,iconName:`health`,icon:[512,512,[],`e002`,`M256 0a256 256 0 1 0 0 512 256 256 0 1 0 0-512zm0 30.1a225.9 225.9 0 1 1 0 451.8 225.9 225.9 0 1 1 0-451.8zM393.9 212.5l-94.4 0 0-94.4c0-5.1-4.2-9.3-9.3-9.3l-68.5 0c-5.1 0-9.3 4.2-9.3 9.3l0 94.4-94.4 0c-5.1 0-9.3 4.2-9.3 9.3l0 68.5c0 5.1 4.2 9.3 9.3 9.3l94.4 0 0 94.4c0 5.1 4.2 9.3 9.3 9.3l68.5 0c5.1 0 9.3-4.2 9.3-9.3l0-94.4 94.4 0c5.1 0 9.3-4.2 9.3-9.3l0-68.5c0-5.1-4.2-9.3-9.3-9.3z`]};var Yoe={prefix:`fak`,iconName:`hotels`,icon:[512,512,[],`e00c`,`M50.1 357.8l8.1-18.1 80.6 36.1-8.1 18.1zm462.7 78.7L428 207.7c14.4-8.6 26.2-21.4 33.9-36.8 10.9-22.4 11.8-48 3.2-72.3-17.9-48.3-71.7-74.9-119.7-59.2-17 5.4-31.4 15.7-42.2 29.4-7.7-2.2-15.7-3.5-23.7-4.5-3.5-.3-6.7 0-10.2-.3-1.6-4.5-3.5-8.3-5.8-11.2-2.2-3.2-5.4-6.4-9.3-9.9-14.4-12.8-32.3-21.1-51.2-22.7-5.1-.3-9.6-.6-13.4 0-4.8 .3-10.2 2.2-16 5.1-10.9 5.4-20.5 13.4-28.8 23.7L46.2 171.8c-8.3 10.9-15 23-19.8 35.5-5.4 12.5-9.3 25.9-10.9 40.3L-.5 407c-1.3 13.1 0 25.9 3.5 37.8 1.9 6.4 4.5 11.2 7.4 15.4 2.2 3.2 5.4 6.4 9.3 9.9 14.4 12.8 32.3 21.1 51.2 22.7 2.9 .3 5.4 .3 8 .3l0 0c1.9 0 3.8 0 5.4-.3 4.8-.3 10.2-2.2 16-5.1 10.9-5.4 20.5-13.4 28.8-23.7l98.6-122.9c8.3-10.9 15-23 19.8-35.5 5.4-12.5 9.3-25.9 10.9-40l13.8-136.3 1.9 0c3.5 .3 6.7 .3 10.2 .3 .6 9.3 1.9 18.6 5.4 27.8 14.4 39 52.2 63.7 91.2 63.7 3.2 0 6.4-.3 9.6-.6l42.9 116.5-44.5 14.4 12.2 37.8 46.1-15 6.4 17-59.5 19.5 12.2 37.8 61.1-19.8 8.3 22.1 37.1-13.8zM237.6 92.5c2.9-1.6 9-3.5 17.3-4.5 .3 4.2 0 8.3 0 12.8-8.6-2.9-14.7-6.1-17.3-8.3zm1.3 170.2c-1.3 11.8-4.5 23.7-9.6 34.9-4.2 10.9-9.9 21.4-17 30.7L114 450.9c-6.4 8-13.8 14.1-22.1 18.2-4.5 2.2-7.7 2.9-9.3 3.2l-9.3 0c-14.7-1.3-28.5-7.7-40-17.9-2.9-2.6-5.1-4.8-6.7-7-1-1.3-2.6-4.2-4.2-9.6-2.6-9.3-3.8-19.2-2.6-29.8L36 248.6c1.6-11.8 4.8-23.7 9.6-34.9 4.2-10.9 9.9-21.4 17-30.7L161.1 60.5c6.4-8 13.8-14.1 22.1-18.2 4.5-2.2 7.7-2.9 9.3-3.2l9.3 0c14.7 1.3 28.5 7.7 40 17.9 2.6 2.6 5.1 5.1 6.4 7l.3 .6c-8 1.3-14.7 3.2-20.5 6.1-2.6-3.2-5.8-6.1-9.6-8-6.4-2.9-13.8-3.2-20.5-.3s-12.2 8.3-15 15c-5.8 14.1 .6 30.4 14.1 36.2 3.5 1.6 7 2.2 10.9 2.2 3.2 0 6.7-.6 9.9-1.9 1.9-1 3.5-2.2 5.1-3.5 7.4 6.1 17.9 10.9 30.1 14.1L239.2 262.1zM212.9 93.1s-1.6 2.2-2.9 2.9c-1 .6-2.9 1-5.1 0-3.8-1.6-5.4-6.4-3.8-10.6 .6-1.9 2.2-3.2 4.2-4.2 1-.6 2.9-1 5.1 0 1.9 .6 3.2 2.2 3.8 4.2-.6 1.9-1.3 3.5-1.3 5.1l0 2.6zM274.4 105c.6-5.8 .6-11.5 0-17.3l2.9 0c5.1 .6 9.6 1.3 13.4 2.2-2.2 5.1-3.8 10.2-5.1 15.7-3.2 0-6.1 0-9.6-.3l-1.9 0zm52.5 38.4c-2.6-6.7-3.5-13.4-3.5-20.2 3.5-1.6 6.7-3.2 9-5.4 6.4-5.1 8-11.2 8.3-15.4 .3-4.5-1-8.6-3.2-12.5 5.4-5.8 12.2-10.9 20.2-13.4 28.2-9.3 59.5 6.7 70.1 35.2 5.1 13.8 4.5 28.5-1.6 41.3-5.8 12.2-16.3 21.1-29.1 25.3-28.2 9.3-59.5-6.7-70.1-35.2z`]};var Xoe={prefix:`fak`,iconName:`palette`,icon:[512,512,[],`e012`,`M453 132.6q11.2 21.2 11.2 45.1 0 46.9-37.3 64.8-5 2.4-15.2 6.6-12.9 5.4-18.9 8.5-9.8 5.1-16.3 11.1-9.2 8.5-9.1 25.7 .1 15.5 6.8 29.9 1.8 3.8 6.4 11.3 7.5 12.4 9.8 19.5 4.5 13.4 1.6 28.4-2.6 14-10.8 26.2-19.1 28.3-58.2 41.8-31.3 10.8-70.2 10.8-51.4 0-93.2-17.6-38.5-16.2-66.1-46-25.6-27.6-39.1-63.9-12.9-34.5-12.9-71.3 0-34.2 12.7-68.8 13.3-36.4 38-65.7 26.9-31.9 63.7-50.6 40.5-20.6 89.3-23.3 77.1-4.2 132.6 17 2.2 .8 3.1 2.9t.1 4.3-2.9 3.1-4.3 .1q-53.3-20.4-128-16.3-46.5 2.6-84.8 22.1-34.8 17.7-60.2 47.9-23.4 27.8-36.1 62.3-12 32.7-12 65 0 34.8 12.2 67.4 12.7 34.2 36.9 60.2 26 28 62.2 43.3 39.7 16.7 88.9 16.7 37.1 0 66.6-10.2 35.5-12.3 52.5-37.5 6.9-10.3 9.1-22 2.3-12.2-1.3-22.9-2-6-8.8-17.2-4.8-8-6.9-12.4-7.8-16.7-7.9-34.6-.1-22.1 12.8-34 7.6-6.9 18.6-12.7 6.5-3.4 19.8-8.9 9.9-4.1 14.6-6.4 30.9-14.8 30.9-54.7 0-21.1-9.9-39.8-1.1-2-.4-4.3t2.7-3.3 4.3-.4 3.3 2.7zM289.7 405.3a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zM267.6 162.8a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zM164.7 199.5a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zm-44.1 103a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zm58.8 88a29.3 29.3 0 1 0 0-58.7 29.3 29.3 0 1 0 0 58.7zM299.1 181.9c8.5 7.4 16.6 15.7 24.3 25l0 0c3.9 4.7 7.7 9.6 11.2 14.6l-19.8 21.1c1.1 12-3 24.4-12.3 33.7-.4 .4-.8 .7-1.3 1-11.3 10.6-26.1 17.2-40.8 19.9-15.1 2.8-30.7 1.5-42.4-4.3-1.6-.8-2.7-2.3-3-4.1s.3-3.6 1.6-4.9c6-6 9.1-11.4 10.8-16.5 1.8-5.2 2.2-10.2 2.6-15.6 .6-10.8 .6-23.3 12.7-35.4 9-9 21-13 32.7-12.3l22.7-21.2 1.1-1zm130.1-122c8.1-7.5 21.1-7.4 28.9 .4 4 4 6.1 9.1 6.1 14.4 .2 5.5-1.9 10.6-5.7 14.5l0 0-116.2 123.9c-3.3-4.6-6.8-9.1-10.4-13.4l0 0c-7.8-9.4-16-17.9-24.7-25.5l121.9-114.3 0 0z`]};var Koe={prefix:`fak`,iconName:`parking`,icon:[448,512,[],`e006`,`M16 0L246.4 0C356.5 0 432 63.7 432 165.4S356.5 332.2 247 332.2l-119.7 0 0 179.8-111.4 0 0-512zM315.8 165.4c0-45.1-36.5-73.3-89.3-73.3l-98.9 0 0 147.8 98.9 0c52.8 0 89.3-26.9 89.3-74.6z`]};var Qoe={prefix:`fak`,iconName:`restroom`,icon:[640,512,[],`e015`,`M176.5 48a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zm-56 304l0 128c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-154.8c-8.1 9.2-21.1 13.2-33.5 9.4-16.9-5.3-26.3-23.2-21-40.1l29.7-95.2C44.9 156.9 84.1 128 128.5 128s83.6 28.9 96.8 71.2L255 294.4c5.3 16.9-4.1 34.8-21 40.1-12.4 3.9-25.4-.2-33.5-9.4l0 154.9c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-128-16 0zM320.5 0c13.3 0 24 10.7 24 24l0 464c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-464c0-13.3 10.7-24 24-24zm240 48a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zm-120 432l0-96-17.8 0c-10.9 0-18.6-10.7-15.2-21.1l9-26.9c-3.2 0-6.4-.5-9.5-1.5-16.9-5.3-26.3-23.2-21-40.1l29.7-95.2c13.2-42.3 52.4-71.2 96.8-71.2s83.6 28.9 96.8 71.2L639 294.4c5.3 16.9-4.1 34.8-21 40.1-3.2 1-6.4 1.5-9.5 1.5l9 26.9c3.5 10.4-4.3 21.1-15.2 21.1l-17.8 0 0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96-16 0 0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32z`]};var Joe={prefix:`fak`,iconName:`route`,icon:[384,512,[],`e00e`,`M22.7 206.4c-3.2-3.2-5.1-7.7-4.5-11.8 .3-4.2 3.2-7.4 7-8.6L347.8 82.6c4.8-1.6 10.2 0 14.1 4.2 3.8 3.8 5.8 9.6 4.2 14.1L262.7 423c-1.6 5.1-6.7 7.7-12.2 6.7-5.8-1-10.6-5.8-12.2-11.2L192.3 257 30.4 210.6c-2.6-.6-4.8-2.2-6.7-4.2l-.3 0z`]};var ese={prefix:`fak`,iconName:`services`,icon:[512,512,[],`e005`,`M89.6 51.2l102.4 0c7 0 12.8-5.8 12.8-12.8S199 25.6 192 25.6l-140.8 0C22.7 25.6 0 48.6 0 76.8l0 384C0 489.3 23 512 51.2 512L192 512c7 0 12.8-5.8 12.8-12.8S199 486.4 192 486.4l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 435.2 192 435.2l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 384 192 384L89.6 384c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 332.8 192 332.8l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 281.6 192 281.6l-102.4 0c-7 0-12.8-5.8-12.8-12.8S82.6 256 89.6 256L192 256c7 0 12.8-5.8 12.8-12.8S199 230.4 192 230.4l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 179.2 192 179.2l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 128 192 128L89.6 128c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l102.4 0c7 0 12.8-5.8 12.8-12.8S199 76.8 192 76.8l-102.4 0c-7 0-12.8-5.8-12.8-12.8s5.8-12.8 12.8-12.8l0 0zM460.8 385.3l0-1.3c0-33.6-28.8-63.4-72.6-81.9 21.4-26.9 21.4-73.3 21.4-97.3 0-25.6-17.3-204.8-38.4-204.8s-38.4 179.2-38.4 204.8c0 20.2 .3 70.1 21.8 97.3-44.2 18.6-73 48.3-73 81.9l0 1.3c-29.1 6.1-51.2 31.7-51.2 62.7 0 35.5 28.8 64 64 64s64-28.8 64-64c0-31-22.1-57-51.2-62.7l0-1.3c0-23.4 25.3-46.7 64-61.4 39 14.7 64 38.1 64 61.4l0 1.3c-29.4 6.1-51.2 31.7-51.2 62.7 0 35.5 28.8 64 64 64s64-28.8 64-64c0-31-22.1-57-51.2-62.7l0 0zM256 448a38.4 38.4 0 1 1 76.8 0 38.4 38.4 0 1 1 -76.8 0zM371.2 256a12.8 12.8 0 1 1 0 25.6 12.8 12.8 0 1 1 0-25.6zM448 409.6a38.4 38.4 0 1 1 0 76.8 38.4 38.4 0 1 1 0-76.8z`]};var tse={prefix:`fak`,iconName:`shopping`,icon:[512,512,[],`e004`,`M498.1 501.1L446.6 107.8c-.6-4.8-4.8-8.6-9.6-8.6l-76.5 0 0-22.4c0-42.6-34.6-77.1-77.1-77.1-9.3 0-17.9 1.6-26.2 4.8-8.3-2.9-17-4.8-26.2-4.8-42.6 0-77.1 34.6-77.1 77.1l0 22.4-77.8 0c-4.8 0-9 3.5-9.6 8.6L14.9 501.1c0 2.9 .3 5.4 2.2 7.7s4.5 3.2 7.4 3.2l464.3 0c2.9 0 5.4-1.3 7.4-3.2s2.6-5.1 2.2-7.7l0 0zM354.4 481.3l47.7-362.6 26.6 0 47.7 364.2zM283.1 19.5c32 0 57.6 25.9 57.6 57.6l0 22.4-33 0 0-22.4c0-23-10.2-43.5-25.9-57.6l1.3 0zm-25.9 6.4c18.6 9.6 31.4 28.8 31.4 51.2l0 22.4-63 0 0-22.4c0-22.4 12.8-41.9 31.4-51.2l0 0zM173 77.1c0-32 25.9-57.6 57.6-57.6l1.3 0c-16 14.1-25.9 34.9-25.9 57.6l0 22.4-33 0 0-22.4z`]};var nse={prefix:`fak`,iconName:`user`,icon:[320,512,[],`e008`,`M190.7 104l0 0c28.8 0 52.2-23.4 52.2-52.2S219.5-.3 190.7-.3l0 0c-28.8 0-52.2 23.7-52.2 52.2s23.7 51.8 52.2 51.8zM75.8 381.1l0 0c-.6 1.6-1.6 3.2-2.9 4.8-11.5 13.8-22.7 27.2-34.2 41L12.1 458.6c-5.4 6.4-4.5 16 1.9 21.4l20.5 17.3c2.9 2.2 6.1 3.5 9.9 3.5 4.5 0 8.6-1.9 11.5-5.4 12.2-14.4 38.1-45.1 51.8-61.4 1.6-1.9 3.5-4.2 5.4-6.1 4.8-5.1 9.3-10.6 12.8-16.6 4.8-9 9.3-18.2 13.1-27.5L88.6 345.6c-4.2 11.8-8 23.7-12.2 35.2zM312 223.7l-1.3 0c-6.7-1-13.1-2.2-19.5-3.8-39.4-11.8-62.1-33-71.7-65.9-1.9-6.7-5.1-12.8-9-18.6-10.2-15.4-26.2-25.6-44.2-28.2-16.3-2.9-32.6 1.6-45.4 11.8-17.3 14.1-35.8 26.9-53.8 39.4L63 161.3c-10.2 7-19.5 16.3-26.6 26.9-9.9 14.1-20.2 28.2-30.7 42.2l-7 9.6c-4.8 6.7-3.5 16.3 3.2 21.1l21.8 15.7c6.7 4.8 16.3 3.5 21.1-3.5l7-9.6c11.8-16.3 23-32 34.9-47.4 2.2-2.6 4.5-5.1 7.4-7l-9.6 54.4c-3.5 19.2 3.5 38.4 18.2 50.9 11.8 9.9 24 20.2 35.8 30.1 13.4 11.2 26.9 22.4 40.3 33.9 1.6 1.3 2.9 3.2 3.8 5.4 7.7 20.5 15 41 22.4 61.4l20.5 56.3c2.2 6.1 8 9.9 14.1 9.9 1.6 0 3.5 0 5.1-1l25-9c7.7-2.9 11.8-11.5 9-19.2-9-25.3-33.9-94.1-47.7-131.2-1.3-2.9-2.9-5.4-5.4-7.7-13.8-11.8-27.5-23.7-41.6-34.9-1.6-1.3-2.2-1.6-1.3-5.4 2.9-11.2 5.1-22.4 6.7-33.6 2.2-16.3 4.2-28.8 7-42.9 29.4 31.7 69.8 50.6 112.6 53.4 4.2 0 8-1.3 11.2-3.8 3.2-2.9 4.8-7 4.8-11.2l0-26.9c0-7.7-5.8-14.1-13.1-15z`]};var rse={prefix:`fak`,iconName:`wheelchair`,icon:[512,512,[],`e013`,`M248 40a56 56 0 1 1 -112 0 56 56 0 1 1 112 0zM117.9 197.6l12.6 63c-38.6 12.4-66.5 48.7-66.5 91.4 0 53 43 96 96 96 35.6 0 66.7-19.4 83.3-48.2 2.3 .1 4.6 .2 7 .2l4.1 0c1 0 2.1 0 3.1 0l55.2 0c-20.4 64.9-81 112-152.7 112-88.4 0-160-71.6-160-160 0-73.8 50-135.9 117.9-154.4zm148.6-28.1l23.7 118.5 60.5 0c33.3 0 63.2 20.7 74.9 51.9l25.5 68 18.7-6.2c16.8-5.6 34.9 3.5 40.5 20.2s-3.5 34.9-20.2 40.5l-48 16c-16.3 5.4-34-3-40.1-19.1l-36.3-96.9c-2.3-6.2-8.3-10.4-15-10.4l-86.1 0c-.4 0-.8 0-1.3 0l-13.1 0c-30.5 0-56.8-21.5-62.8-51.4L165.3 189.7c-6.4-31.9 18-61.7 50.6-61.7 24.6 0 45.8 17.4 50.6 41.5z`]};var ci=class t{onDestroy=new Jt;logger=se(Ct);mapService=se(tr);navigatorService=se(Zr);loadedDataService=se(In);iconLibraryService=se(Vt);document=se(Sn);markers=new Set;_hasCurrentLocationMarker=!1;ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}getIconFromPlace(e){this.logger.log(`getIconFromPlace`,e);let[n,o]=I2(e.localizedCategory||``);return this.iconLibraryService.getIconDefinition(n,o)}toSVGString(e){return fM(n=>{n(gM(yM)),n(gM(e))}).html.join(``)}createPlaceMarkerElement(e){let n=this.getIconFromPlace(e);return this.createElement(e.mapvxId,n)}createOriginMarkerElement(){let e=this.iconLibraryService.getIconDefinition(`fak`,`user`);return this.createElement(`origin`,e,[`route-marker`,`origin-marker`])}createElement(e,n,o=[]){let c=this.document.createElement(`div`);return c.className=`marker`,c.classList.add(...o),c.id=`${e}-marker`,c.innerHTML=this.toSVGString(n),c}addMarker(e){if(this.markers.has(e.mapvxId)){this.logger.log(`Marker already exists for place`,e.mapvxId);return}let n={element:this.createPlaceMarkerElement(e),id:e.mapvxId,coordinate:e.position,floorId:e.inFloors?.[0],onClick:()=>{this.logger.log(`Marker clicked for place`,e.mapvxId),this.logger.logEvent(`marker_clicked`,{id:e.mapvxId,name:e.title,clientId:e.clientId||``}),this.navigatorService.navigateToProfile(e.mapvxId)},anchor:`bottom`};this.mapService.addMarker(n),this.markers.add(e.mapvxId),this.logger.log(`Marker added for place`,e.mapvxId)}addInitialMarkers(){this.loadedDataService.getAvailablePlaces().pipe(Qi(1),ri(this.onDestroy)).subscribe({next:e=>{for(let n of e)this.addMarker(n)},error:e=>{this.logger.logWarning(`Error adding initial markers`,e)}})}addMarkers(e){this.mapService.mapReady.pipe(gr(n=>n),Qi(1),ri(this.onDestroy)).subscribe({next:()=>{this.removeAllMarkers();for(let n of e)this.addMarker(n)},error:n=>{this.logger.logWarning(`Error adding markers`,n)}})}removeAllMarkers(){for(let e of this.markers)this.mapService.removeMarker(e);this.markers.clear()}hasMarker(e){return this.markers.has(e)}selectMarker(e){if(!this.markers.has(e)){this.logger.logWarning(`Marker not found`,e);return}let n=this.document.getElementById(`${e}-marker`);if(!n){this.logger.logWarning(`Marker not found`,e);return}n.classList.add(`selected`)}deselectMarker(e){if(!this.markers.has(e)){this.logger.logWarning(`Marker not found`,e);return}let n=this.document.getElementById(`${e}-marker`);if(!n){this.logger.logWarning(`Marker not found`,e);return}n.classList.remove(`selected`)}deselectMarkers(){let e=this.document.querySelectorAll(`.marker.selected`);for(let n of e)n.classList.remove(`selected`)}addOriginMarker(e){let n={element:this.createOriginMarkerElement(),id:`origin`,coordinate:e,anchor:`bottom`};this.mapService.addMarker(n),this.markers.add(`origin`)}addDestinationMarker(e){let n={element:this.createElement(e.mapvxId,this.getIconFromPlace(e),[`route-marker`,`destination-marker`]),id:e.mapvxId,coordinate:e.position,anchor:`bottom`};this.mapService.addMarker(n),this.markers.add(e.mapvxId)}addRouteMarker(e){let n={element:this.createElement(e.mapvxId,this.getIconFromPlace(e),[`route-marker`]),id:e.mapvxId,coordinate:e.position,anchor:`bottom`};this.mapService.addMarker(n),this.markers.add(e.mapvxId)}addRouteMarkers(e){for(let n of e)this.addRouteMarker(n)}createCurrentLocationMarkerElement(){let e=this.document.createElement(`div`);return e.className=`current-location-marker`,e.id=`current-location-marker`,e.innerHTML=zL,e}addCurrentLocationMarker(e){let n={element:this.createCurrentLocationMarkerElement(),id:`current-location`,coordinate:e,anchor:`bottom`};this.mapService.addMarker(n),this._hasCurrentLocationMarker=!0}updateCurrentLocationMarker(e){this.mapService.updateMarkerPosition(`current-location`,e)}getCurrentLocationMarkerElement(){return this.document.getElementById(`current-location-marker`)}get hasCurrentLocationMarker(){return this._hasCurrentLocationMarker}removeCurrentLocationMarker(){this.mapService.removeMarker(`current-location`),this._hasCurrentLocationMarker=!1}prepareToMapReuse(){this.removeAllMarkers()}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};var _u=class t{sdkService=se(Eo);logger=se(Ct);markerService=se(ci);currentlyWatchingLocation=dt(!1);currentLocation=new Cn(null);currentBearing=new Cn(null);hasBearingPermission=!1;watchId;async checkLocationPermission(){return`permissions`in navigator?navigator.permissions.query({name:`geolocation`}).then(async e=>e.state).catch(e=>(this.logger.logWarning(e),`denied`)):(this.logger.log(`Permissions API not supported`),`denied`)}async requestLocationPermission(){return new Promise(e=>{navigator.geolocation.getCurrentPosition(()=>{console.log(`requestLocationPermission granted`),e(`granted`)},n=>{console.log(`requestLocationPermission denied`,n),n.code===3?e(`prompt`):e(`denied`)},{enableHighAccuracy:!0,timeout:5e3})})}async getCurrentLocation(){return this.currentlyWatchingLocation()&&this.currentLocation.value!=null?this.currentLocation.value:new Promise((e,n)=>{navigator.geolocation.getCurrentPosition(o=>{e(A1(o))},o=>{n(new Error(`Error getting current location`,{cause:o}))},{enableHighAccuracy:!0})})}checkBearingLocation(){typeof DeviceOrientationEvent<`u`&&`requestPermission`in DeviceOrientationEvent?DeviceOrientationEvent.requestPermission().then(n=>{this.hasBearingPermission=n===`granted`}).catch(n=>{this.logger.logWarning(n),this.hasBearingPermission=!1}):this.hasBearingPermission=!0}startWatching(){this.checkBearingLocation(),console.log(`startWatching`),console.log(`hasBearingPermission`,this.hasBearingPermission),this.currentlyWatchingLocation.set(!0),!this.watchId&&(this.watchId=this.sdkService.watchUserLocation(e=>{this.currentLocation.next(e)},e=>{this.logger.logWarning(`Error watching user location`,e)}),this.hasBearingPermission&&this.sdkService.watchUserHeading(e=>{this.currentBearing.next(e)},e=>{this.logger.logWarning(`Error watching user bearing`,e)}))}stopWatching(){this.watchId&&this.sdkService.stopWatchingUserLocation(this.watchId),this.hasBearingPermission&&this.sdkService.stopWatchingUserHeading(),this.watchId=void 0,this.markerService.removeCurrentLocationMarker(),this.currentlyWatchingLocation.set(!1)}temporalStopWatching(){this.watchId&&this.sdkService.stopWatchingUserLocation(this.watchId),this.hasBearingPermission&&this.sdkService.stopWatchingUserHeading(),this.watchId=void 0}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};var Zv=(s=>(s[s.NotStarted=0]=`NotStarted`,s[s.Playing=1]=`Playing`,s[s.Paused=2]=`Paused`,s[s.Finished=3]=`Finished`,s[s.Stepping=4]=`Stepping`,s))(Zv||{});var ise=1.5;var Io=class t{logger=se(Ct);mapService=se(tr);sdkService=se(Eo);platformId=se(Rs);document=se(Sn);animationStatusSubject=new Cn(0);activeRouteSubject=new Cn(null);currentStepSubject=new Cn(null);getRoute(e,n){return this.sdkService.getRoute(e,n)}getSecondaryOrangeColor(){if(!Aa(this.platformId))return`#EE5845`;try{return getComputedStyle(this.document.documentElement).getPropertyValue(`--definitions-colors-secondary-orange`).trim()}catch(e){return this.logger.logWarning(`Error getting --definitions-colors-secondary-orange:`,e),`#EE5845`}}startAnimatingRoute(e){this.animationStatusSubject.next(1),this.activeRouteSubject.next(e),this.mapService.startAnimatingRoute(e,this.getDrawConfig(),this.getAnimationConfig(1))}startSteppingRoute(e){this.animationStatusSubject.next(4),this.activeRouteSubject.next(e),this.mapService.addStepAnimation(e,this.getDrawConfig(),this.getAnimationConfig(4))}animateNextStep(){this.mapService.nextStepAnimation()}animatePreviousStep(){this.mapService.previousStepAnimation()}centerOnCurrentStep(){this.mapService.centerOnCurrentStepAnimation()}getDrawConfig(){let e=this.getSecondaryOrangeColor();return{behindPathStyle:{type:`Solid`,color:e},aheadPathStyle:{type:`Solid`,color:`#000000`},routeIcon:this.getRouteIcon(e)}}getAnimationConfig(e){return{changeFloorTime:ise,callBack:({isFinished:n,step:o})=>{n?(this.animationStatusSubject.next(3),this.currentStepSubject.next(null)):(this.animationStatusSubject.next(e),this.currentStepSubject.next(o))}}}getRouteIcon(e){let n=this.document.createElement(`div`);return n.className=`route-icon`,n.id=`route-icon`,n.innerHTML=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1997
1997
|
<circle cx="15" cy="15" r="15" fill="${e}"/>
|
|
1998
1998
|
<path d="M10.0788 19.6042L14.5476 8.6442C14.7061 8.25536 15.0835 8 15.5013 8C15.9191 8 16.2965 8.25536 16.455 8.6442L20.9238 19.6042C21.1946 20.2717 20.7106 21 19.9932 21C19.7684 21 19.5523 20.9246 19.3766 20.7882L15.5013 17.75L11.6232 20.7882C11.4474 20.9246 11.2313 21 11.0066 21C10.292 21 9.80512 20.2687 10.076 19.6042H10.0788Z" fill="white"/>
|
|
1999
1999
|
</svg>`,n}pauseRouteAnimation(){this.animationStatusSubject.next(2),this.mapService.pauseAnimatingRoute()}resumeRouteAnimation(){this.animationStatusSubject.next(1),this.mapService.resumeAnimatingRoute()}restartRouteAnimation(){this.animationStatusSubject.next(1),this.mapService.restartAnimatingRoute()}removeRoute(){this.animationStatusSubject.next(0),this.activeRouteSubject.next(null),this.currentStepSubject.next(null),this.mapService.removeRoute()}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};var T2={term:``,results:[]};function C2(t,e){let n=e?.injector??se(ii),o=new Ko(1),c=Ot(()=>{let s;try{s=t()}catch(m){si(()=>o.error(m));return}si(()=>o.next(s))},{injector:n,manualCleanup:!0});return n.get(oi).onDestroy(()=>{c.destroy(),o.complete()}),o.asObservable()}function Yn(t,e){let o=!e?.manualCleanup?e?.injector?.get(oi)??se(oi):null,c=ose(e?.equal),s;e?.requireSync?s=dt({kind:0},{equal:c}):s=dt({kind:1,value:e?.initialValue},{equal:c});let m,x=t.subscribe({next:I=>s.set({kind:1,value:I}),error:I=>{s.set({kind:2,error:I}),m?.()},complete:()=>{m?.()}});if(e?.requireSync&&s().kind===0)throw new tt(601,!1);return m=o?.onDestroy(x.unsubscribe.bind(x)),Xe(()=>{let I=s();switch(I.kind){case 1:return I.value;case 2:throw I.error;case 0:throw new tt(601,!1)}},{equal:e?.equal})}function ose(t=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&t(e.value,n.value)}var Xn=class t{loadedDataService=se(In);homePlaces=dt([]);showCategoryFilters=dt(!0);showCityFilter=dt(!0);defaultToMap=dt(!1);activeView=ai(()=>this.defaultToMap()?`map`:`grid`);inputValue=dt(``);selectedInstitution=dt(``);hideDeals=dt(!1);cardWidth=dt(void 0);rowsPerPage=dt(2);initialInstitutionId=dt(``);showDealLabels=dt(!1);lastListedPlaces=dt([]);selectedCity=ai(()=>{let e=this.selectedInstitution(),n=this.loadedDataService.cityFilterOptions();return n.find(c=>c.institutionId===e)??(n.length>0?n[0]:void 0)});cityFilterGroups=Xe(()=>{let e=new Map(this.loadedDataService.loadedInstitutions().map(o=>[o.mapvxId,o.city])),n=[];for(let o of this.loadedDataService.cityFilterOptions()){let c=e.get(o.institutionId)?.trim()||o.name,s=n.find(m=>m.name===c);s?s.filterIds.push(o.filterId):n.push({name:c,option:o,filterIds:[o.filterId]})}return n});selectedCityGroup=Xe(()=>{let e=this.selectedCity();if(!e)return;let n=this.cityFilterGroups();return n.find(o=>o.filterIds.includes(e.filterId))??(n.length>0?n[0]:void 0)});availableCityGroups=Xe(()=>{let e=this.cityFilterGroups(),n=this.initialInstitutionId(),o=this.loadedDataService.loadedInstitutions().find(s=>s.mapvxId===n)?.city?.trim();if(!o)return e;let c=e.filter(s=>s.name===o);return c.length>0?c:e});selectedFilterId=Xe(()=>this.selectedCity()?.filterId??``);loadedPlaces=Yn(this.loadedDataService.getAvailablePlaces(),{initialValue:[]});listablePlaceIds=Xe(()=>{let e=this.loadedPlaces().filter(c=>c.visibility===`public`);if(!this.showCityFilter())return new Set(e.map(c=>c.mapvxId));let n=this.selectedFilterId(),o=n===``?e:e.filter(c=>c.parentInstitutionId===n);return new Set(o.map(c=>c.mapvxId))});institutionCategoryFilters=Yn(this.loadedDataService.getInstitution().pipe(en(e=>{let n=e.properties;if(n){let o=n.filter(c=>`childPlaces`in c&&c.childPlaces!==void 0).map(c=>({placeData:`childPlaces`in c?c.childPlaces:[],name:c.title}));return o.splice(1,0,{name:`All`,placeData:[]}),o}return[]})),{initialValue:[]});categoryFiltersData=Xe(()=>{let e=this.listablePlaceIds();return this.institutionCategoryFilters().filter(n=>n.name===`All`||n.placeData.some(o=>e.has(o)))});selectedFilter=ai({source:this.categoryFiltersData,computation:(e,n)=>{let o=e.map(s=>s.name),c=n?.value;return c&&o.includes(c)?c:e[0]?.name??``}});filterId=Xe(()=>{let e=this.selectedFilterId();return e===``?this.initialInstitutionId():e});currentPageIndex=ai({source:this.selectedFilter,computation:(e,n)=>e!==n?.source?1:n?.value??1});lastCardSelected=new Jt;userAction=new Jt;lastSearchData=dt(T2);static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac})};var T7={fas:{},fak:{}};var _M=[];function C7(t){Object.keys(t).forEach(function(e){if(e!==`prefix`){var n=t[e];n.icon[2].forEach(function(c){typeof c==`string`&&(T7[n.prefix][c]=n)}),T7[n.prefix][n.iconName]=n,_M.push(n)}})}C7(NA);C7(vM);var D2=class t{destroy$=new Jt;apiKey=Wt(``);institutionId=Wt(``);initialData=Wt(``);showCategoryFilters=Wt(!0,{transform:e=>typeof e==`string`?e===`true`:e});showCityFilter=Wt(!0,{transform:e=>typeof e==`string`?e===`true`:e});defaultToMap=Wt(!1,{transform:e=>typeof e==`string`?e===`true`:e});inheritFontFamily=Wt(!1,{transform:e=>typeof e==`string`?e===`true`:e});hideDeals=Wt(!1,{transform:this.transformToBoolean});showDealLabels=Wt(!1,{transform:this.transformToBoolean});cardWidth=Wt(void 0,{transform:e=>{if(!(e==null||e===``)){if(typeof e==`string`){let n=Number.parseInt(e,10);return Number.isNaN(n)||n<=0?void 0:n}return typeof e==`number`&&e<=0?void 0:e}}});rowsPerPage=Wt(2,{transform:e=>{if(typeof e==`string`){let n=Number.parseInt(e,10);return Number.isNaN(n)||n<=0?2:Math.min(Math.max(n,1),10)}return e<=0?2:Math.min(Math.max(e,1),10)}});cardSelected=Li();userAction=Li();router=se(tu);navigatorService=se(Zr);locationStrategy=se(Da);platformId=se(Rs);logger=se(Ct);sdkService=se(Eo);loadedDataService=se(In);homeStateService=se(Xn);iconLibrary=se(Wv);isInitialized=!1;isConnected=!1;static instanceCount=0;static hasBeenConnected=!1;static INSTITUTION_FETCH_RETRIES=3;static INSTITUTION_FETCH_RETRY_DELAY_MS=1e3;constructor(){this.loadIcons(),this.logger.sessionStart(),Ot(()=>{let e=this.apiKey();e&&e.trim()!==``&&!this.sdkService.isInitialized()&&(this.logger.log(`🔑 Initializing SDK with provided API key`),this.sdkService.initialize(e.trim()),this.logger.setApiKey(e.trim()),this.loadData())}),Ot(()=>{this.homeStateService.initialInstitutionId.set(this.institutionId())}),Ot(()=>{let e=this.showDealLabels();this.homeStateService.showDealLabels.set(e)}),Ot(()=>{this.homeStateService.hideDeals.set(this.hideDeals())}),Ot(()=>{this.homeStateService.cardWidth.set(this.cardWidth())}),Ot(()=>{this.homeStateService.rowsPerPage.set(this.rowsPerPage())}),Ot(()=>{let e=this.initialData();e&&e.trim()!==``&&this.processInitialData(e)}),Ot(()=>{this.homeStateService.showCategoryFilters.set(this.showCategoryFilters())}),Ot(()=>{this.homeStateService.showCityFilter.set(this.showCityFilter())}),Ot(()=>{let e=this.defaultToMap();this.logger.log(`====> defaultToMap input`,e),this.homeStateService.defaultToMap.set(e)}),Ot(()=>{let e=this.institutionId(),n=this.loadedDataService.institutionsLoaded();e&&e.trim()!==``&&n&&(this.loadedDataService.updateInstitution(e),this.logger.setInstitutionId(e))}),Ot(()=>{let e=this.loadedDataService.cityFilterOptions(),n=this.resolveCityOptionForInput(e);n&&this.homeStateService.selectedInstitution.set(n.institutionId)}),this.homeStateService.lastCardSelected.pipe(ri(this.destroy$)).subscribe(e=>{this.cardSelected.emit(e),this.logger.log(`====> cardSelected`,e)}),this.homeStateService.userAction.pipe(ri(this.destroy$)).subscribe(e=>{this.userAction.emit(e),this.logger.log(`====> userAction`,e)})}ngOnInit(){Aa(this.platformId)?this.handleInstanceTracking():this.logger.log(`🖥️ Componente inicializado en servidor (SSR)`)}loadIcons(){this.iconLibrary.addIcons(..._M)}loadData(){this.loadPlaces(),this.loadConfiguration(),this.loadInstitution()}async loadCityFilterOptions(e){this.loadedDataService.cityFilterOptions.set(e);let n=this.resolveCityOptionForInput(e);n&&this.homeStateService.selectedInstitution.set(n.institutionId);let o=e.filter(c=>c.type===`parent-place`);Promise.all(o.map(async c=>{let s=async()=>{let x=await this.sdkService.getPlaceDetail(c.parentPlaceId);this.loadedDataService.updatePotentialParentPlaces(x)},m=async()=>{let x=await this.sdkService.getSubPlaces(c.parentPlaceId);this.loadedDataService.updateAvailablePlaces(x)};await Promise.all([s(),m()])}))}resolveCityOptionForInput(e){let n=this.institutionId().trim();if(n!==``){let o=e.find(c=>c.institutionId===n)??e.find(c=>c.filterId===n);if(o)return o;this.logger.logWarning(`Institution id "${n}" matches no city filter option, falling back to the first one`)}return e[0]}transformToBoolean(e){return typeof e==`string`?e===`true`:e}processInitialData(e){try{let n=JSON.parse(e);if(n.availablePlaces){let c=n.availablePlaces.map(s=>new wr(s)).filter(s=>s.generalCategory!==`transport`&&!s.hidePlace);this.loadedDataService.updateAvailablePlaces(c),this.logger.log(`\u2705 Successfully loaded ${c.length} places from initial data`)}if(n.institutions){let o=n.institutions.map(s=>{try{return new xp(s)}catch(m){this.logger.logWarning(`❌ Error parsing institution`,m);return}}).filter(s=>s!==void 0);this.loadedDataService.setInstitutions(o);let c=o.find(s=>s.mapvxId===this.institutionId());c?this.loadedDataService.setInstitution(c):this.logger.log(`\u274C Institution not found for id ${this.institutionId()}`)}}catch(n){this.logger.log(`❌ Error processing initial data`,n),this.logger.log(`\u274C Data: ${e}`)}}async loadPlaces(){let e=Aa(this.platformId)?`Browser`:`Server`;try{this.logger.log(`\u{1F4CD} Loading initial places data on ${e}...`);let n=await this.sdkService.getAvailablePlaces(),o=n.filter(c=>c.generalCategory!==`transport`&&!c.hidePlace);this.loadedDataService.updateAvailablePlaces(o),this.logger.log(`\u2705 Successfully loaded ${n.length} places on ${e}`)}catch(n){this.logger.log(`\u274C Error loading initial places data on ${e}:`,n)}}async loadConfiguration(){try{let e=await this.sdkService.getConfiguration();this.loadedDataService.setConfiguration(e);let n=e.cityOptions||[];this.loadCityFilterOptions(n),this.logger.log(`✅ Successfully loaded configuration`,e)}catch(e){this.logger.log(`❌ Error loading initial configuration`,e)}}async loadInstitution(){try{let e=await this.fetchInstitutionsWithRetry(),n=e.find(o=>o.mapvxId===this.institutionId());this.loadedDataService.setInstitutions(e),n?(this.loadedDataService.setInstitution(n),this.logger.log(`✅ Successfully loaded institution`,n)):this.logger.log(`❌ Institution not found`)}catch(e){this.logger.log(`\u274C Error loading institution data after ${t.INSTITUTION_FETCH_RETRIES} retries`,e)}}async fetchInstitutionsWithRetry(){let e;for(let n=0;n<=t.INSTITUTION_FETCH_RETRIES;n++)try{return await this.sdkService.getInstitutions()}catch(o){e=o,n<t.INSTITUTION_FETCH_RETRIES&&(this.logger.logWarning(`\u26A0\uFE0F Error loading institutions, retrying (${n+1}/${t.INSTITUTION_FETCH_RETRIES})`,o),await this.delay(t.INSTITUTION_FETCH_RETRY_DELAY_MS*(n+1)))}throw e}delay(e){return new Promise(n=>setTimeout(n,e))}handleInstanceTracking(){t.instanceCount++;let e=this.checkForExistingRouterContent(),n=this.router.url;t.hasBeenConnected||e||n!==`/`&&t.instanceCount===1?(this.logger.log(`🔄 Detectada reconexión del web component`),this.logger.log(` - Instancia #${t.instanceCount}`),this.logger.log(` - URL del router: ${n}`),this.logger.log(` - Contenido en router outlet: ${e}`),this.handleReconnection()):this.logger.log(`\u{1F680} Primera conexi\xF3n del web component (instancia #${t.instanceCount})`),t.hasBeenConnected=!0}checkForExistingRouterContent(){try{let e=document.querySelector(`router-outlet`);return e?e.children.length>0:!1}catch{return!1}}ngAfterViewInit(){this.isConnected=!0,this.scheduleRouterInitialization()}ngOnDestroy(){this.logger.sessionEnd(),this.isConnected=!1,this.destroy$.next(),this.destroy$.complete()}scheduleRouterInitialization(){Aa(this.platformId)?requestAnimationFrame(()=>{this.initializeRouter()}):setTimeout(()=>{this.initializeRouter()},0)}initializeRouter(){if(this.isInitialized&&this.isConnected)return;this.locationStrategy.setInitialPath(`/`);let e=this.router.url,n=this.router.routerState.root.firstChild;e===`/`&&!n?this.router.navigateByUrl(`/`).then(()=>{this.isInitialized=!0}).catch(o=>{console.error(`Error en navegación inicial:`,o),this.isInitialized=!0}):this.isInitialized=!0}handleReconnection(){this.logger.log(`🔄 Procesando reconexión del web component`);let e=Aa(this.platformId)?10:50;setTimeout(()=>{this.checkAndFixRouterSync()},e)}checkAndFixRouterSync(){if(!Aa(this.platformId)){this.logger.log(`ℹ️ Saltando verificación de sincronización en servidor`);return}let e=this.locationStrategy.getCurrentPath()||`/`,n=this.router.url,o=this.router.routerState.root.firstChild,c=this.checkForExistingRouterContent();this.logger.log(`🔍 Verificando sincronización del router:`),this.logger.log(` - Path interno: "${e}"`),this.logger.log(` - Router URL: "${n}"`),this.logger.log(` - Tiene ruta activa: ${!!o}`),this.logger.log(` - Contenido en router outlet: ${c}`),e===`/`&&n!==`/`||e===`/`&&!o&&c||e===`/`&&n===`/`&&c&&!o?(this.logger.log(`⚠️ Desincronización detectada - aplicando corrección`),this.performGentleReset()):this.logger.log(`✅ Router sincronizado correctamente`)}performGentleReset(){this.logger.log(`🔄 Realizando reset suave del router`),this.router.navigateByUrl(`/`,{replaceUrl:!0}).then(()=>{this.logger.log(`✅ Navegación correctiva completada`)}).catch(e=>{console.error(`❌ Error en navegación correctiva:`,e)})}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-root`]],inputs:{apiKey:[1,`apiKey`],institutionId:[1,`institutionId`],initialData:[1,`initialData`],showCategoryFilters:[1,`showCategoryFilters`],showCityFilter:[1,`showCityFilter`],defaultToMap:[1,`defaultToMap`],inheritFontFamily:[1,`inheritFontFamily`],hideDeals:[1,`hideDeals`],showDealLabels:[1,`showDealLabels`],cardWidth:[1,`cardWidth`],rowsPerPage:[1,`rowsPerPage`]},outputs:{cardSelected:`cardSelected`,userAction:`userAction`},features:[y1([Zr,Xn,ci,Vt,Io,_u])],decls:4,vars:2,consts:[[1,`named-container`],[1,`app-container`],[1,`app-content`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`div`,1)(2,`div`,2),Ve(3,`router-outlet`),Ee()()()),n&2&&(we(),An(`inherit-font-family`,o.inheritFontFamily()))},dependencies:[E2,np],styles:[`*[_ngcontent-%COMP%]{margin:0;padding:0}.named-container[_ngcontent-%COMP%]{container-name:mapvx-container;container-type:inline-size;width:100%}.app-container[_ngcontent-%COMP%]{display:flex;padding:0;flex-direction:column;justify-content:center;align-items:flex-start;gap:22px;background:var(--%NS%definitions-colors-background-50);font-family:Open Sans,sans-serif}.app-container.inherit-font-family[_ngcontent-%COMP%]{font-family:inherit}.app-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:19px}.app-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-900);font:var(--%NS%definitions-textFonts-desktop-h1);font-family:inherit}.app-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-800);font:var(--%NS%definitions-textFonts-desktop-sub-1);font-family:inherit}.main-navigation[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap}.nav-button[_ngcontent-%COMP%]{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem;transition:all .2s ease}.nav-button[_ngcontent-%COMP%]:hover{background:#ffffff4d;transform:translateY(-1px)}.nav-button[_ngcontent-%COMP%]:active{transform:translateY(0)}.route-debug[_ngcontent-%COMP%]{margin-top:.5rem;text-align:center}.route-debug[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#fffc;font-size:.8rem;font-family:Courier New,monospace;background:#0000001a;padding:.25rem .5rem;border-radius:4px}.app-content[_ngcontent-%COMP%]{width:100%}`],changeDetection:1})};var sse=[`categoryFilters`];function ase(t,e){if(t&1){let n=yn();be(0,`button`,14),at(`click`,function(){cn(n);return un(Ye().onClearInput())}),Ve(1,`fa-icon`,6),Ee()}if(t&2){let n=Ye();we(),We(`icon`,n.faXmark)}}function lse(t,e){if(t&1&&Ve(0,`fa-icon`,6),t&2)We(`icon`,Ye(2).faCaretUp)}function cse(t,e){if(t&1&&Ve(0,`fa-icon`,6),t&2)We(`icon`,Ye(2).faCaretDown)}function use(t,e){if(t&1){let n=yn();be(0,`button`,21),at(`click`,function(){let c=cn(n).$implicit;return un(Ye(3).onCitySelect(c))}),it(1),Ee()}if(t&2){let n=e.$implicit;we(),xr(` `,n.name,` `)}}function dse(t,e){if(t&1&&(be(0,`div`,19),_r(1,use,2,1,`button`,20,Xd),Ee()),t&2){let n=Ye(2);we(),br(n.citiesOptions())}}function pse(t,e){if(t&1){let n=yn();be(0,`div`,9)(1,`button`,15),at(`click`,function(){cn(n);return un(Ye().onCityFilterClick())}),Ve(2,`fa-icon`,6),Ee(),be(3,`button`,16),at(`click`,function(){cn(n);return un(Ye().onCityFilterClick())}),be(4,`span`,17),it(5),Ee(),be(6,`div`,18),Et(7,lse,1,1,`fa-icon`,6)(8,cse,1,1,`fa-icon`,6),Ee()(),Et(9,dse,3,0,`div`,19),Ee()}if(t&2){let n=Ye();we(),An(`active`,n.isCityDropdownOpen()),we(),We(`icon`,n.faFilter),we(3),lr(n.selectedCity()?.name),we(2),It(n.isCityDropdownOpen()?7:8),we(2),It(n.isCityDropdownOpen()?9:-1)}}var A2=class t{logger=se(Ct);stateService=se(Xn);mapService=se(tr);navigatorService=se(Zr);loadedDataService=se(In);iconLibrary=se(Vt);categoryFilters;activeView=Xe(()=>this.stateService.activeView());showCityFilter=Xe(()=>this.stateService.showCityFilter()&&this.citiesOptions().length>1);inputValue=Xe(()=>this.stateService.inputValue());citiesOptions=Xe(()=>this.stateService.availableCityGroups());selectedCity=Xe(()=>this.stateService.selectedCityGroup());isCityDropdownOpen=dt(!1);mapReady=Yn(this.mapService.mapReady,{initialValue:!1});faGrid2=this.iconLibrary.getIconDefinition(`fas`,`grid-2`);faMagnifyingGlass=this.iconLibrary.getIconDefinition(`fas`,`magnifying-glass`);faMapLocationDot=this.iconLibrary.getIconDefinition(`fas`,`map-location-dot`);faXmark=this.iconLibrary.getIconDefinition(`fas`,`xmark`);faCaretDown=this.iconLibrary.getIconDefinition(`fas`,`caret-down`);faCaretUp=this.iconLibrary.getIconDefinition(`fas`,`caret-up`);faFilter=this.iconLibrary.getIconDefinition(`fas`,`filter`);constructor(){Ot(()=>{if(this.stateService.activeView()===`map`&&this.mapReady()){let e=this.stateService.lastListedPlaces(),n=e.map(c=>c.inFloors?.[0]),o=this.getMostFrequentValue(n);o!==void 0&&this.mapService.updateFloor(o),setTimeout(()=>{this.mapService.fitCoordinates(e.map(c=>c.position),{padding:{top:100,left:100,right:100,bottom:100}})},100)}}),Ot(()=>{let e=this.stateService.selectedCity();e&&this.syncMapParentPlace(e)})}syncMapParentPlace(e){if(e.type===`institution`){this.mapService.removeParentPlace(),this.loadedDataService.parentPlace.set(void 0),this.logger.setParentPlaceId(``);return}let n=this.loadedDataService.potentialParentPlaces().find(o=>o.mapvxId===e.parentPlaceId);n?(this.mapService.setParentPlace(n),this.loadedDataService.parentPlace.set(n),this.logger.setParentPlaceId(n.mapvxId)):(this.mapService.removeParentPlace(),this.logger.setParentPlaceId(``))}ngOnInit(){this.stateService.inputValue()!==``&&this.navigatorService.navigateToSearchView()}ngAfterViewInit(){this.readUrlParams()}readUrlParams(){let e=new URLSearchParams(location.search),n=e.get(`search`);if(n){this.stateService.inputValue.set(n),setTimeout(()=>{this.logger.logEvent(`search_text_from_url`,{term:n}),this.navigatorService.navigateToSearchView()},100);return}let o=e.get(`tenant`);if(o){this.logger.logEvent(`profile_from_url`,{id:o}),this.navigatorService.navigateToProfile(o);return}let c=e.get(`destination`);c&&(this.logger.logEvent(`route_from_url`,{id:c}),this.navigatorService.navigateToRoute(c))}onGridClick(){this.stateService.activeView.set(`grid`),this.logger.logEvent(`grid_view_selected`)}onMapClick(){this.stateService.activeView.set(`map`),this.logger.logEvent(`map_view_selected`)}onInputChange(e){let n=e.target;this.stateService.inputValue.set(n.value),this.navigatorService.navigateToSearchView()}onClearInput(){this.stateService.inputValue.set(``),this.stateService.userAction.next({type:`return-to-home`,data:{filter:this.stateService.selectedFilter()}}),this.navigatorService.navigateToHome()}onCityFilterClick(){this.isCityDropdownOpen.update(e=>!e)}onCitySelect(e){let n=e.option;this.stateService.selectedInstitution.set(n.institutionId),this.stateService.selectedCity.set(n),this.isCityDropdownOpen.set(!1),this.loadedDataService.updateInstitution(n.institutionId),this.logger.setInstitutionId(n.institutionId)}getMostFrequentValue(e){if(e.length===0)return;let n=new Map,o=0,c;for(let s of e){if(s==null)continue;let m=(n.get(s)||0)+1;n.set(s,m),m>o&&(o=m,c=s)}return c}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-home-screen`]],viewQuery:function(n,o){if(n&1&&Ef(sse,5),n&2){let c;My(c=Py())&&(o.categoryFilters=c.first)}},decls:23,vars:12,consts:[[1,`home-screen`],[1,`sub-navigation`],[1,`sub-nav-top`],[1,`search-section`],[1,`search-bar`],[1,`search-icon`],[3,`icon`],[`name`,`search input`,`type`,`text`,`placeholder`,`Search...`,1,`search-input`,3,`input`,`value`],[1,`search-clear`],[1,`city-filter-container`],[1,`view-toggle`],[1,`view-btn`,3,`click`],[1,`view-icon`],[1,`sub-content`],[1,`search-clear`,3,`click`],[1,`mobile-city-filter`,3,`click`],[1,`desktop-city-filter`,3,`click`],[1,`city-text`],[1,`dropdown-icon`],[1,`city-dropdown`],[1,`city-option`],[1,`city-option`,3,`click`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`div`,1)(2,`div`,2)(3,`div`,3)(4,`div`,4)(5,`div`,5),Ve(6,`fa-icon`,6),Ee(),be(7,`input`,7),at(`input`,function(s){return o.onInputChange(s)}),Ee(),Et(8,ase,2,1,`button`,8),Ee(),Et(9,pse,10,6,`div`,9),Ee(),be(10,`div`,10)(11,`button`,11),at(`click`,function(){return o.onGridClick()}),be(12,`div`,12),Ve(13,`fa-icon`,6),Ee(),be(14,`span`),it(15,`Grid View`),Ee()(),be(16,`button`,11),at(`click`,function(){return o.onMapClick()}),be(17,`div`,12),Ve(18,`fa-icon`,6),Ee(),be(19,`span`),it(20,`Map View`),Ee()()()()(),be(21,`div`,13),Ve(22,`router-outlet`),Ee()()),n&2&&(we(4),An(`active`,o.inputValue()!==``),we(2),We(`icon`,o.faMagnifyingGlass),we(),We(`value`,o.inputValue()),we(),It(o.inputValue()!==``?8:-1),we(),It(o.showCityFilter()?9:-1),we(2),An(`active`,o.activeView()===`grid`),we(2),We(`icon`,o.faGrid2),we(3),An(`active`,o.activeView()===`map`),we(2),We(`icon`,o.faMapLocationDot))},dependencies:[rn,np],styles:[`*[_ngcontent-%COMP%]{margin:0;padding:0;border:0}.home-screen[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:36px}.sub-navigation[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.25rem;margin-bottom:1.5rem}.sub-nav-top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:40px}@container mapvx-container (width <= 640px){.sub-nav-top[_ngcontent-%COMP%]{gap:13px}}.search-section[_ngcontent-%COMP%]{display:flex;gap:24px;align-items:center}@container mapvx-container (width <= 640px){.search-section[_ngcontent-%COMP%]{gap:11px}}.search-bar[_ngcontent-%COMP%]{background:var(--%NS%definitions-colors-background-white);border-bottom:1px solid var(--%NS%definitions-colors-primary-black);display:flex;width:342px;padding:12px 20px;align-items:center;gap:10px}@container mapvx-container (width <= 960px){.search-bar[_ngcontent-%COMP%]{width:150px}}@container mapvx-container (width <= 640px){.search-bar[_ngcontent-%COMP%]{width:110px}}.search-bar.active[_ngcontent-%COMP%]{border-bottom:1px solid var(--%NS%definitions-colors-secondary-orange)}.search-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-800);display:flex;align-items:center;font-size:20px}.search-bar.active[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-secondary-orange)}.search-clear[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-secondary-orange);display:flex;align-items:center;font-size:20px;border:none;background:none}.search-clear[_ngcontent-%COMP%]:hover{cursor:pointer}.search-input[_ngcontent-%COMP%]{border:none;outline:none;background:transparent;font:var(--%NS%definitions-textFonts-desktop-button-4);font-family:inherit;color:var(--%NS%definitions-colors-text-800);width:100%}.search-input[_ngcontent-%COMP%]::placeholder{color:var(--%NS%definitions-colors-text-800)}.city-filter-container[_ngcontent-%COMP%]{position:relative}.desktop-city-filter[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.875rem 1rem;height:45px;box-sizing:border-box;cursor:pointer;border:none;background:none}@container mapvx-container (width <= 640px){.desktop-city-filter[_ngcontent-%COMP%]{display:none}}.city-text[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-button-5);font-family:inherit;color:var(--%NS%definitions-colors-text-900);white-space:nowrap}.dropdown-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-900);display:flex;align-items:center;font-size:12px}.mobile-city-filter[_ngcontent-%COMP%]{display:none}@container mapvx-container (width <= 640px){.mobile-city-filter[_ngcontent-%COMP%]{display:flex;height:45px;width:52px;padding:0;justify-content:center;align-items:center;gap:10px;cursor:pointer;border:none;background:var(--%NS%definitions-colors-background-white);color:var(--%NS%definitions-colors-primary-black);font-size:20px}.mobile-city-filter.active[_ngcontent-%COMP%]{background:var(--%NS%definitions-colors-primary-black);color:var(--%NS%definitions-colors-black_white-50)}}.city-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;right:0;background:var(--%NS%definitions-colors-background-white);border:1px solid var(--%NS%definitions-colors-primary-300);z-index:1;padding:8px 0;min-width:111px}.city-option[_ngcontent-%COMP%]{display:block;width:100%;padding:12px 16px;border:none;background:none;text-align:center;cursor:pointer;font:var(--%NS%definitions-textFonts-desktop-input-2);font-family:inherit;color:var(--%NS%definitions-colors-text-900);transition:background-color .2s ease}.city-option[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--%NS%definitions-colors-primary-100)}.city-option[_ngcontent-%COMP%]:hover{background:var(--%NS%definitions-colors-background-50)}.view-toggle[_ngcontent-%COMP%]{display:flex;align-items:center}.view-btn[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem;padding:10px 28px;border:none;background:var(--%NS%definitions-colors-background-50);cursor:pointer;font:var(--%NS%definitions-textFonts-desktop-button-2);font-family:inherit;color:var(--%NS%definitions-colors-text-900);white-space:nowrap;transition:all .2s ease;position:relative;border-bottom:1px solid var(--%NS%definitions-colors-text-900)}.view-btn.active[_ngcontent-%COMP%]{background:var(--%NS%definitions-colors-text-900);color:var(--%NS%definitions-colors-text-50)}.view-btn[_ngcontent-%COMP%] .view-icon[_ngcontent-%COMP%]{display:flex;align-items:center;color:currentcolor}@container mapvx-container (width <= 770px){.view-btn[_ngcontent-%COMP%]{padding:10px 0;width:52px;justify-content:center}.view-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}}@container mapvx-container (width <= 640px){.view-btn[_ngcontent-%COMP%]{padding:10px 0;width:52px;justify-content:center}.view-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}}`]})};function M2(t){return t.tags?.includes(`deals`)||t.tags?.includes(`events`)}function D7(t){let e=`#EE5845`;if(!t?.trim())return e;let o=/style\s*=\s*["']([^"']*)["']/i.exec(t);if(!o?.[1])return e;let c=o[1];return hse(/(?:^|;)\s*color\s*:\s*([^;]+)/i.exec(c)?.[1])??e}function hse(t){if(!t)return null;let e=t.trim().replace(/\s*!important\s*$/i,``),n=e.toLowerCase(),o=/^#[0-9a-f]{3,8}$/i.test(e),c=/^rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/i.test(e),s=/^hsla?\(\s*\d{1,3}(?:deg)?\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/i.test(e),m=/^[a-z]+$/i.test(e);return o||c||s||m?o?e.toUpperCase():n:null}var fse=()=>({rotate:42});function mse(t,e){if(t&1&&Ve(0,`fa-icon`,3),t&2)We(`icon`,Ye().faCircleNotch)(`transform`,zl(2,fse))}function gse(t,e){t&1&&(be(0,`div`,4),it(1,`Deals + Events`),Ee())}var P2=class t{logger=se(Ct);iconLibrary=se(Vt);navigatorService=se(Zr);homeStateService=se(Xn);fromSearch=Wt(!1);place=Wt.required();hasDealsOrEvents=Xe(()=>this.place().banners.some(M2));hideDeals=Xe(()=>this.homeStateService.hideDeals());showDealLabels=Xe(()=>this.homeStateService.showDealLabels());imageSrc=Xe(()=>this.place().images[0]||this.place().logo||M1);isImageLoading=dt(!0);faCircleNotch=this.iconLibrary.getIconDefinition(`fas`,`circle-notch`);constructor(){Ot(()=>{this.imageSrc()&&this.startImageLoading()})}navigateToProfile(){let e=this.place(),n=e.mapvxId;this.homeStateService.lastCardSelected.next(n),this.navigatorService.navigateToProfile(n),this.fromSearch()?this.logger.logEvent(`search_result_card_selected`,{id:n,name:e.title,clientId:e.clientId||``}):this.logger.logEvent(`card_selected`,{id:n,name:e.title,clientId:e.clientId||``})}startImageLoading(){this.isImageLoading.set(!0)}endImageLoading(){this.isImageLoading.set(!1)}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-location-card`]],inputs:{fromSearch:[1,`fromSearch`],place:[1,`place`]},decls:12,vars:8,consts:[[1,`location-card`,3,`click`],[1,`card-image`],[3,`load`,`error`,`src`,`alt`],[1,`loading-icon`,3,`icon`,`transform`],[1,`card-deals-or-events`],[1,`card-content`],[1,`location-name`],[1,`location-address`],[1,`location-category`]],template:function(n,o){n&1&&(be(0,`button`,0),at(`click`,function(){return o.navigateToProfile()}),be(1,`div`,1)(2,`img`,2),at(`load`,function(){return o.endImageLoading()})(`error`,function(){return o.endImageLoading()}),Ee(),Et(3,mse,1,3,`fa-icon`,3)(4,gse,2,0,`div`,4),Ee(),be(5,`div`,5)(6,`h3`,6),it(7),Ee(),be(8,`p`,7),it(9),Ee(),be(10,`span`,8),it(11),Ee()()()),n&2&&(we(),An(`loading`,o.isImageLoading()),we(),We(`src`,o.imageSrc(),qd)(`alt`,o.place().title),we(),It(o.isImageLoading()?3:o.hasDealsOrEvents()&&!o.hideDeals()&&o.showDealLabels()?4:-1),we(4),lr(o.place().title),we(2),lr(o.place().address),we(2),lr(o.place().localizedCategory))},dependencies:[rn],styles:[`*[_ngcontent-%COMP%]{margin:0;padding:0}.location-card[_ngcontent-%COMP%]{display:flex;padding:5px 5px 10px;flex-direction:column;align-items:flex-start;gap:12px;background:var(--%NS%definitions-colors-background-50);border:none;width:100%}.location-card[_ngcontent-%COMP%]:hover{cursor:pointer}.card-image[_ngcontent-%COMP%]{width:100%;overflow:hidden;position:relative;aspect-ratio:1/1}@container mapvx-container (width <= 640px){.card-image[_ngcontent-%COMP%]{min-width:160px;min-height:160px}}.card-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}.card-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.card-image[_ngcontent-%COMP%] .card-deals-or-events[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;background-color:var(--%NS%definitions-colors-secondary-orange);color:var(--%NS%definitions-colors-text-white);display:flex;padding:5px;justify-content:center;align-items:center;gap:8.462px;flex-shrink:0;font:var(--%NS%definitions-textFonts-desktop-body-4);font-family:inherit}.card-image.loading[_ngcontent-%COMP%]{background-color:var(--%NS%definitions-colors-primary-300);display:flex;justify-content:center;align-items:center}.card-image.loading[_ngcontent-%COMP%] .loading-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-primary-600);font-size:100px}.card-image.loading[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:none}.card-content[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}@container mapvx-container (width <= 640px){.card-content[_ngcontent-%COMP%]{min-width:160px}}.location-name[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-black);font:var(--%NS%definitions-textFonts-desktop-body-3);font-family:inherit;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-align:start}.location-address[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-grey);font:var(--%NS%definitions-textFonts-desktop-body-5);font-family:inherit;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-align:start}.location-category[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-light-grey);font:var(--%NS%definitions-textFonts-desktop-body-5);font-family:inherit;display:none}`]})};var yse=[`cardContainer`];var vse=[`*`];function _se(t,e){if(t&1&&Ve(0,`app-location-card`,3),t&2){let n=e.$implicit,o=Ye();We(`place`,n)(`fromSearch`,o.fromSearch())}}function bse(t,e){t&1&&Ll(0)}function xse(t,e){if(t&1){let n=yn();be(0,`button`,7),at(`click`,function(){cn(n);return un(Ye(3).previousPage())}),Ve(1,`fa-icon`,8),Ee()}if(t&2){let n=Ye(3);we(),We(`icon`,n.faChevronLeft)}}function wse(t,e){if(t&1&&Et(0,xse,2,1,`button`,6),t&2){let n=Ye().$implicit;It(n<Ye().currentPageIndex()?0:-1)}}function Sse(t,e){t&1&&(be(0,`button`,9),it(1,`...`),Ee())}function Ese(t,e){if(t&1){let n=yn();be(0,`button`,11),at(`click`,function(){cn(n);return un(Ye(3).nextPage())}),Ve(1,`fa-icon`,8),Ee()}if(t&2){let n=Ye(3);we(),We(`icon`,n.faChevronRight)}}function Ise(t,e){if(t&1&&(Et(0,Sse,2,0,`button`,9),Et(1,Ese,2,1,`button`,10)),t&2){let n=Ye().$implicit,o=Ye();It(n<o.totalPages()?0:-1),we(),It(n>o.currentPageIndex()?1:-1)}}function Tse(t,e){if(t&1){let n=yn();Et(0,wse,1,1),be(1,`button`,5),at(`click`,function(){let c=cn(n).$implicit;return un(Ye().goToPage(c))}),it(2),Ee(),Et(3,Ise,2,2)}if(t&2){let n=e.$implicit,o=e.$index,c=e.$count,s=Ye();It(o===0?0:-1),we(),An(`active`,s.currentPageIndex()===n),we(),xr(` `,n,` `),we(),It(o===c-1?3:-1)}}var um=class t{logger=se(Ct);stateService=se(Xn);iconLibrary=se(Vt);cardContainer=x1(`cardContainer`);faChevronLeft=this.iconLibrary.getIconDefinition(`fas`,`chevron-left`);faChevronRight=this.iconLibrary.getIconDefinition(`fas`,`chevron-right`);fromSearch=Wt(!1);places=Wt.required();itemsPerPage=Xe(()=>this.calculateItemsPerPage(this.showMap(),this.cardContainer(),this.stateService.cardWidth(),this.stateService.rowsPerPage()));totalPages=Xe(()=>Math.ceil(this.places().length/this.itemsPerPage()));currentPageIndex=Xe(()=>{let e=this.totalPages(),n=this.stateService.currentPageIndex();return e>0&&n>e?e:n});cardContainerStyles=Xe(()=>{let e=this.stateService.cardWidth();return e?{"--card-width":`${e}`}:{}});pages=Xe(()=>{let e=this.totalPages();switch(e){case 0:return[];case 1:return[1];case 2:return[1,2];default:{let o=this.currentPageIndex()-1;return o<1&&(o=1),o+2>e&&(o=e-2),Array.from({length:3},(c,s)=>s+o)}}});currentPagePlaces=Xe(()=>{let e=this.places(),n=this.itemsPerPage(),o=this.currentPageIndex();return e.slice((o-1)*n,o*n)});showMap=Xe(()=>this.stateService.activeView()===`map`);constructor(){x4(()=>{let e=this.currentPageIndex();e!==this.stateService.currentPageIndex()&&this.stateService.currentPageIndex.set(e)})}calculateItemsPerPage(e,n,o,c=2){try{if(n){let s=globalThis.getComputedStyle(n.nativeElement),m=o??Number.parseInt(s.getPropertyValue(`--card-width`)||`0`),x=Number.parseInt(s.getPropertyValue(`--card-gap`)||`0`),I=m+x;if(I<=0)return c*5;let P=n.nativeElement.clientWidth,B=Math.floor((P+x)/I)*c;return Number.isFinite(B)&&B>0?B:c*5}return c*5}catch(s){return this.logger.logError(`Error calculating items per page`,s),c*5}}nextPage(){let e=this.currentPageIndex();e<this.totalPages()&&this.stateService.currentPageIndex.set(e+1)}previousPage(){let e=this.currentPageIndex();e>1&&this.stateService.currentPageIndex.set(e-1)}goToPage(e){this.stateService.currentPageIndex.set(e)}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-paginator`]],viewQuery:function(n,o){n&1&&If(o.cardContainer,yse,5),n&2&&Ry()},inputs:{fromSearch:[1,`fromSearch`],places:[1,`places`]},ngContentSelectors:vse,decls:9,vars:6,consts:[[`cardContainer`,``],[1,`paginator`],[1,`paginator-places`,3,`ngStyle`],[3,`place`,`fromSearch`],[1,`paginator-buttons`],[1,`paginator-button`,3,`click`],[1,`previous-button`],[1,`previous-button`,3,`click`],[3,`icon`],[1,`paginator-button`,`ellipsis`],[1,`next-button`],[1,`next-button`,3,`click`]],template:function(n,o){n&1&&(Nl(),be(0,`div`,1)(1,`div`,2,0),_r(3,_se,1,2,`app-location-card`,3,bo,!1,bse,1,0),Ee(),be(6,`div`,4),_r(7,Tse,4,5,null,null,Xd),Ee()()),n&2&&(An(`with-map`,o.showMap()),we(),An(`with-map`,o.showMap()),We(`ngStyle`,o.cardContainerStyles()),we(2),br(o.currentPagePlaces()),we(4),br(o.pages()))},dependencies:[Ly,iC,P2,rn],styles:[`.paginator[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:36px}.paginator.with-map[_ngcontent-%COMP%]{min-height:730px}@container mapvx-container (width <= 1024px){.paginator.with-map[_ngcontent-%COMP%]{min-height:unset}}.paginator-places[_ngcontent-%COMP%]{--%NS%card-width: 237;--%NS%card-gap: 13;display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--%NS%card-width) * 1px),1fr));align-items:flex-start;place-content:flex-start space-around;gap:24px 13px;align-self:stretch}@container mapvx-container (width <= 640px){.paginator-places[_ngcontent-%COMP%]{--%NS%card-width: 170}}.paginator-places.with-map[_ngcontent-%COMP%]{--%NS%card-gap: 8;gap:16px 8px;flex-shrink:0}@container mapvx-container (width <= 640px){.paginator-places.with-map[_ngcontent-%COMP%]{display:flex;overflow-x:auto}}.paginator-buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}.paginator-button[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-900);text-align:center;font:var(--%NS%definitions-textFonts-desktop-button-1);font-family:inherit;font-feature-settings:"liga" off,"clig" off;letter-spacing:-1px;border:none;background:none}.paginator-button[_ngcontent-%COMP%]:hover{cursor:pointer}.paginator-button.active[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-secondary-orange)}.paginator-button.ellipsis[_ngcontent-%COMP%]:hover{cursor:default}.previous-button[_ngcontent-%COMP%], .next-button[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-900);background:none;border:none;font-size:21px}.previous-button[_ngcontent-%COMP%]:hover, .next-button[_ngcontent-%COMP%]:hover{cursor:pointer}`]})};var R2=class t{onDestroy=new Jt;iconLibrary=se(Vt);mapService=se(tr);logger=se(Ct);loadedDataService=se(In);faCenter=this.iconLibrary.getIconDefinition(`fak`,`center`);ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}onClick(){this.logger.logEvent(`map_center_button_clicked`);let e=this.mapService.rotation.getValue();this.loadedDataService.getConfiguration().pipe(Qi(1),ri(this.onDestroy)).subscribe({next:n=>{this.mapService.updateCamera({center:n.initialCenter,zoom:n.initialZoom,pitch:n.initialPitch??0,bearing:e})},error:n=>{this.logger.logWarning(`Error centering map`,n)}})}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-center-map-button`]],decls:2,vars:1,consts:[[1,`button`,3,`click`],[3,`icon`]],template:function(n,o){n&1&&(be(0,`button`,0),at(`click`,function(){return o.onClick()}),Ve(1,`fa-icon`,1),Ee()),n&2&&(we(),We(`icon`,o.faCenter))},dependencies:[rn],styles:[`.button[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:40px;border:1px solid var(--%NS%definitions-colors-primary-900);background-color:var(--%NS%definitions-colors-background-white);box-shadow:var(--%NS%definitions-shadows-general)}.button[_ngcontent-%COMP%]:hover{cursor:pointer}.button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px;color:var(--%NS%definitions-colors-text-black)}`]})};var Cse=t=>({rotate:t});var k2=class t{mapService=se(tr);iconLibrary=se(Vt);rotation=Yn(this.mapService.rotation.asObservable().pipe(en(e=>360-e)),{initialValue:0});faCompass=this.iconLibrary.getIconDefinition(`fak`,`compass`);static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-compass-button`]],decls:2,vars:4,consts:[[1,`button`],[3,`icon`,`transform`]],template:function(n,o){n&1&&(be(0,`button`,0),Ve(1,`fa-icon`,1),Ee()),n&2&&(we(),We(`icon`,o.faCompass)(`transform`,zT(2,Cse,o.rotation())))},dependencies:[rn],styles:[`.button[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:40px;border:1px solid var(--%NS%definitions-colors-primary-900);background-color:var(--%NS%definitions-colors-background-white);box-shadow:var(--%NS%definitions-shadows-general)}.button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px;color:var(--%NS%definitions-colors-text-black)}`]})};var O2=class t{iconLibrary=se(Vt);locationService=se(_u);logger=se(Ct);markerService=se(ci);mapService=se(tr);locationPermission=dt(`prompt`);active=Xe(()=>this.locationService.currentlyWatchingLocation());mapReady=Yn(this.mapService.mapReady.asObservable(),{initialValue:!1});positionSubscription;bearingSubscription;faLocation=this.iconLibrary.getIconDefinition(`fas`,`location-arrow`);constructor(){this.checkLocationPermission(),Ot(()=>{this.mapReady()?this.active()?(this.positionSubscription=this.locationService.currentLocation.asObservable().subscribe({next:e=>{this.logger.log(`location`,e),e!=null&&(this.markerService.hasCurrentLocationMarker?this.markerService.updateCurrentLocationMarker(e.position):this.markerService.addCurrentLocationMarker(e.position))},error:e=>{this.logger.logWarning(`Error updating current location marker position`,e)}}),this.bearingSubscription=Lo([this.locationService.currentBearing.asObservable(),this.mapService.rotation.asObservable()]).subscribe({next:([e,n])=>{this.logger.log(`bearing`,e),this.logger.log(`maprotation`,n);let c=(e??0)-n;if(this.logger.log(`markerRotation`,c),this.markerService.hasCurrentLocationMarker){let s=this.markerService.getCurrentLocationMarkerElement();s!=null&&(s.style.transform=`rotate(${c}deg)`)}},error:e=>{this.logger.logWarning(`Error updating current location marker rotation`,e)}})):(this.positionSubscription?.unsubscribe(),this.bearingSubscription?.unsubscribe(),this.markerService.removeCurrentLocationMarker(),this.positionSubscription=void 0,this.bearingSubscription=void 0):(this.positionSubscription?.unsubscribe(),this.bearingSubscription?.unsubscribe(),this.positionSubscription=void 0,this.bearingSubscription=void 0)})}ngOnDestroy(){this.locationService.temporalStopWatching(),this.positionSubscription?.unsubscribe(),this.bearingSubscription?.unsubscribe(),this.markerService.removeCurrentLocationMarker()}checkLocationPermission(){this.locationService.checkLocationPermission().then(e=>{this.locationPermission.set(e),e===`granted`&&this.active()&&this.locationService.startWatching()}).catch(e=>{this.logger.logWarning(`Error checking location permission`,e),this.locationPermission.set(`denied`)})}async onClick(){if(this.logger.logEvent(`map_location_button_clicked`),this.active())this.locationService.stopWatching();else switch(this.locationPermission()){case`granted`:this.locationService.startWatching();break;case`prompt`:await this.requestPermissions();break;case`denied`:this.logger.logWarning(`Location permission denied`);break}}async requestPermissions(){await this.locationService.requestLocationPermission()===`granted`?(this.locationPermission.set(`granted`),this.locationService.startWatching()):this.locationPermission.set(`denied`)}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-location-button`]],decls:2,vars:3,consts:[[1,`button`,3,`click`],[3,`icon`]],template:function(n,o){n&1&&(be(0,`button`,0),at(`click`,function(){return o.onClick()}),Ve(1,`fa-icon`,1),Ee()),n&2&&(An(`active`,o.active()),we(),We(`icon`,o.faLocation))},dependencies:[rn],styles:[`.button[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:40px;border:1px solid var(--%NS%definitions-colors-primary-900);background-color:var(--%NS%definitions-colors-background-white);color:var(--%NS%definitions-colors-text-black);box-shadow:var(--%NS%definitions-shadows-general)}.button[_ngcontent-%COMP%]:hover{cursor:pointer}.button.active[_ngcontent-%COMP%]{background-color:var(--%NS%definitions-colors-secondary-blue);color:var(--%NS%definitions-colors-text-white);border-color:var(--%NS%definitions-colors-secondary-blue)}.button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:18px}`]})};var N2=class t{logger=se(Ct);mapService=se(tr);iconLibrary=se(Vt);faPlus=this.iconLibrary.getIconDefinition(`fas`,`plus`);faMinus=this.iconLibrary.getIconDefinition(`fas`,`minus`);onZoomIn(){this.logger.logEvent(`map_zoom_in_button_clicked`),this.mapService.updateZoomLevelOn(1)}onZoomOut(){this.logger.logEvent(`map_zoom_out_button_clicked`),this.mapService.updateZoomLevelOn(-1)}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-zoom-buttons`]],decls:5,vars:2,consts:[[1,`zoom-buttons-container`],[1,`zoom-button`,`zoom-in`,3,`click`],[3,`icon`],[1,`zoom-button`,`zoom-out`,3,`click`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`button`,1),at(`click`,function(){return o.onZoomIn()}),Ve(2,`fa-icon`,2),Ee(),be(3,`button`,3),at(`click`,function(){return o.onZoomOut()}),Ve(4,`fa-icon`,2),Ee()()),n&2&&(we(2),We(`icon`,o.faPlus),we(2),We(`icon`,o.faMinus))},dependencies:[rn],styles:[`.zoom-buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;border-radius:40px;border:1px solid var(--%NS%definitions-colors-primary-900);background-color:var(--%NS%definitions-colors-background-white);box-shadow:var(--%NS%definitions-shadows-general)}.zoom-button[_ngcontent-%COMP%]{width:40px;height:40px;border:none;background-color:transparent}.zoom-button[_ngcontent-%COMP%]:hover{cursor:pointer}.zoom-button.zoom-in[_ngcontent-%COMP%]{border-radius:40px 40px 0 0}.zoom-button.zoom-out[_ngcontent-%COMP%]{border-radius:0 0 40px 40px}.zoom-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px;color:var(--%NS%definitions-colors-text-black)}`]})};var L2=class t{static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-buttons-container`]],decls:5,vars:0,consts:[[1,`buttons-container-wrapper`]],template:function(n,o){n&1&&(be(0,`div`,0),Ve(1,`app-location-button`)(2,`app-compass-button`)(3,`app-center-map-button`)(4,`app-zoom-buttons`),Ee())},dependencies:[k2,R2,N2,O2],styles:[`.buttons-container-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:20px}`]})};function dm(t){return`Level ${t.level}`}function A7(t,e){if(!e)return;let n=t.find(o=>o.key===e);return n?dm(n):void 0}function bM(t){return t.startInsideFloor!==void 0&&t.endInsideFloor!==void 0&&t.startInsideFloor!==t.endInsideFloor}function M7(t){return t.steps.filter(bM).map(e=>({fromFloorId:e.startInsideFloor,toFloorId:e.endInsideFloor,byElevator:e.elevatorStep}))}function Dse(t,e){if(t&1){let n=yn();be(0,`button`,4),at(`click`,function(){let c=cn(n).$implicit;return un(Ye(3).selectFloor(c))}),it(1),Ee()}if(t&2){let n=e.$implicit,o=Ye(3);we(),xr(` `,o.floorLabel(n),` `)}}function Ase(t,e){if(t&1&&(be(0,`div`,2),_r(1,Dse,2,1,`button`,3,bo),Ee()),t&2){let n=Ye(2);we(),br(n.floors())}}function Mse(t,e){if(t&1){let n=yn();be(0,`button`,0),at(`click`,function(){cn(n);return un(Ye().toggleFloorSelector())}),be(1,`span`),it(2),Ee(),Ve(3,`fa-icon`,1),Ee(),Et(4,Ase,3,0,`div`,2)}if(t&2){let n=Ye();we(2),lr(n.floorLabel(n.selectedFloor())),we(),We(`icon`,n.showFloorOptions()?n.caretUp:n.caretDown),we(),It(n.showFloorOptions()?4:-1)}}var F2=class t{loadedDataService=se(In);mapService=se(tr);iconLibrary=se(Vt);parentPlace=Xe(()=>this.loadedDataService.parentPlace());floors=Xe(()=>this.parentPlace()?.innerFloors??[]);currentFloorId=Xe(()=>this.mapService.currentFloorId());selectedFloor=Xe(()=>this.floors().find(e=>e.key===this.currentFloorId())??this.floors()[0]);showFloorOptions=dt(!1);caretDown=this.iconLibrary.getIconDefinition(`fas`,`caret-down`);caretUp=this.iconLibrary.getIconDefinition(`fas`,`caret-up`);floorLabel=dm;toggleFloorSelector(){this.showFloorOptions.update(e=>!e)}selectFloor(e){this.showFloorOptions.set(!1),this.mapService.updateFloor(e.key)}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-floor-selector`]],decls:1,vars:1,consts:[[1,`floor-selector-button`,3,`click`],[3,`icon`],[1,`floor-options`],[1,`floor-option`],[1,`floor-option`,3,`click`]],template:function(n,o){n&1&&Et(0,Mse,5,3),n&2&&It(o.floors().length>1?0:-1)},dependencies:[rn],styles:[`.floor-selector-button[_ngcontent-%COMP%]{padding:10px;border:0;border-radius:16px;background-color:var(--%NS%definitions-colors-background-white);box-shadow:var(--%NS%definitions-shadows-general)}.floor-options[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;right:0;background-color:var(--%NS%definitions-colors-background-white);border-radius:16px;box-shadow:var(--%NS%definitions-shadows-general);display:flex;flex-direction:column}.floor-option[_ngcontent-%COMP%]{padding:10px;border:0;background-color:transparent}.floor-option[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--%NS%definitions-colors-gray-200)}`],changeDetection:1})};var Pse=[`map`];var Rse=[`*`];function kse(t,e){t&1&&Ve(0,`app-floor-selector`,3)}var bu=class t{mapRef;logger=se(Ct);mapService=se(tr);markerService=se(ci);routingService=se(Io);loadedDataService=se(In);showFloorSelector=Xe(()=>this.loadedDataService.parentPlace()!==void 0);ngAfterViewInit(){this.mapService.createMap(this.mapRef.nativeElement)}ngOnDestroy(){this.logger.log(`Destroying map and preparing to reuse`),this.markerService.prepareToMapReuse(),this.routingService.removeRoute(),this.mapService.prepareToReuse()}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-map`]],viewQuery:function(n,o){if(n&1&&Ef(Pse,5),n&2){let c;My(c=Py())&&(o.mapRef=c.first)}},ngContentSelectors:Rse,decls:6,vars:1,consts:[[`map`,``],[1,`map-wrapper`],[`id`,`map`],[1,`floor-selector`],[1,`buttons-container`]],template:function(n,o){n&1&&(Nl(),be(0,`div`,1),Ve(1,`div`,2,0),Et(3,kse,1,0,`app-floor-selector`,3),Ve(4,`app-buttons-container`,4),Ll(5),Ee()),n&2&&(we(3),It(o.showFloorSelector()?3:-1))},dependencies:[L2,F2],styles:[`.map-wrapper[_ngcontent-%COMP%]{height:100%;width:100%;position:relative}#map[_ngcontent-%COMP%]{height:100%;min-width:10px;min-height:10px}.buttons-container[_ngcontent-%COMP%]{position:absolute;bottom:18px;right:17px}.floor-selector[_ngcontent-%COMP%]{position:absolute;top:18px;right:17px}`]})};var Ose=[`*`];function Nse(t,e){t&1&&(be(0,`div`,2),Ve(1,`app-map`),Ee())}var pm=class t{stateService=se(Xn);showMap=Xe(()=>this.stateService.activeView()===`map`);static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-view-container`]],ngContentSelectors:Ose,decls:4,vars:3,consts:[[1,`view-container`],[1,`view-content`],[1,`map-container`]],template:function(n,o){n&1&&(Nl(),be(0,`div`,0)(1,`div`,1),Ll(2),Ee(),Et(3,Nse,2,0,`div`,2),Ee()),n&2&&(we(),An(`with-map`,o.showMap()),we(2),It(o.showMap()?3:-1))},dependencies:[bu],styles:[`.view-container[_ngcontent-%COMP%]{display:flex;align-items:stretch;gap:8px}@container mapvx-container (width <= 1024px){.view-container[_ngcontent-%COMP%]{flex-direction:column-reverse;align-items:flex-start}}@container mapvx-container (width <= 640px){.view-container[_ngcontent-%COMP%]{flex-direction:column-reverse;align-items:flex-start}}.view-content[_ngcontent-%COMP%]{width:100%}.view-content.with-map[_ngcontent-%COMP%]{width:50%;min-width:482px;flex-shrink:0}@container mapvx-container (width <= 1024px){.view-content.with-map[_ngcontent-%COMP%]{width:100%;min-width:unset}}.map-container[_ngcontent-%COMP%]{width:100%;min-height:730px}@container mapvx-container (width <= 1024px){.map-container[_ngcontent-%COMP%]{width:100%;height:730px}}@container mapvx-container (width <= 640px){.map-container[_ngcontent-%COMP%]{width:100%;height:400px;min-height:unset}}`]})};var Lse=[`categoryFilters`];var Fse=(t,e)=>e.name;function zse(t,e){if(t&1){let n=yn();be(0,`button`,11),at(`click`,function(){let c=cn(n).$implicit;return un(Ye(2).updateSelectedFilter(c.name))}),it(1),Ee()}if(t&2){let n=e.$implicit;An(`active`,Ye(2).selectedFilter()===n.name),we(),xr(` `,n.name,` `)}}function Bse(t,e){if(t&1&&(be(0,`div`,2)(1,`div`,5,0)(3,`div`,6),_r(4,zse,2,3,`button`,7,Fse),Ee(),be(6,`div`,8),Ve(7,`div`,9)(8,`div`,10),Ee()()()),t&2){let n=Ye();we(4),br(n.categoryFiltersData()),we(4),Tf(`left`,n.indicatorPosition(),`px`)}}var z2=class t{logger=se(Ct);stateService=se(Xn);loadedDataService=se(In);markerService=se(ci);categoryFilters=x1(`categoryFilters`);activeView=Xe(()=>this.stateService.activeView());loadedPlaces=Yn(this.loadedDataService.getAvailablePlaces(),{initialValue:[]});categoryFiltersData=Xe(()=>this.stateService.categoryFiltersData());places=ai(()=>this.loadedPlaces());selectedFilter=Xe(()=>this.stateService.selectedFilter());selectedInstitution=Xe(()=>this.stateService.selectedInstitution());selectedCity=Xe(()=>this.stateService.selectedCity());showCategoryFilters=Xe(()=>this.stateService.showCategoryFilters()&&this.categoryFiltersData().length>1);showCityFilter=Xe(()=>this.stateService.showCityFilter());indicatorPosition=dt(0);constructor(){Ot(()=>{let e=this.activeView();this.logger.logEvent(`page_view`,{page_title:`List Page`,page_location:`/list?view=${e}`})}),Ot(()=>{let e=this.categoryFiltersData();if(this.logger.log(`====> loadedCategoryFiltersData`,e),e.length>0){let n=e.map(o=>o.name);this.readFilterFromUrl(n)}}),Ot(()=>{if(this.activeView()===`map`){let e=this.places();this.logger.log(`====> addMarkers `,e),this.markerService.addMarkers(e)}}),Ot(()=>{let e=this.loadedPlaces(),n=this.showCategoryFilters(),o=e.filter(s=>s.visibility===`public`);if(this.showCityFilter()){let s=this.stateService.selectedFilterId();s!==``&&(o=o.filter(m=>m.parentInstitutionId===s))}if(n){let s=this.selectedFilter(),m=this.categoryFiltersData();if(s!==`All`){let x=m.find(I=>I.name===s)?.placeData||[];o=o.filter(I=>x.includes(I.mapvxId))}}o.sort((s,m)=>s.title.trim().localeCompare(m.title.trim())),this.logger.log(`====> filteredPlaces`,o),this.places.set(o)}),Ot(()=>{let e=this.places();this.stateService.lastListedPlaces.set(e)}),Ot(()=>{let e=this.selectedFilter(),n=this.categoryFiltersData(),o=this.categoryFilters();this.showCategoryFilters()&&o?requestAnimationFrame(()=>{let s=this.getIndicatorPosition(e,n,o);this.indicatorPosition.set(s)}):this.indicatorPosition.set(0)})}readFilterFromUrl(e){let o=new URLSearchParams(location.search).get(`tab`);o&&e.includes(o)&&this.stateService.selectedFilter.set(o)}getIndicatorPosition(e,n,o){if(o==null)return 0;let c=o.nativeElement.querySelectorAll(`.category-btn`);if(c.length===0)return 0;let s=n.findIndex(q=>q.name===e);if(s===-1||s>=c.length)return 0;let m=c[s];if(!m)return 0;let x=o.nativeElement.getBoundingClientRect(),I=m.getBoundingClientRect(),P=I.width,N=I.left-x.left,B=80,Z=N+P/2-B/2;return Math.min(Math.max(0,Z),x.width-B)}updateSelectedFilter(e){this.stateService.selectedFilter.set(e),this.stateService.userAction.next({type:`select-filter`,data:{filter:e}}),this.logger.logEvent(`filter_selected`,{filter:e})}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-list-view`]],viewQuery:function(n,o){n&1&&If(o.categoryFilters,Lse,5),n&2&&Ry()},decls:5,vars:2,consts:[[`categoryFilters`,``],[1,`list-view`],[1,`category-filters-overflow`],[1,`list-container`],[3,`places`],[1,`category-filters-container`],[1,`category-filters`],[1,`category-btn`,3,`active`],[1,`active-indicator`],[1,`background-line`],[1,`active-line`],[1,`category-btn`,3,`click`]],template:function(n,o){n&1&&(be(0,`div`,1),Et(1,Bse,9,2,`div`,2),be(2,`app-view-container`)(3,`div`,3),Ve(4,`app-paginator`,4),Ee()()()),n&2&&(we(),It(o.showCategoryFilters()?1:-1),we(3),We(`places`,o.places()))},dependencies:[pm,um],styles:[`.list-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:36px}.category-filters-overflow[_ngcontent-%COMP%]{width:100%;overflow-x:auto}.category-filters-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%;min-width:max-content}.category-filters[_ngcontent-%COMP%]{display:flex;gap:2.4375rem;align-items:center}.category-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;font:var(--%NS%definitions-textFonts-desktop-button-5);font-family:inherit;font-weight:400;color:var(--%NS%definitions-colors-text-900);white-space:nowrap;padding:0;transition:color .2s ease}.category-btn.active[_ngcontent-%COMP%], .category-btn[_ngcontent-%COMP%]:hover{color:var(--%NS%definitions-colors-secondary-orange)}.active-indicator[_ngcontent-%COMP%]{position:relative;width:100%;height:3px;display:flex;align-items:center}.background-line[_ngcontent-%COMP%]{height:.5px;background:var(--%NS%definitions-colors-primary-black);border-radius:2px;width:100%}.active-line[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:80px;background:var(--%NS%definitions-colors-secondary-orange);border-radius:2px;transition:left .3s ease}.list-container[_ngcontent-%COMP%]{width:100%}`]})};var Use=()=>({rotate:42});var B2=class t{iconLibrary=se(Vt);faCircleNotch=this.iconLibrary.getIconDefinition(`fas`,`circle-notch`);static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-loading-location-card`]],decls:7,vars:3,consts:[[1,`loading-location-card`],[1,`loading-card-image`],[3,`icon`,`transform`],[1,`loading-card-content`],[1,`loading-location-name`],[1,`loading-location-address`],[1,`loading-location-category`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`div`,1),Ve(2,`fa-icon`,2),Ee(),be(3,`div`,3),Ve(4,`div`,4)(5,`div`,5)(6,`div`,6),Ee()()),n&2&&(we(2),We(`icon`,o.faCircleNotch)(`transform`,zl(2,Use)))},dependencies:[rn],styles:[`.loading-location-card[_ngcontent-%COMP%]{display:flex;padding:5px 5px 10px;flex-direction:column;align-items:flex-start;gap:12px}.loading-card-image[_ngcontent-%COMP%]{display:flex;width:227px;height:227px;justify-content:center;align-items:center;background-color:var(--%NS%definitions-colors-primary-300)}@container mapvx-container (width <= 640px){.loading-card-image[_ngcontent-%COMP%]{width:160px;height:160px}}.loading-card-image[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-primary-600);font-size:95px}.loading-card-content[_ngcontent-%COMP%]{display:flex;width:227px;flex-direction:column;align-items:flex-start;gap:8px}@container mapvx-container (width <= 640px){.loading-card-content[_ngcontent-%COMP%]{width:160px}}.loading-location-name[_ngcontent-%COMP%]{display:flex;width:85%;height:24px;padding:7.253px 0;flex-direction:column;justify-content:center;align-items:center;border-radius:28.09px;background:var(--%NS%definitions-colors-primary-300)}.loading-location-address[_ngcontent-%COMP%]{display:flex;width:70%;height:11px;align-items:center;gap:18px;flex-shrink:0;align-self:stretch;border-radius:28.09px;background:var(--%NS%definitions-colors-primary-200)}.loading-location-category[_ngcontent-%COMP%]{display:flex;width:45%;height:11px;justify-content:space-between;align-items:center;border-radius:24px;background:var(--%NS%definitions-colors-primary-200)}`],changeDetection:1})};var Vse=()=>[1,2,3,4,5,6,7,8,9,10];function jse(t,e){t&1&&Ve(0,`app-loading-location-card`)}var U2=class t{homeStateService=se(Xn);showMap=Xe(()=>this.homeStateService.activeView()===`map`);static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-loading-card-list`]],decls:3,vars:3,consts:[[1,`loading-container`]],template:function(n,o){n&1&&(be(0,`div`,0),_r(1,jse,1,0,`app-loading-location-card`,null,Xd),Ee()),n&2&&(An(`with-map`,o.showMap()),we(),br(zl(2,Vse)))},dependencies:[B2],styles:[`.loading-container[_ngcontent-%COMP%]{display:flex;place-content:flex-start;align-items:flex-start;gap:24px 13px;align-self:stretch;flex-wrap:wrap}.loading-container.with-map[_ngcontent-%COMP%]{gap:16px 8px;height:730px}`],changeDetection:1})};function $se(t,e){t&1&&(be(0,`p`),it(1,`Looking for your results...`),Ee())}function Hse(t,e){if(t&1&&(be(0,`p`),it(1),Ee()),t&2){let n=Ye(3);we(),xr(`Showing 1 result for "`,n.searchTerm(),`"`)}}function Gse(t,e){if(t&1&&(be(0,`p`),it(1),Ee()),t&2){let n=Ye(3);we(),g1(`Showing `,n.places().length,` results for "`,n.searchTerm(),`"`)}}function qse(t,e){if(t&1&&Et(0,Hse,2,1,`p`)(1,Gse,2,2,`p`),t&2)It(Ye(2).places().length===1?0:1)}function Wse(t,e){if(t&1&&(be(0,`p`),it(1),Ee()),t&2){let n=Ye(2);we(),xr(`No results found for "`,n.searchTerm(),`"`)}}function Zse(t,e){if(t&1&&Et(0,qse,2,1)(1,Wse,2,1,`p`),t&2)It(Ye().places().length>0?0:1)}function Yse(t,e){t&1&&Ve(0,`app-loading-card-list`)}function Xse(t,e){if(t&1&&(be(0,`div`,6)(1,`app-paginator`,7)(2,`div`,8),Ve(3,`fa-icon`,4),be(4,`h2`),it(5,`No results found`),Ee(),be(6,`div`,9)(7,`p`),it(8,`Sorry, we can’t find any places that match your search. Please try again.`),Ee()()()()()),t&2){let n=Ye();we(),We(`places`,n.places())(`fromSearch`,!0),we(2),We(`icon`,n.faBuildingMagnifyingGlass)}}var V2=class t{logger=se(Ct);loadedDataService=se(In);sdkService=se(Eo);stateService=se(Xn);navigatorService=se(Zr);markerService=se(ci);iconLibrary=se(Vt);searching=ai(()=>this.stateService.lastSearchData().term===``);inputValue$=C2(this.stateService.inputValue).pipe(aE(500),en(e=>e.trim()),gr(e=>e!==``),lE());searchTerm=Yn(this.inputValue$,{initialValue:this.stateService.lastSearchData().term});places=Yn(Lo([C2(this.stateService.filterId),this.inputValue$,C2(this.stateService.lastSearchData)]).pipe(Hr(([e,n,o])=>o.term===n?(this.logger.log(`====> lastSearchData`,o),this.searching.set(!1),Gt(o.results)):(this.searching.set(!0),this.logger.log(`====> searchTerm`,n),this.logger.logEvent(`search`,{term:n,searchInstitutionId:e}),this.logger.log(`====> institutionId`,e),Un(this.sdkService.searchPlaces(n,e)))),Ji(e=>{this.searching.set(!1),e.length>0?this.logger.logEvent(`search_results`,{resultsCount:e.length.toString(),term:this.searchTerm(),searchInstitutionId:this.stateService.filterId()}):this.logger.logEvent(`search_empty`,{term:this.searchTerm(),searchInstitutionId:this.stateService.filterId()})})),{initialValue:this.stateService.lastSearchData().results});faArrowLeft=this.iconLibrary.getIconDefinition(`fas`,`arrow-left`);faBuildingMagnifyingGlass=this.iconLibrary.getIconDefinition(`fas`,`building-magnifying-glass`);constructor(){this.logger.logEvent(`page_view`,{page_title:`Search Page`,page_location:`/search`}),Ot(()=>{let e=this.places();this.markerService.addMarkers(e)}),Ot(()=>{let e=this.places();this.stateService.lastListedPlaces.set(e)}),Ot(()=>{let e=this.searching();this.logger.log(`====> searching`,e)}),Ot(()=>{let e=this.searchTerm();e&&this.stateService.userAction.next({type:`search`,data:{searchTerm:e}})})}ngOnDestroy(){this.stateService.inputValue()===``?(this.logger.log(`====> EMPTY_SEARCH_DATA`),this.stateService.lastSearchData.set(T2)):(this.logger.log(`====> SETTING LAST SEARCH DATA`),this.stateService.lastSearchData.set({term:this.stateService.inputValue(),results:this.places()}))}onBackClick(){this.stateService.inputValue.set(``),this.stateService.userAction.next({type:`return-to-home`,data:{filter:this.stateService.selectedFilter()}}),this.logger.logEvent(`search_back_clicked`,{term:this.searchTerm(),searchInstitutionId:this.stateService.filterId()}),this.navigatorService.navigateToHome()}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-search-view`]],decls:13,vars:3,consts:[[1,`search-view`],[1,`search-view-header`],[1,`back-button`],[1,`back-btn`,3,`click`],[3,`icon`],[1,`search-view-info`],[1,`results-container`],[3,`places`,`fromSearch`],[1,`no-results`],[1,`no-results-description`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`div`,1)(2,`div`,2)(3,`button`,3),at(`click`,function(){return o.onBackClick()}),Ve(4,`fa-icon`,4),be(5,`span`),it(6,`Back`),Ee()()(),be(7,`div`,5),Et(8,$se,2,0,`p`)(9,Zse,2,1),Ee()(),be(10,`app-view-container`),Et(11,Yse,1,0,`app-loading-card-list`)(12,Xse,9,3,`div`,6),Ee()()),n&2&&(we(4),We(`icon`,o.faArrowLeft),we(4),It(o.searching()?8:9),we(3),It(o.searching()?11:12))},dependencies:[pm,um,E2,rn,U2],styles:[`*[_ngcontent-%COMP%]{margin:0;padding:0}.search-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:36px}.search-view-header[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;justify-content:center;align-items:flex-start;gap:23px}.search-view-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-800);font:var(--%NS%definitions-textFonts-desktop-sub-2);font-family:inherit;letter-spacing:-.9px}.results-container[_ngcontent-%COMP%]{width:100%}.back-button[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;gap:16px}.back-btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:12px;color:var(--%NS%definitions-colors-secondary-blue);border:none;background:none}.back-btn[_ngcontent-%COMP%]:hover{cursor:pointer}.back-btn[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:24px}.back-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-secondary-blue);font:var(--%NS%definitions-textFonts-desktop-button-1);font-family:inherit;font-feature-settings:"liga" off,"clig" off;letter-spacing:-1px}.no-results[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;flex-direction:column;justify-content:center;align-items:center;gap:31px}.no-results[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:160px;color:var(--%NS%definitions-colors-text-light-grey)}.no-results[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-grey);font:var(--%NS%definitions-textFonts-desktop-h2);font-family:inherit}.no-results[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-grey);font:var(--%NS%definitions-textFonts-desktop-sub-1);font-family:inherit;text-align:center}`]})};function j2(t){switch(t){case`su`:return`Sunday`;case`mo`:return`Monday`;case`tu`:return`Tuesday`;case`we`:return`Wednesday`;case`th`:return`Thursday`;case`fr`:return`Friday`;case`sa`:return`Saturday`}}function H2(t){switch(t.getDay()){case 0:return`su`;case 1:return`mo`;case 2:return`tu`;case 3:return`we`;case 4:return`th`;case 5:return`fr`;case 6:return`sa`;default:return`mo`}}function Kse(t){switch(t){case 0:return`su`;case 1:return`mo`;case 2:return`tu`;case 3:return`we`;case 4:return`th`;case 5:return`fr`;case 6:return`sa`;default:return`mo`}}function $2(t){let[e,n]=t.split(`:`),o=parseInt(e)%24,c=parseInt(n),s;return o<12?(s=`AM`,o===0&&(o=12)):(s=`PM`,o!==12&&(o-=12)),`${o}:${c<10?`0`:``}${c} ${s}`}function k7(t){return`${$2(t.open)} - ${$2(t.close)}`}function Qse(t){return`${$2(t.open)} to ${$2(t.close)}`}function Jse(t){let e=new Date,n=new Date(e);O7(n);let c=t[H2(n)];if(c&&c.length>0){for(let s of c)if(P7(s.open)&&P7(s.close)){let m=R7(s.open,n),x=R7(s.close,n);if(m>x&&eae(x),e>=m&&e<=x)return!0}}return!1}function O7(t){let e=t.getDate();t.setDate(e-1)}function eae(t){let e=t.getDate();t.setDate(e+1)}function tae(t){let o=t[H2(new Date)];return o&&o.length>0}function P7(t){return/^([0-9]|0[0-9]|1[0-9]|2[0-4]):[0-5][0-9]$/.test(t)}function R7(t,e){let[n,o]=t.split(`:`).map(Number),c=e?new Date(e):new Date;return new Date(c.getFullYear(),c.getMonth(),c.getDate(),n,o,0,0)}function nae(t){return t.sort((e,n)=>e.open.localeCompare(n.open))}function rae(t){let o=t[H2(new Date)];return o&&o.length>0?N7(o):``}function iae(t){let e=new Date;O7(e);let o=t[H2(e)];return o&&o.length>0?N7(o):``}function oae(t){return`Open on ${j2(sae(t))}`}function N7(t){return t.length===1?k7(t[0]):(nae(t),t.map(Qse).join(` - `))}function sae(t){let n=new Date().getDay();for(let o=0;o<7;o++){let s=Kse((n+o)%7),m=t[s];if(m&&m.length>0)return s}return`mo`}function L7(t){return Jse(t)?iae(t):tae(t)?rae(t):oae(t)}function F7(t){let e=[`mo`,`tu`,`we`,`th`,`fr`,`sa`,`su`],n=x=>{let I=t[x];return!I||I.length===0?[`Closed`]:I.map(P=>k7(P))},o=(x,I)=>x.length!==I.length?!1:x.every((P,N)=>P===I[N]),c=(x,I)=>x===I?j2(x):`${j2(x)} - ${j2(I)}`,s=[],m=0;for(;m<e.length;){let x=e[m],I=n(x),P=m+1;for(;P<e.length&&o(I,n(e[P]));)P++;let N=c(x,e[P-1]);s.push({day:N,schedule:I}),m=P}if(s.length>1){let x=s[0],I=s[s.length-1];if(o(x.schedule,I.schedule)){let P=x.day.split(` - `);s[0]={day:`${I.day.split(` - `)[0]} - ${P.length>1?P[1]:P[0]}`,schedule:x.schedule},s.pop()}}return s}function aae(t,e){if(t&1&&Ve(0,`div`,9),t&2){let n=e.$implicit;We(`innerHTML`,n,Xc)}}function lae(t,e){if(t&1&&(be(0,`div`,6)(1,`div`,7),it(2),Ee(),be(3,`div`,8),_r(4,aae,1,1,`div`,9,bo),Ee()()),t&2){let n=e.$implicit;we(2),lr(n.day),we(2),br(n.schedule)}}var G2=class t{iconLibrary=se(Vt);schedules=Wt.required({transform:e=>e?F7(e):[]});closeClicked=Li();faClockThree=this.iconLibrary.getIconDefinition(`fas`,`clock-three`);faXmark=this.iconLibrary.getIconDefinition(`fas`,`xmark`);hideModal(){this.closeClicked.emit()}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-other-schedules`]],inputs:{schedules:[1,`schedules`]},outputs:{closeClicked:`closeClicked`},decls:11,vars:2,consts:[[1,`other-schedules-container`],[1,`other-schedules-header`],[1,`other-schedules-title`],[3,`icon`],[1,`close-button`,3,`click`],[1,`schedules`],[1,`schedule`],[1,`schedule-day`],[1,`schedule-time`],[1,`schedule-time-item`,3,`innerHTML`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`div`,1)(2,`div`,2),Ve(3,`fa-icon`,3),be(4,`h2`),it(5,`Other Schedules`),Ee()(),be(6,`button`,4),at(`click`,function(){return o.hideModal()}),Ve(7,`fa-icon`,3),Ee()(),be(8,`div`,5),_r(9,lae,6,1,`div`,6,bo),Ee()()),n&2&&(we(3),We(`icon`,o.faClockThree),we(4),We(`icon`,o.faXmark),we(2),br(o.schedules()))},dependencies:[rn],styles:[`.other-schedules-container[_ngcontent-%COMP%]{padding:16px;background-color:var(--%NS%definitions-colors-background-50);box-shadow:var(--%NS%definitions-shadows-general)}.other-schedules-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.other-schedules-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.other-schedules-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;color:var(--%NS%definitions-colors-text-900);font:var(--%NS%definitions-textFonts-desktop-sub-2);font-family:inherit}@container mapvx-container (width <= 640px){.other-schedules-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:16px}}.other-schedules-title[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-primary-600);font-size:32px}@container mapvx-container (width <= 640px){.other-schedules-title[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px}}.close-button[_ngcontent-%COMP%]{padding:0;background:none;border:none;cursor:pointer}.close-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px}.schedules[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;background-color:#fff}.schedule[_ngcontent-%COMP%]{display:flex;gap:40px;align-items:center;justify-content:space-between}.schedule-times[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.schedule-time[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:end}.schedule-time-item[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-800);font:var(--%NS%definitions-textFonts-desktop-sub-5);font-family:inherit}@container mapvx-container (width <= 640px){.schedule-time-item[_ngcontent-%COMP%]{font-size:12px;font-weight:400}}`],changeDetection:1})};var cae=()=>({rotate:42});function uae(t,e){if(t&1&&Ve(0,`fa-icon`,3),t&2)We(`icon`,Ye().faCircleNotch)(`transform`,zl(2,cae))}function dae(t,e){if(t&1){let n=yn();be(0,`div`,10),Ve(1,`fa-icon`,9),be(2,`div`,24)(3,`button`,25),at(`click`,function(){cn(n);return un(Ye().showOtherSchedulesModal())}),Ee(),be(4,`div`,26),it(5,`*Hours may vary`),Ee()()()}if(t&2){let n=Ye();we(),We(`icon`,n.faClockThree),we(2),We(`innerHTML`,n.schedule(),Xc)}}function pae(t,e){if(t&1){let n=yn();be(0,`div`,11)(1,`app-other-schedules`,27),at(`closeClicked`,function(){cn(n);return un(Ye().hideOtherSchedulesModal())}),Ee()()}if(t&2){let n=Ye();we(),We(`schedules`,n.place().openingHours)}}function hae(t,e){if(t&1&&Ve(0,`div`,32),t&2){let n=e.$implicit;Tf(`color`,n.color)(`border-color`,n.color),We(`innerHTML`,n.description,Xc)}}function fae(t,e){if(t&1&&(be(0,`div`,12)(1,`div`,28),Ve(2,`fa-icon`,9),be(3,`div`,29),it(4,`Deals + Events`),Ee()(),be(5,`div`,30),_r(6,hae,1,5,`div`,31,bo),Ee()()),t&2){let n=Ye();we(2),We(`icon`,n.faBadgeDollar),we(4),br(n.banners())}}function mae(t,e){if(t&1&&(be(0,`div`,21),it(1),Ee()),t&2){let n=Ye();we(),xr(` `,n.address(),` `)}}function gae(t,e){if(t&1&&(be(0,`div`,22),it(1),Ee()),t&2){let n=e.$implicit;we(),xr(` `,n,` `)}}function yae(t,e){if(t&1){let n=yn();be(0,`div`,23)(1,`a`,18),at(`click`,function(){let c=cn(n).$implicit;return un(Ye().logWebsiteClick(c.url))}),it(2),Ee()()}if(t&2){let n=e.$implicit;we(),We(`href`,n.url,qd),we(),lr(n.title)}}var q2=class t{iconLibrary=se(Vt);sanitizer=se(Vy);logger=se(Ct);navigatorService=se(Zr);stateService=se(Xn);place=Wt.required();hideDeals=Wt(!1);imageSrc=Xe(()=>this.place().images[0]||this.place().logo||M1);isImageLoading=dt(!0);schedule=Xe(()=>{let e=this.place().openingHours;return e?L7(e):``});banners=Xe(()=>this.place().banners.filter(M2).filter(e=>e.description!==void 0).map(e=>({description:this.sanitizer.bypassSecurityTrustHtml(e.description||``),color:D7(e.description||``)})));address=Xe(()=>this.place().address||``);phones=Xe(()=>this.place().properties?.filter(e=>e.type===`phone`).map(e=>this.formatPhoneNumber(e.subtitle))||[]);websites=Xe(()=>this.place().properties?.filter(e=>e.type===`url`).map(this.prepareUrl)||[]);drivingDirectionsUrl=Xe(()=>{let e=this.place();return`https://www.google.com/maps/dir/?api=1&destination=${e.position.lat},${e.position.lng}&travelmode=driving`});otherSchedulesModal=dt(!1);faCircleNotch=this.iconLibrary.getIconDefinition(`fas`,`circle-notch`);faBadgeDollar=this.iconLibrary.getIconDefinition(`fas`,`badge-dollar`);faClockThree=this.iconLibrary.getIconDefinition(`fas`,`clock-three`);faArrowTopRight=this.iconLibrary.getIconDefinition(`fak`,`arrow-top-right`);iconCategory=Xe(()=>{let[e,n]=I2(this.place().localizedCategory||``);return this.iconLibrary.getIconDefinition(e,n)});constructor(){Ot(()=>{this.imageSrc()&&this.startImageLoading()})}prepareUrl(e){return s(r({},e),{url:e.url?.startsWith(`http`)?e.url:`https://${e.url}`})}startImageLoading(){this.isImageLoading.set(!0)}endImageLoading(){this.isImageLoading.set(!1)}showOtherSchedulesModal(){this.otherSchedulesModal.set(!0)}hideOtherSchedulesModal(){this.otherSchedulesModal.set(!1)}formatPhoneNumber(e){let n=e.replace(/^\+1/,``);return n=n.replaceAll(/\D/g,``),n.length<10?(this.logger.logWarning(`Phone number '${n}' is to short for format`),n):`${n.slice(0,3)}.${n.slice(3,6)}.${n.slice(6)}`}navigateToRoute(){this.stateService.userAction.next({type:`select-destination`,data:{destinationId:this.place().mapvxId,alias:this.place().clientId}}),this.logger.logEvent(`pedestrian_directions_selected`,{id:this.place().mapvxId,name:this.place().title,clientId:this.place().clientId||``}),this.navigatorService.navigateToRoute(this.place().mapvxId)}logDrivingDirectionsClick(){this.logger.logEvent(`driving_directions_clicked`,{id:this.place().mapvxId,name:this.place().title,clientId:this.place().clientId||``,url:this.drivingDirectionsUrl()})}logWebsiteClick(e){e&&this.logger.logEvent(`profile_website_clicked`,{id:this.place().mapvxId,name:this.place().title,clientId:this.place().clientId||``,url:e})}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-profile-view`]],inputs:{place:[1,`place`],hideDeals:[1,`hideDeals`]},decls:34,vars:15,consts:[[1,`profile-view-content`],[1,`image`],[3,`load`,`error`,`src`,`alt`],[1,`loading-icon`,3,`icon`,`transform`],[1,`info`],[1,`basic-info`],[1,`title`],[1,`category-schedule`],[1,`category`],[3,`icon`],[1,`schedule`],[1,`other-schedules-modal`],[1,`deals-or-events`],[1,`description`],[1,`direction-buttons`],[1,`route-button-container`],[1,`route-button`,3,`click`],[1,`driving-link`],[`target`,`_blank`,3,`click`,`href`],[1,`properties`],[1,`separator`],[1,`address`],[1,`phone`],[1,`website`],[1,`schedule-time`],[1,`schedule-button`,3,`click`,`innerHTML`],[1,`schedule-warning`],[3,`closeClicked`,`schedules`],[1,`deals-or-events-header`],[1,`deals-or-events-content-title`],[1,`deals-or-events-content`],[1,`banner-content`,3,`innerHTML`,`color`,`border-color`],[1,`banner-content`,3,`innerHTML`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`div`,1)(2,`img`,2),at(`load`,function(){return o.endImageLoading()})(`error`,function(){return o.endImageLoading()}),Ee(),Et(3,uae,1,3,`fa-icon`,3),Ee(),be(4,`div`,4)(5,`div`,5)(6,`h1`,6),it(7),Ee(),be(8,`div`,7)(9,`div`,8),Ve(10,`fa-icon`,9),be(11,`span`),it(12),Ee()(),Et(13,dae,6,2,`div`,10),Et(14,pae,2,1,`div`,11),Ee(),Et(15,fae,8,1,`div`,12),be(16,`div`,13),it(17),Ee()(),be(18,`div`,14)(19,`div`,15)(20,`button`,16),at(`click`,function(){return o.navigateToRoute()}),Ve(21,`fa-icon`,9),be(22,`span`),it(23,`Pedestrian-friendly directions`),Ee()()(),be(24,`div`,17)(25,`a`,18),at(`click`,function(){return o.logDrivingDirectionsClick()}),it(26,`Driving directions`),Ee()()(),be(27,`div`,19),Ve(28,`div`,20),Et(29,mae,2,1,`div`,21),_r(30,gae,2,1,`div`,22,bo),_r(32,yae,3,2,`div`,23,bo),Ee()()()),n&2&&(we(),An(`loading`,o.isImageLoading()),we(),We(`src`,o.imageSrc(),qd)(`alt`,o.place().title),we(),It(o.isImageLoading()?3:-1),we(4),lr(o.place().title),we(3),We(`icon`,o.iconCategory()),we(2),lr(o.place().localizedCategory),we(),It(o.schedule()!==``?13:-1),we(),It(o.otherSchedulesModal()?14:-1),we(),It(o.banners().length>0&&!o.hideDeals()?15:-1),we(2),xr(` `,o.place().description,` `),we(4),We(`icon`,o.faArrowTopRight),we(4),We(`href`,o.drivingDirectionsUrl(),qd),we(4),It(o.address()!==``?29:-1),we(),br(o.phones()),we(2),br(o.websites()))},dependencies:[rn,G2],styles:[`.profile-view-content[_ngcontent-%COMP%]{display:flex;padding:0 16px;flex-direction:column;align-items:center;gap:16px}@container mapvx-container (width <= 1024px){.profile-view-content[_ngcontent-%COMP%]{padding:22px 0 0}}@container mapvx-container (width <= 640px){.profile-view-content[_ngcontent-%COMP%]{padding:22px 0 0}}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;object-fit:cover;aspect-ratio:1/1}.image.loading[_ngcontent-%COMP%]{background-color:var(--%NS%definitions-colors-primary-300);height:200px;width:100%;display:flex;justify-content:center;align-items:center}.image.loading[_ngcontent-%COMP%] .loading-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-primary-600);font-size:100px}.image.loading[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:none}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px;width:100%}.basic-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.title[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-h6);font-family:inherit;margin:0;color:var(--%NS%definitions-colors-text-black)}.category-schedule[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;flex-wrap:wrap;position:relative}.category[_ngcontent-%COMP%]{display:flex;gap:18px;color:var(--%NS%definitions-colors-text-grey);align-items:center}.category[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px}.category[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-body-3);font-family:inherit;font-size:16px}.schedule[_ngcontent-%COMP%]{display:flex;gap:18px;align-items:center}.schedule[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-primary-600);font-size:20px}.schedule[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%]{position:relative}.schedule[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%] .schedule-button[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-button-3);font-family:inherit;font-size:16px;color:var(--%NS%definitions-colors-secondary-blue);border:none;background:none;cursor:pointer;text-align:start}.schedule[_ngcontent-%COMP%] .schedule-time[_ngcontent-%COMP%] .schedule-warning[_ngcontent-%COMP%]{position:absolute;top:100%;margin-top:-5px;left:0;font:var(--%NS%definitions-textFonts-desktop-sub-5);font-family:inherit;font-size:16px;color:var(--%NS%definitions-colors-text-black)}.other-schedules-modal[_ngcontent-%COMP%]{position:absolute;width:max-content;bottom:0;right:50%;transform:translate(50%) translateY(100%)}.deals-or-events[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%}.deals-or-events-header[_ngcontent-%COMP%]{display:flex;width:100%;align-items:flex-start;gap:18px;color:var(--%NS%definitions-colors-secondary-orange)}.deals-or-events-header[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px}.deals-or-events-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.deals-or-events-content-title[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-sub-4);font-family:inherit;font-size:16px}.banner-content[_ngcontent-%COMP%]{width:-webkit-fill-available;width:stretch;color:var(--%NS%definitions-colors-secondary-orange);padding:10px;font:var(--%NS%definitions-textFonts-desktop-body-3);font-family:inherit;font-size:16px;white-space:pre-wrap;border:1px solid var(--%NS%definitions-colors-secondary-orange);border-radius:8px;box-shadow:var(--%NS%definitions-shadows-general)}.description[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-body-2);font-family:inherit;color:var(--%NS%definitions-colors-text-black)}.direction-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:16px;align-self:stretch;width:100%}.route-button-container[_ngcontent-%COMP%]{width:100%}.route-button[_ngcontent-%COMP%]{display:flex;padding:8px 16px;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:var(--%NS%definitions-colors-primary-black);color:var(--%NS%definitions-colors-text-white);border:none;cursor:pointer;width:100%}.route-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-button-2);font-family:inherit;font-size:16px;font-feature-settings:"liga" off,"clig" off}.driving-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-secondary-blue);text-decoration:none;font:var(--%NS%definitions-textFonts-desktop-button-2);font-family:inherit;font-size:16px;font-feature-settings:"liga" off,"clig" off}.properties[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.separator[_ngcontent-%COMP%]{width:100%;height:1px;background:var(--%NS%definitions-colors-primary-100)}.address[_ngcontent-%COMP%], .phone[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-sub-1);font-family:inherit;font-size:16px;color:var(--%NS%definitions-colors-text-black)}.website[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-button-1);font-family:inherit;font-size:16px;font-feature-settings:"liga" off,"clig" off}.website[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-secondary-blue);text-decoration:none}`],changeDetection:1})};var hm=class t{iconLibraryService=se(Vt);faArrowLeft=this.iconLibraryService.getIconDefinition(`fas`,`arrow-left`);static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`button`,`backButton`,``]],decls:3,vars:1,consts:[[3,`icon`]],template:function(n,o){n&1&&(Ve(0,`fa-icon`,0),be(1,`span`),it(2,`Back`),Ee()),n&2&&We(`icon`,o.faArrowLeft)},dependencies:[rn],styles:[`[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;gap:12px;color:var(--%NS%definitions-colors-secondary-blue);border:none;background:none}[_nghost-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:24px}[_nghost-%COMP%] span[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-secondary-blue);font:var(--%NS%definitions-textFonts-desktop-button-1);font-family:inherit;font-feature-settings:"liga" off,"clig" off;letter-spacing:-1px}`],changeDetection:1})};function vae(t,e){if(t&1&&Ve(0,`app-profile-view`,5),t&2){let n=Ye();We(`place`,Ca(6))(`hideDeals`,n.hideDeals())}}var W2=class t{onDestroy=new Jt;route=se(as);logger=se(Ct);loadedDataService=se(In);sdkService=se(Eo);mapService=se(tr);markerService=se(ci);navigatorService=se(Zr);homeStateService=se(Xn);iconLibraryService=se(Vt);_profileId=``;place=dt(null);mapReady=Yn(this.mapService.mapReady,{requireSync:!0});hideDeals=Xe(()=>this.homeStateService.hideDeals());faArrowLeft=this.iconLibraryService.getIconDefinition(`fas`,`arrow-left`);constructor(){Ot(()=>{let e=this.place();if(e&&this.mapReady()){if(e.parentType===`Place`){let o=this.loadedDataService.parentPlace(),c=e.inFloors?.[0];if(o===void 0||o.mapvxId!==e.parentId){let m=this.loadedDataService.potentialParentPlaces().find(x=>x.mapvxId===e.parentId);m&&(this.loadedDataService.parentPlace.set(m),this.mapService.setParentPlace(m,()=>{c&&this.mapService.updateFloor(c)}))}else c&&this.mapService.updateFloor(c)}if(!this.markerService.hasMarker(e.mapvxId)){let o=si(this.homeStateService.lastListedPlaces);o.length>0?this.markerService.addMarkers(o):this.markerService.addMarker(e)}this.markerService.selectMarker(e.mapvxId),setTimeout(()=>{this.mapService.updateCamera({center:e.position})},100)}})}ngOnInit(){this.addBackListener();Lo([this.route.paramMap.pipe(en(n=>n.get(`id`)),gr(n=>n!==null),gr(n=>n!==this._profileId),dE(1)),this.loadedDataService.getAvailablePlaces()]).pipe(ri(this.onDestroy),Hr(([n,o])=>{this.logger.logEvent(`page_view`,{page_title:`Profile Page`,page_location:`/profile/${n}`});let c=o.find(s=>s.mapvxId===n||s.clientId===n);return c?Gt(c):Un(this.sdkService.getPlaceDetail(n))})).subscribe({next:n=>{this._profileId!==n.mapvxId&&this.cleanOldProfile(),this._profileId=n.mapvxId,this.place.set(n),this.loadedDataService.updateInstitution(n.parentInstitutionId),this.homeStateService.selectedInstitution.set(n.parentInstitutionId),this.homeStateService.userAction.next({type:`show-place`,data:{placeId:n.mapvxId,alias:n.clientId}})},error:n=>{this.logger.log(`Error getting profile id`,n)},complete:()=>{this.logger.log(`Profile id complete`)}})}ngOnDestroy(){this.removeBackListener(),this.cleanOldProfile(),this.onDestroy.next(),this.onDestroy.complete()}cleanOldProfile(){this._profileId!==``&&this.markerService.deselectMarker(this._profileId)}returnToHome(){this.homeStateService.userAction.next({type:`return-to-home`,data:{filter:this.homeStateService.selectedFilter()}}),this.logger.logEvent(`profile_back_clicked`,{id:this.place()?.mapvxId||``,name:this.place()?.title||``,clientId:this.place()?.clientId||``}),this.navigatorService.navigateToHome()}backListener(e){this.logger.log(`Back listener`,e),this.returnToHome()}listener=e=>this.backListener(e);addBackListener(){globalThis.addEventListener(`popstate`,this.listener)}removeBackListener(){globalThis.removeEventListener(`popstate`,this.listener)}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-profile-screen`]],decls:10,vars:2,consts:[[1,`screen`],[1,`back-button`],[`backButton`,``,3,`click`],[1,`profile-screen-content`],[1,`profile-info`],[3,`place`,`hideDeals`],[1,`map`]],template:function(n,o){if(n&1&&(be(0,`div`,0)(1,`div`,1)(2,`button`,2),at(`click`,function(){return o.returnToHome()}),it(3,`Back`),Ee()(),be(4,`div`,3)(5,`div`,4),Ta(6),Et(7,vae,1,2,`app-profile-view`,5),Ee(),be(8,`div`,6),Ve(9,`app-map`),Ee()()()),n&2){we(6);let c=Fl(o.place());we(),It(c!==null?7:-1)}},dependencies:[bu,hm,q2],styles:[`.screen[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px}.profile-screen-content[_ngcontent-%COMP%]{display:flex;width:100%}@container mapvx-container (width <= 1024px){.profile-screen-content[_ngcontent-%COMP%]{flex-direction:column-reverse}}@container mapvx-container (width <= 640px){.profile-screen-content[_ngcontent-%COMP%]{flex-direction:column-reverse}}.profile-info[_ngcontent-%COMP%]{display:flex;width:432px;flex-shrink:0}.profile-info[_ngcontent-%COMP%] app-profile-view[_ngcontent-%COMP%]{width:100%}@container mapvx-container (width <= 1024px){.profile-info[_ngcontent-%COMP%]{width:100%}}.map[_ngcontent-%COMP%]{width:100%;min-height:730px}@container mapvx-container (width <= 1024px){.map[_ngcontent-%COMP%]{height:730px}}@container mapvx-container (width <= 640px){.map[_ngcontent-%COMP%]{width:100%;min-height:unset;height:400px}}`]})};function _ae(t,e){if(t&1){let n=yn();be(0,`button`,1),at(`click`,function(){cn(n);return un(Ye().pauseRoute())}),Ve(1,`fa-icon`,2),be(2,`span`),it(3,`Pause route`),Ee()()}if(t&2){let n=Ye();we(),We(`icon`,n.faPause)}}function bae(t,e){if(t&1){let n=yn();be(0,`button`,1),at(`click`,function(){cn(n);return un(Ye().resumeRoute())}),Ve(1,`fa-icon`,2),be(2,`span`),it(3,`Resume route`),Ee()()}if(t&2){let n=Ye();we(),We(`icon`,n.faPlay)}}function xae(t,e){if(t&1){let n=yn();be(0,`button`,1),at(`click`,function(){cn(n);return un(Ye().nextStep())}),Ve(1,`fa-icon`,2),be(2,`span`),it(3,`Next step`),Ee()()}if(t&2){let n=Ye();we(),We(`icon`,n.faNextStep)}}function wae(t,e){if(t&1){let n=yn();be(0,`button`,1),at(`click`,function(){cn(n);return un(Ye().restartRoute())}),Ve(1,`fa-icon`,2),be(2,`span`),it(3,`Restart route`),Ee()()}if(t&2){let n=Ye();we(),We(`icon`,n.faRestart)}}function Sae(t,e){}var Z2=class t{logger=se(Ct);iconLibrary=se(Vt);routingService=se(Io);restartRouteCallback=Li();AnimationState=Zv;animationStatus=Yn(this.routingService.animationStatusSubject,{initialValue:0});faPlay=this.iconLibrary.getIconDefinition(`fas`,`play`);faPause=this.iconLibrary.getIconDefinition(`fas`,`pause`);faRestart=this.iconLibrary.getIconDefinition(`fas`,`rotate-right`);faNextStep=this.iconLibrary.getIconDefinition(`fas`,`chevron-right`);nextStep(){this.logger.logEvent(`route_button_clicked`,{action:`next-step`}),this.routingService.animateNextStep()}pauseRoute(){this.logger.logEvent(`route_button_clicked`,{action:`pause`}),this.routingService.pauseRouteAnimation()}resumeRoute(){this.logger.logEvent(`route_button_clicked`,{action:`resume`}),this.routingService.resumeRouteAnimation()}restartRoute(){this.logger.logEvent(`route_button_clicked`,{action:`restart`}),this.routingService.restartRouteAnimation(),this.restartRouteCallback.emit()}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-route-control-button`]],outputs:{restartRouteCallback:`restartRouteCallback`},decls:5,vars:1,consts:[[1,`route-control-button`],[1,`route-control-button`,3,`click`],[3,`icon`]],template:function(n,o){if(n&1&&Et(0,_ae,4,1,`button`,0)(1,bae,4,1,`button`,0)(2,xae,4,1,`button`,0)(3,wae,4,1,`button`,0)(4,Sae,0,0),n&2){let c;It((c=o.animationStatus())===o.AnimationState.Playing?0:c===o.AnimationState.Paused?1:c===o.AnimationState.Stepping?2:c===o.AnimationState.Finished?3:4)}},dependencies:[rn],styles:[`[_nghost-%COMP%]{position:absolute;top:20px;left:500px}@container mapvx-container (width <= 1024px){[_nghost-%COMP%]{top:90px;left:unset;right:20px}}.route-control-button[_ngcontent-%COMP%]{display:flex;width:180px;height:45px;justify-content:center;align-items:center;gap:10px;background:var(--%NS%definitions-colors-background-white);color:var(--%NS%definitions-colors-text-black);box-shadow:var(--%NS%definitions-shadows-general);border:none;cursor:pointer}@container mapvx-container (width <= 1024px){.route-control-button[_ngcontent-%COMP%]{width:45px}}.route-control-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:16px}.route-control-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-button-5);font-family:inherit}@container mapvx-container (width <= 1024px){.route-control-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}}`],changeDetection:1})};function Eae(t,e){if(t&1&&(Ve(0,`fa-icon`,3),be(1,`span`,8),it(2,`Elevator`),Ee()),t&2)We(`icon`,Ye(2).faCircleSmall)}function Iae(t,e){if(t&1&&(be(0,`div`,5),Ve(1,`fa-icon`,3),be(2,`span`,7),it(3),Ee(),Et(4,Eae,3,1),Ee()),t&2){let n=Ye(),o=Ca(13);we(),We(`icon`,n.faArrowsUpDown),we(2),lr(o.path),we(),It(o.byElevator?4:-1)}}function Tae(t,e){if(t&1){let n=yn();be(0,`button`,9),at(`click`,function(){cn(n);return un(Ye().onStartRouteClick())}),Ve(1,`fa-icon`,3),be(2,`span`),it(3,`Start Route`),Ee()()}if(t&2){let n=Ye();we(),We(`icon`,n.faArrowTopRight)}}var Y2=class t{iconLibrary=se(Vt);loadedDataService=se(In);routingService=se(Io);currentRoute=Wt.required();startRouteClick=Li();animationStatus=Yn(this.routingService.animationStatusSubject,{initialValue:0});canStartRoute=Xe(()=>this.animationStatus()!==4);faCircleSmall=this.iconLibrary.getIconDefinition(`fas`,`circle-small`);faArrowTopRight=this.iconLibrary.getIconDefinition(`fak`,`arrow-top-right`);faArrowsUpDown=this.iconLibrary.getIconDefinition(`fas`,`arrows-up-down`);time=Xe(()=>{let e=this.currentRoute();return this.toMinutes(e.duration)});distance=Xe(()=>{let e=this.currentRoute();return Math.ceil(e.length*3.28084)});floorChangeSummary=Xe(()=>{let e=this.loadedDataService.parentPlace()?.innerFloors??[],n=M7(this.currentRoute());if(n.length===0||e.length===0)return;let o=[n[0].fromFloorId,...n.map(c=>c.toFloorId)].map(c=>A7(e,c));if(!o.includes(void 0))return{path:o.join(` → `),byElevator:n.every(c=>c.byElevator)}});toMinutes(e){return Math.ceil(e/60)}onStartRouteClick(){this.startRouteClick.emit()}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-route-info`]],inputs:{currentRoute:[1,`currentRoute`]},outputs:{startRouteClick:`startRouteClick`},decls:16,vars:7,consts:[[1,`route-info`],[1,`route-info-item`],[1,`route-info-item-label`],[3,`icon`],[1,`route-info-item-value`],[1,`floor-change`],[1,`start-route-button`],[1,`floor-change-path`],[1,`floor-change-mode`],[1,`start-route-button`,3,`click`]],template:function(n,o){if(n&1&&(be(0,`div`,0)(1,`div`,1)(2,`span`,2),it(3,`Time`),Ee(),Ve(4,`fa-icon`,3),be(5,`span`,4),it(6),Ee()(),be(7,`div`,1)(8,`span`,2),it(9,`Distance`),Ee(),Ve(10,`fa-icon`,3),be(11,`span`,4),it(12),Ee()()(),Ta(13),Et(14,Iae,5,3,`div`,5),Et(15,Tae,4,1,`button`,6)),n&2){we(4),We(`icon`,o.faCircleSmall),we(2),xr(``,o.time(),` min`),we(4),We(`icon`,o.faCircleSmall),we(2),xr(``,o.distance(),` ft`),we();let c=Fl(o.floorChangeSummary());we(),It(c?14:-1),we(),It(o.canStartRoute()?15:-1)}},dependencies:[rn],styles:[`[_nghost-%COMP%]{display:flex;flex-direction:column;gap:16px}.route-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.route-info-item[_ngcontent-%COMP%], .floor-change[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;color:var(--%NS%definitions-colors-text-black)}.start-route-button[_ngcontent-%COMP%]{display:flex;margin-top:24px;padding:8px 16px;justify-content:center;align-items:center;gap:10px;background-color:var(--%NS%definitions-colors-primary-900);color:var(--%NS%definitions-colors-text-50);border:none;cursor:pointer;width:100%}.start-route-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-button-2);font-family:inherit;font-feature-settings:"liga" off,"clig" off;line-height:15px}`],changeDetection:1})};var Cae=new pt(``,{factory:()=>z7});var z7=`always`;var Dae=(()=>{class t{static ɵfac=function(o){return new(o||t)};static ɵmod=zs({type:t});static ɵinj=Qo({})}return t})();var B7=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:Cae,useValue:n.callSetDisabledState??z7}]}}static ɵfac=function(o){return new(o||t)};static ɵmod=zs({type:t});static ɵinj=Qo({imports:[Dae]})}return t})();function Aae(t,e){if(t&1){let n=yn();be(0,`button`,5),at(`click`,function(){cn(n);return un(Ye().clearSelectedPlace())}),Ve(1,`fa-icon`,6),Ee()}if(t&2){let n=Ye();we(),We(`icon`,n.faXmark)}}function Mae(t,e){if(t&1){let n=yn();be(0,`button`,10),at(`click`,function(){cn(n);return un(Ye(2).useCurrentLocation())}),be(1,`div`,11),Ve(2,`fa-icon`,6),Ee(),be(3,`div`,12)(4,`div`,13),it(5,`Use current location`),Ee()()()}if(t&2){let n=Ye(2);we(2),We(`icon`,n.faLocationArrow)}}function Pae(t,e){if(t&1){let n=yn();be(0,`button`,10),at(`click`,function(){let c=cn(n).$implicit;return un(Ye(2).selectPlace(c))}),be(1,`div`,11),Ve(2,`fa-icon`,6),Ee(),be(3,`div`,12)(4,`div`,13),it(5),Ee(),be(6,`div`,14),it(7),Ee()()()}if(t&2){let n=e.$implicit,o=Ye(2);we(2),We(`icon`,o.faLocationDot),we(3),lr(n.title),we(2),lr(n.address)}}function Rae(t,e){t&1&&(be(0,`div`,9),it(1,`No results found`),Ee())}function kae(t,e){if(t&1&&(be(0,`div`,4)(1,`div`,7),Et(2,Mae,6,1,`button`,8),_r(3,Pae,8,3,`button`,8,bo),Et(5,Rae,2,0,`div`,9),Ee()()),t&2){let n=Ye();we(2),It(n.allowCurrentLocation()&&n.locationPermission()!==`denied`?2:-1),we(),br(n.filteredPlaces()),we(2),It(n.filteredPlaces().length===0&&n.filterText().trim()?5:-1)}}var X2=class t{logger=se(Ct);locationService=se(_u);iconLibrary=se(Vt);places=Wt.required();initialSelectedPlace=Wt(null);allowCurrentLocation=Wt(!1);placeholder=Wt(`Set a starting point`);selectedPlace=ai(()=>this.initialSelectedPlace());selectedPlaceChange=Li();isDropdownOpen=dt(!1);filterText=ai(()=>this.selectedPlace()?.title||``);filteredPlaces=Xe(()=>{let e=this.places(),n=this.filterText().toLowerCase().trim();return n?e.filter(o=>o.title?.toLowerCase().includes(n)||o.address?.toLowerCase().includes(n)):e});locationPermission=dt(`prompt`);faLocationDot=this.iconLibrary.getIconDefinition(`fas`,`location-dot`);faLocationArrow=this.iconLibrary.getIconDefinition(`fas`,`location-arrow`);faXmark=this.iconLibrary.getIconDefinition(`fas`,`xmark`);constructor(){this.checkLocationPermission()}checkLocationPermission(){this.locationService.checkLocationPermission().then(e=>{this.locationPermission.set(e)}).catch(e=>{this.logger.logWarning(`Error checking location permission`,e),this.locationPermission.set(`denied`)})}requestLocationPermission(){this.locationService.requestLocationPermission().then(e=>{this.locationPermission.set(e),e===`granted`&&this.getCurrentLocation()}).catch(e=>{this.logger.logWarning(`Error requesting location permission`,e),this.locationPermission.set(`denied`)})}getCurrentLocation(){this.locationService.getCurrentLocation().then(e=>{this.selectedPlace.set(e),this.selectedPlaceChange.emit(e)}).catch(e=>{this.logger.logWarning(`Error getting current location`,e)})}useCurrentLocation(){switch(this.locationPermission()){case`granted`:this.getCurrentLocation();break;case`prompt`:this.requestLocationPermission();break}}selectPlace(e){this.selectedPlace.set(e),this.isDropdownOpen.set(!1),this.selectedPlaceChange.emit(e)}clearSelectedPlace(){this.selectedPlace.set(null),this.filterText.set(``),this.selectedPlaceChange.emit(null)}onInputFocus(){this.isDropdownOpen.set(!0)}onInputBlur(){setTimeout(()=>{this.isDropdownOpen.set(!1)},150)}onInputChange(e){let n=e.target;this.filterText.set(n.value),this.isDropdownOpen.set(!0)}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-place-selector`]],inputs:{places:[1,`places`],initialSelectedPlace:[1,`initialSelectedPlace`],allowCurrentLocation:[1,`allowCurrentLocation`],placeholder:[1,`placeholder`]},outputs:{selectedPlaceChange:`selectedPlaceChange`},decls:5,vars:4,consts:[[1,`place-selector`],[1,`input-container`],[`type`,`text`,`name`,`place-input`,1,`place-input`,3,`input`,`focus`,`blur`,`value`,`placeholder`],[1,`clear-button`],[1,`dropdown-container`],[1,`clear-button`,3,`click`],[3,`icon`],[1,`dropdown-list`],[`type`,`button`,1,`place-option`],[1,`no-results`],[`type`,`button`,1,`place-option`,3,`click`],[1,`place-icon`],[1,`place-info`],[1,`place-title`],[1,`place-address`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`div`,1)(2,`input`,2),at(`input`,function(s){return o.onInputChange(s)})(`focus`,function(){return o.onInputFocus()})(`blur`,function(){return o.onInputBlur()}),Ee(),Et(3,Aae,2,1,`button`,3),Ee(),Et(4,kae,6,2,`div`,4),Ee()),n&2&&(we(2),We(`value`,o.filterText())(`placeholder`,o.placeholder()),we(),It(o.selectedPlace()?3:-1),we(),It(o.isDropdownOpen()?4:-1))},dependencies:[B7,rn],styles:[`[_nghost-%COMP%]{width:100%}.place-selector[_ngcontent-%COMP%]{position:relative;width:100%}.input-container[_ngcontent-%COMP%]{width:100%;display:flex}.place-input[_ngcontent-%COMP%]{width:100%;border:none;font:var(--%NS%definitions-textFonts-desktop-button-1);font-family:inherit;font-feature-settings:"liga" off,"clig" off;letter-spacing:-1px;text-overflow:ellipsis;outline:none;color:var(--%NS%definitions-colors-text-black)}.place-input[_ngcontent-%COMP%]::placeholder{color:var(--%NS%definitions-colors-primary-300)}.clear-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--%NS%definitions-colors-text-900)}.dropdown-container[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;right:0;z-index:10;margin-top:4px}.dropdown-list[_ngcontent-%COMP%]{background:var(--%NS%definitions-colors-background-50);border-radius:8px;box-shadow:var(--%NS%definitions-shadows-general);max-height:300px;overflow-y:auto;border:1px solid var(--%NS%definitions-colors-gray-200)}.place-option[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:4px;padding:15px 24px;cursor:pointer;transition:background-color .2s ease;border-bottom:1px solid #f5f5f5;background:none;border:none;width:100%;text-align:left}.place-option[_ngcontent-%COMP%]:last-child{border-bottom:none}.place-option[_ngcontent-%COMP%]:hover{background-color:#f8f9fa}.place-option[_ngcontent-%COMP%]:active{background-color:#e9ecef}.place-option[_ngcontent-%COMP%]:focus{outline:2px solid #5D5D5D;outline-offset:-2px}.place-icon[_ngcontent-%COMP%]{flex-shrink:0;width:19.341px;height:19.341px;margin-top:2px;color:var(--%NS%definitions-colors-primary-600)}.place-info[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.place-title[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-button-3);font-family:inherit;color:var(--%NS%definitions-colors-text-900);word-wrap:break-word}.place-address[_ngcontent-%COMP%]{font:var(--%NS%definitions-textFonts-desktop-body-3);font-family:inherit;color:var(--%NS%definitions-colors-text-800);word-wrap:break-word}.no-results[_ngcontent-%COMP%]{padding:20px 24px;text-align:center;font:var(--%NS%definitions-textFonts-desktop-body-3);font-family:inherit;color:var(--%NS%definitions-colors-text-800)}@media(width<=768px){.place-option[_ngcontent-%COMP%]{padding:12px 20px}.place-title[_ngcontent-%COMP%]{font-size:15px}.place-address[_ngcontent-%COMP%]{font-size:13px}}`],changeDetection:1})};var K2=class t{logger=se(Ct);iconLibrary=se(Vt);places=Wt.required();initialDestination=Wt(null);originPlace=dt(null);destinationPlace=ai(()=>this.initialDestination());originSelected=Li();destinationSelected=Li();swapPlaces=Li();clearDestination=Li();locationPermission=dt(`prompt`);faLocationDot=this.iconLibrary.getIconDefinition(`fas`,`location-dot`);faEllipsisVertical=this.iconLibrary.getIconDefinition(`fas`,`ellipsis-vertical`);faArrowsRetweet=this.iconLibrary.getIconDefinition(`fas`,`arrows-retweet`);canSwapPlaces=Xe(()=>mC(this.originPlace())&&mC(this.destinationPlace()));onOriginSelected(e){this.originSelected.emit(e),this.originPlace.set(e)}onDestinationSelected(e){if(Bs(e)){this.logger.logWarning(`Current location is not allowed as destination`);return}this.destinationSelected.emit(e),this.destinationPlace.set(e)}onSwapPlaces(){let e=this.originPlace(),n=this.destinationPlace();if(Bs(e)){this.logger.logWarning(`Should not be possible to swap places with current location as origin`);return}this.originPlace.set(n),this.originSelected.emit(n),this.destinationPlace.set(e),this.destinationSelected.emit(e)}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-route-selector`]],inputs:{places:[1,`places`],initialDestination:[1,`initialDestination`]},outputs:{originSelected:`originSelected`,destinationSelected:`destinationSelected`,swapPlaces:`swapPlaces`,clearDestination:`clearDestination`},decls:20,vars:10,consts:[[1,`route-selector`],[1,`routing-option`,`origin`],[1,`place-info`],[1,`place-icon`],[`xmlns`,`http://www.w3.org/2000/svg`,`width`,`36`,`height`,`36`,`viewBox`,`0 0 36 36`,`fill`,`none`],[`width`,`36`,`height`,`36`,`rx`,`18`,`fill`,`#8DC8FF`],[`d`,`M29.2517 17.7595C29.1117 23.9741 23.9602 28.8986 17.7456 28.7586C11.5309 28.6185 6.60648 23.4671 6.74649 17.2524C6.8865 11.0378 12.038 6.11332 18.2526 6.25333C24.4673 6.39334 29.3917 11.5448 29.2517 17.7595Z`,`fill`,`#2C57A0`],[`d`,`M13.5364 22.4764C13.4259 22.5279 13.3135 22.5415 13.199 22.5173C13.0847 22.4932 12.9902 22.4373 12.9155 22.3496C12.8298 22.2721 12.7772 22.1766 12.7577 22.0629C12.7384 21.9495 12.7519 21.8395 12.7982 21.7327L17.6404 11.5662C17.7437 11.3532 17.9102 11.2493 18.1399 11.2545C18.3697 11.2597 18.5313 11.371 18.6249 11.5884L23.0044 21.9626C23.0458 22.0714 23.0543 22.182 23.03 22.2944C23.0054 22.407 22.9485 22.5001 22.8594 22.5736C22.7808 22.6579 22.6839 22.7095 22.5687 22.7283C22.4532 22.7475 22.3415 22.7288 22.2335 22.6723L17.9278 20.6691L13.5364 22.4764ZM14.4251 20.9295L17.954 19.5064L21.4153 21.087L18.0981 13.1117L14.4251 20.9295Z`,`fill`,`white`],[3,`selectedPlaceChange`,`places`,`initialSelectedPlace`,`allowCurrentLocation`],[1,`connector-line`],[1,`connector-dots`],[3,`icon`],[1,`connector-line-element`],[`type`,`button`,1,`swap-button`,3,`click`,`disabled`],[1,`routing-option`,`destination`],[3,`selectedPlaceChange`,`places`,`initialSelectedPlace`,`placeholder`]],template:function(n,o){n&1&&(be(0,`div`,0)(1,`div`,1)(2,`div`,2)(3,`div`,3),Ab(),be(4,`svg`,4),Ve(5,`rect`,5)(6,`path`,6)(7,`path`,7),Ee()(),Mb(),be(8,`app-place-selector`,8),at(`selectedPlaceChange`,function(s){return o.onOriginSelected(s)}),Ee()()(),be(9,`div`,9)(10,`div`,10),Ve(11,`fa-icon`,11),Ee(),Ve(12,`div`,12),be(13,`button`,13),at(`click`,function(){return o.onSwapPlaces()}),Ve(14,`fa-icon`,11),Ee()(),be(15,`div`,14)(16,`div`,2)(17,`div`,3),Ve(18,`fa-icon`,11),Ee(),be(19,`app-place-selector`,15),at(`selectedPlaceChange`,function(s){return o.onDestinationSelected(s)}),Ee()()()()),n&2&&(we(8),We(`places`,o.places())(`initialSelectedPlace`,o.originPlace())(`allowCurrentLocation`,!0),we(3),We(`icon`,o.faEllipsisVertical),we(2),We(`disabled`,!o.canSwapPlaces()),we(),We(`icon`,o.faArrowsRetweet),we(4),We(`icon`,o.faLocationDot),we(),We(`places`,o.places())(`initialSelectedPlace`,o.destinationPlace())(`placeholder`,`Select a destination`))},dependencies:[X2,rn],styles:[`.route-selector[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px;position:relative;width:100%;box-sizing:border-box}.routing-option[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;padding:0 40px 0 0;box-sizing:border-box;width:100%}.place-info[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;flex:1;min-width:0}.place-icon[_ngcontent-%COMP%]{flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center}.destination[_ngcontent-%COMP%] .place-icon[_ngcontent-%COMP%]{color:var(--%NS%definitions-colors-text-black)}.connector-line[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;width:100%;position:relative}.connector-dots[_ngcontent-%COMP%]{flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center}.connector-dots[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:20px;color:#5d5d5d}.connector-line-element[_ngcontent-%COMP%]{flex:1;height:1px;background:#e0e0e0;position:relative}.connector-line-element[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:repeating-linear-gradient(to right,#e0e0e0 0,#e0e0e0 4px,transparent 4px,transparent 8px);transform:translateY(-50%)}.swap-button[_ngcontent-%COMP%]{flex-shrink:0;width:32px;height:25px;background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s ease}.swap-button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.swap-button[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#f5f5f5}.swap-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:16px;color:#5d5d5d}.clear-button[_ngcontent-%COMP%]{flex-shrink:0;width:20px;height:20px;background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s ease}.clear-button[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.clear-button[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:12px;color:#666}.select-destination-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px 12px;border-radius:6px;transition:background-color .2s ease;flex:1;text-align:left}.select-destination-button[_ngcontent-%COMP%]:hover{background-color:#f8f9fa}.select-destination-button[_ngcontent-%COMP%] .place-label[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-weight:600;font-size:20px;line-height:1;color:#cbcbcb;font-variation-settings:"wdth" 100;letter-spacing:-1px}.destination-selector[_ngcontent-%COMP%]{position:absolute;top:81px;left:84.5px;width:310px;z-index:1000;background:#fff;box-shadow:0 4px 4px #00000040;border-radius:8px;overflow:hidden}@media(width<=768px){.route-selector[_ngcontent-%COMP%]{padding:20px 16px}.place-text[_ngcontent-%COMP%]{font-size:18px}.place-icon[_ngcontent-%COMP%]{width:32px;height:32px}.place-icon[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:18px}.destination-selector[_ngcontent-%COMP%]{left:16px;right:16px;width:auto}}`],changeDetection:1})};function Oae(t,e){if(t&1&&Ve(0,`fa-icon`,2),t&2){Ye(2);We(`icon`,Ca(0).icon)}}function Nae(t,e){if(t&1&&(be(0,`div`,1),Et(1,Oae,1,1,`fa-icon`,2),be(2,`span`,3),it(3),Ee()()),t&2){Ye();let n=Ca(0);An(`route-step-floor-change`,n.icon!==void 0),we(),It(n.icon?1:-1),we(2),lr(n.text)}}var Q2=class t{iconLibrary=se(Vt);routingService=se(Io);loadedDataService=se(In);currentStep=Yn(this.routingService.currentStepSubject,{initialValue:null});faArrowUp=this.iconLibrary.getIconDefinition(`fas`,`arrow-up`);faArrowDown=this.iconLibrary.getIconDefinition(`fas`,`arrow-down`);instruction=Xe(()=>{let e=this.currentStep();if(!e)return;let n=this.loadedDataService.parentPlace()?.innerFloors??[];return this.getFloorChangeInstruction(e,n)??this.getPlainInstruction(e)});getFloorChangeInstruction(e,n){if(!bM(e))return;let o=n.find(I=>I.key===e.startInsideFloor),c=n.find(I=>I.key===e.endInsideFloor);if(!o||!c)return;let s=c.level>o.level,m=s?`up`:`down`;return{text:e.elevatorStep?`Take the elevator ${m} to ${dm(c)}`:`Go ${m} to ${dm(c)}`,icon:s?this.faArrowUp:this.faArrowDown}}getPlainInstruction(e){let n=e.plainInstruction?.trim();return n?{text:n}:void 0}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-route-step`]],decls:2,vars:2,consts:[[1,`route-step`,3,`route-step-floor-change`],[1,`route-step`],[3,`icon`],[1,`route-step-text`]],template:function(n,o){if(n&1&&(Ta(0),Et(1,Nae,4,4,`div`,0)),n&2){let c=Fl(o.instruction());we(),It(c?1:-1)}},dependencies:[rn],styles:[`.route-step[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:16px;background-color:var(--%NS%definitions-colors-background-white);box-shadow:var(--%NS%definitions-shadows-general);color:var(--%NS%definitions-colors-text-black)}.route-step-floor-change[_ngcontent-%COMP%]{background-color:var(--%NS%definitions-colors-secondary-orange);color:var(--%NS%definitions-colors-text-50)}.route-step-text[_ngcontent-%COMP%]{font-family:inherit}`],changeDetection:1})};function Lae(t,e){if(t&1){let n=yn();be(0,`div`,6)(1,`app-route-info`,9),at(`startRouteClick`,function(){cn(n);return un(Ye().startStepAnimation())}),Ee()()}if(t&2){Ye();let n=Ca(8);we(),We(`currentRoute`,n)}}var J2=class t{routeId=``;route=se(as);logger=se(Ct);navigatorService=se(Zr);loadedDataService=se(In);mapService=se(tr);markerService=se(ci);homeStateService=se(Xn);routingService=se(Io);mapReady=Yn(this.mapService.mapReady,{requireSync:!0});places=Yn(Lo([this.loadedDataService.getAvailablePlaces(),this.loadedDataService.getInstitutionId()]).pipe(en(([e,n])=>e.filter(o=>o.parentInstitutionId===n))),{initialValue:[]});originPoint=dt(null);destinationPlace=ai(()=>this.initialDestination());initialDestination=dt(null);currentRoute=dt(null);constructor(){this.routeId=this.route.snapshot.params.id||`unknown`,this.logger.logEvent(`page_view`,{page_title:`Route Page`,page_location:`/route/${this.routeId}`}),Ot(()=>{let e=this.places();if(e.length>0){let n=e.find(o=>o.mapvxId===this.routeId||o.clientId===this.routeId);n&&this.initialDestination.set(n)}}),Ot(()=>{let e=this.originPoint(),n=this.destinationPlace();if(this.mapReady()){if(this.markerService.removeAllMarkers(),e&&n){this.markerService.addOriginMarker(e.position),this.markerService.addDestinationMarker(n);return}this.markerService.addRouteMarkers(si(this.homeStateService.lastListedPlaces)),n&&(this.markerService.hasMarker(n.mapvxId)||this.markerService.addRouteMarker(n),this.markerService.selectMarker(n.mapvxId),setTimeout(()=>{this.mapService.updateCamera({center:n.position})},100))}}),Ot(e=>{let n=this.originPoint(),o=this.destinationPlace();if(!n||!o||!this.mapReady())return;let c=!1;e(()=>{c=!0,this.currentRoute.set(null),this.routingService.removeRoute()}),this.logger.logEvent(`route_selected`,{originId:Bs(n)?`current-location`:n.mapvxId,originName:n.title,destinationId:o.mapvxId,destinationName:o.title,destinationClientId:o.clientId||``,originClientId:Bs(n)?``:n.clientId||``}),Promise.all([this.mapService.waitForParentPlaceReady(),this.routingService.getRoute(n,o)]).then(([,s])=>{c||(this.currentRoute.set(s),this.routingService.startAnimatingRoute(s),this.fitMapToRoute(n,o,s))}).catch(s=>{this.logger.logWarning(`Error getting route`,s)})})}returnToProfile(){this.navigatorService.navigateToProfile(this.routeId);let e=this.originPoint(),n=this.destinationPlace();this.logger.logEvent(`route_back_clicked`,{destinationId:n?.mapvxId||``,destinationName:n?.title||``,destinationClientId:n?.clientId||``,originId:Bs(e)?`current-location`:e?.mapvxId||``,originName:e?.title||``,originClientId:Bs(e)?``:e?.clientId||``})}onDestinationSelected(e){this.destinationPlace.set(e)}onOriginSelected(e){this.originPoint.set(e)}startStepAnimation(){let e=this.currentRoute();e&&(this.logger.logEvent(`route_button_clicked`,{action:`start`}),this.routingService.removeRoute(),this.routingService.startSteppingRoute(e))}fitMapToRoute(e,n,o){let c=e?.position??this.originPoint()?.position,s=n?.position??this.destinationPlace()?.position,m=o??this.currentRoute(),x=document.querySelector(`.route-related-components`);if(c&&s&&m&&x&&this.mapReady()){let I=getComputedStyle(x),P=Number.parseInt(I.getPropertyValue(`--padding-top`)),N=Number.parseInt(I.getPropertyValue(`--padding-left`));setTimeout(()=>{this.mapService.fitRoute(c,s,m,{padding:{top:P,left:N,right:70,bottom:50}})},100)}}static ɵfac=function(n){return new(n||t)};static ɵcmp=ft({type:t,selectors:[[`app-route-screen`]],decls:13,vars:4,consts:[[1,`route-screen`],[1,`back-button`],[`backButton`,``,3,`click`],[1,`route-screen-content`],[1,`route-related-components`],[3,`originSelected`,`destinationSelected`,`places`,`initialDestination`],[1,`route-info`],[1,`map`],[3,`restartRouteCallback`],[3,`startRouteClick`,`currentRoute`]],template:function(n,o){if(n&1&&(be(0,`div`,0)(1,`div`,1)(2,`button`,2),at(`click`,function(){return o.returnToProfile()}),it(3,`Back`),Ee()(),be(4,`div`,3)(5,`div`,4)(6,`app-route-selector`,5),at(`originSelected`,function(s){return o.onOriginSelected(s)})(`destinationSelected`,function(s){return o.onDestinationSelected(s)}),Ee(),Ve(7,`app-route-step`),Ta(8),Et(9,Lae,2,1,`div`,6),Ee(),be(10,`div`,7)(11,`app-map`)(12,`app-route-control-button`,8),at(`restartRouteCallback`,function(){return o.fitMapToRoute()}),Ee()()()()()),n&2){we(6),We(`places`,o.places())(`initialDestination`,o.initialDestination()),we(2);let c=Fl(o.currentRoute());we(),It(c!==null?9:-1)}},dependencies:[hm,bu,K2,Y2,Q2,Z2],styles:[`.route-screen-content[_ngcontent-%COMP%]{position:relative}.route-related-components[_ngcontent-%COMP%]{--%NS%padding-top: 130;--%NS%padding-left: 450;position:absolute;top:0;left:0;width:450px;box-sizing:border-box;z-index:1;display:flex;flex-direction:column;gap:40px;padding:40px 38px;background-color:var(--%NS%definitions-colors-background-white)}@container mapvx-container (width <= 1024px){.route-related-components[_ngcontent-%COMP%]{--%NS%padding-top: 70;--%NS%padding-left: 50;position:unset;width:100%}}.map[_ngcontent-%COMP%]{width:100%;height:820px}`]})};var U7=[{path:``,component:A2,children:[{path:`list`,redirectTo:``,pathMatch:`full`},{path:``,component:z2},{path:`search`,component:V2}]},{path:`profile/:id`,component:W2},{path:`route/:id`,component:J2},{path:`**`,redirectTo:``}];var ew=class{handleError(e){console.error(`CustomErrorHandler`,e)}};var tw=class t extends Da{_path=``;_baseHref;_popStateListeners=[];constructor(){super(),this._baseHref=this.getBaseHref()}path(){return this._path}prepareExternalUrl(e){return this._baseHref+`#`+e}pushState(e,n,o,c){this._updatePath(e,o,c)}replaceState(e,n,o,c){this._updatePath(e,o,c)}forward(){}back(){}getState(){return null}historyGo(e){}onPopState(e){this._popStateListeners.push(e)}getBaseHref(){return typeof document<`u`?document.querySelector(`base`)?.href??`/`:`/`}_updatePath(e,n,o){this._path=n+(o?`?`+o:``),this._notifyPopState(e,n)}_notifyPopState(e,n){let o={type:`popstate`,state:e,url:n,pop:!0};this._popStateListeners.forEach(c=>{try{c(o)}catch(s){console.error(`Error in popstate listener:`,s)}})}getCurrentPath(){return this._path}setInitialPath(e){this._path=e}static ɵfac=function(n){return new(n||t)};static ɵprov=ct({token:t,factory:t.ɵfac,providedIn:`root`})};fC({providers:[{provide:_o,useClass:ew},BT(),jC(U7),{provide:Da,useClass:tw},fb(FL.forRoot(jy,[{command:`config`,values:[jy,{send_page_view:!1}]}]))]}).then(t=>{let e=S4(D2,{injector:t.injector});customElements.define(`mapvx-website`,e)}).catch(t=>console.error(t));
|