(window.webpackJsonp=window.webpackJsonp||[]).push([[3,6,7,8,9,10,11,16,17],{580:function(t,e,n){},582:function(t,e,n){"use strict";n.r(e);var o=n(146),r=n(153),l=n(155),c=n(151),d=n(282),h={data:function(){return{exportitems:[{title:"Kml",format:2,ext:"kml"},{title:"Gpx",format:1,ext:"gpx"},{title:"Json",format:3,ext:"json"}]}},methods:{onExportClick:function(t,e){this.$emit("exportclicked",t,e)}}},f=n(1),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return e(d.a,{attrs:{"offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(n){var r=n.on,l=n.attrs;return[e(o.a,t._g(t._b({attrs:{icon:"",dark:""}},"v-btn",l,!1),r),[e(c.a,{staticClass:"svgicondef",attrs:{size:"28"}},[t._v("$pfexport")])],1)]}}])},[t._v(" "),e(r.a,[e(l.c,{staticClass:"pb-0 pt-0"},[t._v(" "+t._s(t.$t("export"))+" ")]),t._v(" "),e(l.a,t._l(t.exportitems,(function(n,r){return e(o.a,{key:r,attrs:{rounded:"",color:"primary",elevation:"0"},on:{click:function(e){return t.onExportClick(n.format,n.ext)}}},[t._v("\n "+t._s(n.title)+"\n ")])})),1)],1)],1)}),[],!1,null,null,null);e.default=component.exports},611:function(t,e,n){},612:function(t,e,n){},613:function(t,e,n){"use strict";n(580)},614:function(t,e,n){},615:function(t,e,n){},616:function(t,e,n){"use strict";var o=n(7),r=n(159);o({target:"String",proto:!0,forced:n(160)("fontsize")},{fontsize:function(t){return r(this,"font","size",t)}})},617:function(t,e,n){},618:function(t,e,n){},635:function(t,e,n){"use strict";n.r(e);var o=n(146),r=n(151),l=(n(47),n(48),n(50)),c=n(295),d=n(118),h={data:function(){return{map:null,maptype:"terrain"}},mounted:function(){var t=this;Object(c.c)().then((function(e){t.initMap(e)})),l.a.$on("map_show",(function(){t.loadViewpoint()})),l.a.$on("map_scrollto",(function(e){t.scrollTo(e)}))},methods:{initMap:function(t){var e=this;window.setTimeout((function(){var n=e.getLatLng(),o={zoom:12,center:n,disableDefaultUI:!0};e.map=new t.Map(document.getElementById("map"),o),e.map.setMapTypeId(e.maptype),e.updateLatLng(),e.map.addListener("center_changed",(function(){e.updateLatLng()})),e.addViewpointMarker(n),window.setTimeout((function(){e.map.setZoom(15)}),800)}),400)},loadViewpoint:function(){var t=this.getLatLng();this.map.setZoom(15),this.map.panTo(t),this.marker&&this.marker.setPosition(t)},addViewpointMarker:function(t){if(!this.marker){var e={path:"M-8,0a8,8 0 1,0 16,0a8,8 0 1,0 -16,0",fillColor:"#f40f97",fillOpacity:.8,anchor:new google.maps.Point(0,0),strokeWeight:0,scale:1};this.marker=new google.maps.Marker({position:t,map:this.map,draggable:!1,icon:e})}},getLatLng:function(){var t=new google.maps.LatLng(47.3508,8.4908);return window.currentviewpoint&&(t=new google.maps.LatLng(window.currentviewpoint.lat,window.currentviewpoint.lng)),t},zoomIn:function(){this.map.setZoom(this.map.getZoom()+1)},zoomOut:function(){this.map.setZoom(this.map.getZoom()-1)},close:function(){l.a.$emit("close-map-dialog")},toggleMap:function(){"terrain"===this.maptype?this.maptype="hybrid":this.maptype="terrain",this.map.setMapTypeId(this.maptype)},flyTo:function(){this.close();var t=this.map.getCenter();Object(d.loadViewpoint)(t.lat(),t.lng(),"")},scrollTo:function(t){var e=new google.maps.LatLng(t.lat,t.lng);this.map.setZoom(15),this.map.panTo(e)},updateLatLng:function(){var t=this.map.getCenter(),e=Object(d.formatCoords)(t.lat(),t.lng());document.getElementById("map_viewpoint").innerHTML=e}}},f=(n(613),n(1)),component=Object(f.a)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"map_container"},[e("div",{attrs:{id:"map"}}),t._v(" "),e("div",{staticClass:"bottom_left d-flex flex-column"},[e(o.a,{staticClass:"ml-2 mb-2",attrs:{fab:"","x-small":""},on:{click:t.toggleMap}},["terrain"==t.maptype?e(r.a,{staticClass:"svgicondef"},[t._v("$pfsatellite")]):t._e(),t._v(" "),"hybrid"==t.maptype?e(r.a,{staticClass:"svgicondef"},[t._v("$pfmap")]):t._e()],1),t._v(" "),e(o.a,{staticClass:"ml-2 mb-2",attrs:{fab:"","x-small":""},on:{click:t.zoomIn}},[e(r.a,{staticClass:"svgicondef"},[t._v("$pfplus")])],1),t._v(" "),e(o.a,{staticClass:"ml-2 mb-6",attrs:{fab:"","x-small":""},on:{click:t.zoomOut}},[e(r.a,{staticClass:"svgicondef"},[t._v("$pfminus")])],1)],1),t._v(" "),e("div",{staticClass:"bottom_right d-flex flex-column"},[e(o.a,{staticClass:"mr-2 mb-6",attrs:{fab:"",large:""},on:{click:t.flyTo}},[e(r.a,{staticClass:"svgprimary"},[t._v("$pfbird")])],1)],1),t._v(" "),e("div",{staticClass:"center"},[e(r.a,{staticClass:"svgprimary",attrs:{"x-large":""}},[t._v("$pfbulleye")])],1),t._v(" "),t._m(0)])}),[function(){var t=this._self._c;return t("div",{staticClass:"mapviewpoint mb-6"},[t("span",{staticClass:"viewpoint",staticStyle:{margin:"5px"}},[t("span",{attrs:{id:"map_viewpoint"}})])])}],!1,null,"4524d8a0",null);e.default=component.exports},637:function(t,e,n){"use strict";n(611)},638:function(t,e,n){"use strict";n(612)},639:function(t,e,n){"use strict";n(614)},640:function(t,e,n){"use strict";n(615)},641:function(t,e,n){"use strict";n(617)},642:function(t,e,n){"use strict";n(618)},644:function(t,e,n){"use strict";n.r(e);var o=n(19),r=(n(82),n(50)),dialog=n(573),l=n(663),c=n(664),d=n(665),h=n(666),f=n(667),m=n(697),v=n(668),w=n(669),_=n(670),x={name:"Web",components:{pfmarksdialog:l.default,pfmarkeditdialog:c.default,pfmapsdialog:d.default,pfvisiblepeaksdialog:h.default,pfresourcesdialog:f.default,pflogindialog:m.default,pfexportsvgdialog:v.default,pfexportstellariumdialog:w.default,pfcheatcodedialog:_.default},data:function(){return{showmarks:!1,showmarkedit:{show:!1},showmaps:!1,showvisiblepeaks:!1,showresources:{show:!1},showlogin:!1,showexportsvg:!1,showexportstellarium:!1,showcheatcode:!1,notloggedindisplayed:!1}},created:function(){var t=this;r.a.$on("showMarks",(function(e){t.showmarks=e})),r.a.$on("showMarkEdit",(function(e){t.showmarkedit=e})),r.a.$on("showMaps",(function(e){t.showmaps=e})),r.a.$on("showVisiblePeaks",(function(e){t.showvisiblepeaks=e})),r.a.$on("showResources",(function(e){t.showresources=e})),r.a.$on("showLogin",(function(e){t.showlogin=e})),r.a.$on("showExportSvg",(function(e){t.showexportsvg=e})),r.a.$on("showExportStellarium",(function(e){t.showexportstellarium=e})),r.a.$on("showCheatCode",(function(e){t.showcheatcode=e})),r.a.$on("not-loggedin",(function(e){t.notloggedindisplayed||(t.notloggedindisplayed=!0,t.showLoginDialog())}))},methods:{showLoginDialog:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,dialog.a.confirm(t,t.$t("account_create"));case 2:e.sent&&r.a.$emit("showLogin",!0);case 4:case"end":return e.stop()}}),e)})))()}}},k=n(1),component=Object(k.a)(x,(function(){var t=this,e=t._self._c;return e("div",[e("pfmarksdialog",{model:{value:t.showmarks,callback:function(e){t.showmarks=e},expression:"showmarks"}}),t._v(" "),e("pfmarkeditdialog",{model:{value:t.showmarkedit,callback:function(e){t.showmarkedit=e},expression:"showmarkedit"}}),t._v(" "),e("pfmapsdialog",{model:{value:t.showmaps,callback:function(e){t.showmaps=e},expression:"showmaps"}}),t._v(" "),e("pfvisiblepeaksdialog",{model:{value:t.showvisiblepeaks,callback:function(e){t.showvisiblepeaks=e},expression:"showvisiblepeaks"}}),t._v(" "),e("pfresourcesdialog",{model:{value:t.showresources,callback:function(e){t.showresources=e},expression:"showresources"}}),t._v(" "),e("pflogindialog",{model:{value:t.showlogin,callback:function(e){t.showlogin=e},expression:"showlogin"}}),t._v(" "),e("pfexportsvgdialog",{model:{value:t.showexportsvg,callback:function(e){t.showexportsvg=e},expression:"showexportsvg"}}),t._v(" "),e("pfexportstellariumdialog",{model:{value:t.showexportstellarium,callback:function(e){t.showexportstellarium=e},expression:"showexportstellarium"}}),t._v(" "),e("pfcheatcodedialog",{model:{value:t.showcheatcode,callback:function(e){t.showcheatcode=e},expression:"showcheatcode"}})],1)}),[],!1,null,null,null);e.default=component.exports},663:function(t,e,n){"use strict";n.r(e);var o=n(146),r=n(153),l=n(155),c=n(711),d=n(542),h=n(279),f=n(151),m=n(540),v=n(92),w=n(70),_=(n(26),n(182),n(27),n(19)),x=(n(82),n(47),n(50)),k=n(289),C=n(576),$={components:{pfexportpopup:n(582).default},props:{value:Boolean},data:function(){return{closed:!0,width:500,height:500,fullscreen:!1,model:null,allcalc:!1,search:"",totalMarks:0,marks:[],loading:!0,options:{}}},computed:{show:{get:function(){return this.value&&this.closed&&(this.closed=!1,this.model=null,this.search=""),this.value},set:function(t){t||(this.closed=!0,this.allcalc=!1),this.$emit("input",t)}},headerinfo:function(){return[{text:"",value:"mark",sortable:!1},{text:this.$t("mark_name"),value:"name",align:"start",sortable:!1},{text:"",value:"flyto",sortable:!1}]},headerProps:function(){return{sortByText:this.$t("sort")}}},watch:{options:{handler:function(){var t=this;setTimeout((function(){t.getDataFromApi()}),200)},deep:!0},search:function(){this.getDataFromApi()}},mounted:function(){this.onResize(),window.addEventListener("resize",this.onResize,{passive:!0}),this.headerinfo[0].name=this.$t("name");var t=this;x.a.$on("poimark-changed",(function(e){t.getDataFromApi()}))},beforeDestroy:function(){"undefined"!=typeof window&&window.removeEventListener("resize",this.onResize,{passive:!0})},methods:{onResize:function(){var t=Math.min(window.innerWidth-40,600),e=Math.min(window.innerHeight-120,800);this.width=t,this.height=e,this.fullscreen=window.innerWidth<600},getDataFromApi:function(){var t=this;this.loading=!0;var data=this.wasmApiCall();this.marks=data.items,this.totalMarks=data.total,this.loading=!this.allcalc,this.allcalc||setTimeout((function(){t.getDataFromApi()}),2e3)},onRefreshClick:function(){var t=this;return Object(_.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C.a.syncMarksWithCloudNow(t);case 2:case"end":return e.stop()}}),e)})))()},onMarkClick:function(t){x.a.$emit("showMarkEdit",{show:!0,markid:t.id})},onFlytoClick:function(t){this.show=!1,window.pfwasmModule.cwrap("startLoadingViewpoint","",["number","number","string"])(t.lat,t.lng,t.name)},onExportClick:function(t,e){console.log("export "+t+" "+e),window.pfwasmModule.cwrap("writeMarks","",["string","number","string"])("marks."+e,t,"")},groupText:function(t){return k.a.groupText(this,t)},wasmApiCall:function(){var t=[],e=0,n=window.pfwasmModule;if(n){this.allcalc=n._visiblePoisLoad(),(e=n.cwrap("markSearch","number",["boolean","string"])(!0,this.search))>256&&(e=256);for(var o=n.cwrap("markSearchItemByIndex","string",["number"]),i=0;i