(function(){"use strict";u8.Base.Geolocation.MapTheme=function(e){$.extend(true,this,u8.Base.Geolocation.MapTheme.defaults,e)};u8.Base.Geolocation.MapTheme.defaults={width:50,height:60,innerImageOffset:{x:25,y:16},tipOffset:{x:25,y:50},textOffset:{x:0,y:9},routeThickness:6,routeColor:"rgba(15, 101, 173, 0.72)",types:{"route-start":{image:"u8-map-pin-route-start-l.png",selectedImage:"u8-map-pin-route-start-selected-l.png",innerImage:"u8-img-home-s",allowGrouping:false},"route-end":{image:"u8-map-pin-route-end-l.png",selectedImage:"u8-map-pin-route-end-selected-l.png",innerImage:"u8-img-finish-s",allowGrouping:false},"route-intermediate":{image:"u8-map-pin-route-intermediate-l.png",selectedImage:"u8-map-pin-route-intermediate-selected-l.png",text:"{visibleIndex}",allowGrouping:false},"route-group":{image:"u8-map-pin-route-intermediate-l.png",selectedImage:"u8-map-pin-route-intermediate-selected-l.png",text:"{visibleRange}",allowGrouping:false},pin:{image:"u8-map-pin-0-l.png",selectedImage:"u8-map-pin-0-selected-l.png"},"pin-orange":{image:"u8-map-pin-0-l.png",selectedImage:"u8-map-pin-0-selected-l.png"},"pin-green":{image:"u8-map-pin-1-l.png",selectedImage:"u8-map-pin-1-selected-l.png"},"pin-red":{image:"u8-map-pin-2-l.png",selectedImage:"u8-map-pin-2-selected-l.png"},"pin-blue":{image:"u8-map-pin-3-l.png",selectedImage:"u8-map-pin-3-selected-l.png"},"pin-purple":{image:"u8-map-pin-4-l.png",selectedImage:"u8-map-pin-4-selected-l.png"},"pin-magenta":{image:"u8-map-pin-5-l.png",selectedImage:"u8-map-pin-5-selected-l.png"},"pin-yellow":{image:"u8-map-pin-6-l.png",selectedImage:"u8-map-pin-6-selected-l.png"},"pin-gray":{image:"u8-map-pin-7-l.png",selectedImage:"u8-map-pin-7-selected-l.png"},group:{image:"u8-map-pill-0.png",selectedImage:"u8-map-pill-selected.png",width:32,height:32,tipOffset:{x:16,y:16},text:"{numberOfItems}"},"pill-orange":{image:"u8-map-pill-0.png",selectedImage:"u8-map-pill-selected.png",width:32,height:32,tipOffset:{x:16,y:16}},"pill-green":{image:"u8-map-pill-1.png",selectedImage:"u8-map-pill-selected.png",width:32,height:32,tipOffset:{x:16,y:16}},"pill-red":{image:"u8-map-pill-2.png",selectedImage:"u8-map-pill-selected.png",width:32,height:32,tipOffset:{x:16,y:16}},"pill-blue":{image:"u8-map-pill-3.png",selectedImage:"u8-map-pill-selected.png",width:32,height:32,tipOffset:{x:16,y:16}},"pin-visit":{image:"u8-map-pin-4-l.png",selectedImage:"u8-map-pin-4-selected-l.png"},"pin-visit-inactive":{image:"u8-map-pin-7-l.png",selectedImage:"u8-map-pin-7-selected-l.png"},"state-ok":{image:"u8-map-pill-ok.png",selectedImage:null,width:32,height:32,tipOffset:{x:16,y:16},innerImageOffset:{x:16,y:16}},"state-info":{image:"u8-map-pill-info.png",selectedImage:null,width:32,height:32,tipOffset:{x:16,y:16},innerImageOffset:{x:16,y:16}},"state-warning":{image:"u8-map-pill-warning.png",selectedImage:null,width:32,height:32,tipOffset:{x:16,y:16},innerImageOffset:{x:16,y:16}},"state-danger":{image:"u8-map-pill-danger.png",selectedImage:null,width:32,height:32,tipOffset:{x:16,y:16},innerImageOffset:{x:16,y:16}}}};$.extend(u8.Base.Geolocation.MapTheme.prototype,{getType:function(e){return this.types[e]||this.types["pin"]},addType:function(e,t,a){a=a&&this.types[a];if(a){t=$.extend({},a,t)}this.types[e]=t;return t}});u8.Base.Geolocation.MapTheme.makeClass({name:"MapTheme"});u8.Base.Geolocation.MapThemes=function(){};var e=u8.Base.Geolocation.MapThemes,t;$.extend(u8.Base.Geolocation.MapThemes,{add:function(a,p){if(typeof a=="object"){for(var i in a){e.add(i,a[i])}return}e._assertDefault();t[a]=p instanceof u8.Base.Geolocation.MapTheme?p:u8.create("MapTheme",p)},get:function(a){e._assertDefault();if(a instanceof u8.Base.Geolocation.MapTheme){return a}return t[a]||null},_assertDefault:function(){if(!t||!t["default"]){t={default:u8.create("MapTheme")}}}});u8.Base.Geolocation.MapThemes.makeClass({name:"MapThemes"})})();