iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.peakfinder.org/_nuxt/617aa10.js
(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;i2e4&&(e=2e4),this.mark.setelevoff(e),this.mark.setactive(1),console.log("save "+this.mark.toString()),this.mark.saveToNative(t),z.a.$emit("poimark-changed",this.mark.id),this.showargs=!1}},deleteMark:function(){var t=this;return Object(y.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.mark){e.next=5;break}return e.next=3,dialog.a.confirm(t,t.$t("mark_delete"));case 3:e.sent&&(t.mark.setactive(0),console.log("delete "+t.mark.toString()),n=window.pfwasmModule,t.mark.saveToNative(n),z.a.$emit("poimark-changed",t.mark.id),t.showargs=!1);case 5:case"end":return e.stop()}}),e)})))()}}},R=(n(638),n(1)),component=Object(R.a)(M,(function(){var t=this,e=t._self._c;return e(d.a,{attrs:{fullscreen:t.fullscreen,width:"unset"},model:{value:t.showargs,callback:function(e){t.showargs=e},expression:"showargs"}},[e(l.a,{staticClass:"d-flex flex-column",attrs:{width:t.width,outlined:""}},[e(c.c,{staticClass:"pa-0"},[e($.a,{attrs:{elevation:"2",flat:""}},[e(h.a,{class:t.svgheaderColor(),attrs:{size:"28px"}},[t._v("\n "+t._s("$vuetify.icons.".concat(t.headerIcon()))+"\n ")]),t._v(" "),e("div",{staticClass:"ml-4"},[t._v(t._s(t.$t("mark")))]),t._v(" "),e(x.a),t._v(" "),e(o.a,{attrs:{icon:"",dark:""},on:{click:function(e){t.showargs=!1}}},[e(h.a,{staticClass:"svgicondef"},[t._v("$pfcancel")])],1)],1)],1),t._v(" "),e(k.a,{staticClass:"sectionheader"},[t._v("\n "+t._s(t.$t("mark_name"))+"\n ")]),t._v(" "),e("div",{staticClass:"inputcontrol"},[e(C.a,{model:{value:t.markname,callback:function(e){t.markname=e},expression:"markname"}})],1),t._v(" "),e(k.a,{staticClass:"sectionheader"},[t._v("\n "+t._s(t.$t("mark_group"))+"\n ")]),t._v(" "),e("div",{staticClass:"inputcontrol"},[e(f.a,[e(w.a,{attrs:{color:"primary"},model:{value:t.group,callback:function(e){t.group=e},expression:"group"}},t._l(t.groups,(function(n,i){return e(m.a,{key:i,attrs:{value:n,dense:""}},[e(_.a,[e(h.a,{staticClass:"svgicondef",attrs:{size:"20px"}},[t._v("\n "+t._s("$vuetify.icons.".concat(t.groupIcon(n)))+"\n ")])],1),t._v(" "),e(v.a,[e(v.c,{staticClass:"grouptext"},[t._v("\n "+t._s(t.groupText(n))+"\n ")])],1)],1)})),1)],1)],1),t._v(" "),e(k.a,{staticClass:"sectionheader"},[t._v("\n "+t._s(t.$t("mark_color"))+"\n ")]),t._v(" "),e("div",{staticClass:"inputcontrol inputcontrolcolors"},[e(r.a,{attrs:{borderless:"",mandatory:"","active-class":"color-selected"},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}},t._l(t.colors,(function(n,i){return e(o.a,{key:i,attrs:{value:n}},[t.isColorSelected(n)?e(h.a,{class:t.svgColor(n),attrs:{size:"28px"}},[t._v("\n $pfcolorsel\n ")]):e(h.a,{class:t.svgColor(n),attrs:{size:"28px"}},[t._v("\n $pfcolor\n ")])],1)})),1)],1),t._v(" "),e(k.a,{staticClass:"sectionheader"},[t._v("\n "+t._s(t.$t("elevation_above_ground"))+"\n ")]),t._v(" "),e("div",{staticClass:"inputcontrol"},[e(C.a,{attrs:{"hide-details":"","single-line":"",type:"number"},model:{value:t.elevoff,callback:function(e){t.elevoff=e},expression:"elevoff"}})],1),t._v(" "),e(k.a,{staticClass:"sectionheader"},[t._v("\n "+t._s(t.$t("mark_actions"))+"\n ")]),t._v(" "),e(c.a,[e(o.a,{attrs:{type:"submit",text:"",rounded:"",color:"error",elevation:"0"},on:{click:function(e){return e.stopPropagation(),t.deleteMark()}}},[t._v("\n "+t._s(t.$t("delete"))+"\n ")]),t._v(" "),e(x.a),t._v(" "),e(o.a,{attrs:{rounded:"",text:"",color:"primary",elevation:"0"},on:{click:function(e){t.showargs=!1}}},[t._v("\n "+t._s(t.$t("close"))+"\n ")]),t._v(" "),e(o.a,{attrs:{type:"submit",rounded:"",color:"primary",elevation:"0"},on:{click:function(e){return e.preventDefault(),t.saveMark()}}},[t._v("\n "+t._s(t.$t("save"))+"\n ")])],1)],1)],1)}),[],!1,null,"9a134d18",null);e.default=component.exports},665:function(t,e,n){"use strict";n.r(e);var o=n(561),r=n(146),l=n(153),c=n(155),d=n(542),h=n(151),f=n(540),m=n(70),v=n(50),w=n(295),_={components:{pfmap:n(635).default},props:{value:Boolean},data:function(){return{closed:!0,width:500,height:500,fullscreen:!1,model:null,locationSearchText:null,locationEntries:[]}},computed:{show:{get:function(){return this.value&&this.closed&&(this.closed=!1,this.model=null,this.locationSearchText=null,this.locationEntries=[],v.a.$emit("map_show")),this.value},set:function(t){t||(this.closed=!0),this.$emit("input",t)}},locationFoundItems:function(){return this.locationEntries}},watch:{model:function(t){document.activeElement.blur(),null!=t&&Object(w.a)(t.id).then((function(t){v.a.$emit("map_scrollto",t)})).catch((function(t){console.log(t)}))},locationSearchText:function(t){var e=this;!t||t.length<=5||Object(w.b)(t).then((function(t){e.locationEntries=t})).catch((function(t){console.log(t)}))}},mounted:function(){var t=this;this.onResize(),window.addEventListener("resize",this.onResize,{passive:!0}),v.a.$on("close-map-dialog",(function(e){t.show=!1}))},beforeDestroy:function(){"undefined"!=typeof window&&window.removeEventListener("resize",this.onResize,{passive:!0})},methods:{onResize:function(){var t=Math.min(window.innerWidth-40,800),e=Math.min(window.innerHeight-120,600);this.width=t,this.height=e,this.fullscreen=window.innerWidth<600}}},x=n(1),component=Object(x.a)(_,(function(){var t=this,e=t._self._c;return e(d.a,{attrs:{fullscreen:t.fullscreen,width:"unset"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e(l.a,{staticClass:"d-flex flex-column",attrs:{outlined:"",width:t.width,height:t.height}},[e(c.c,{staticClass:"pa-0"},[e(m.a,{attrs:{elevation:"2",flat:""}},[e(o.a,{staticClass:"svgicondef",attrs:{items:t.locationFoundItems,"search-input":t.locationSearchText,hint:t.$t("search"),label:t.$t("search"),"item-text":"value","item-value":"id","hide-no-data":"","no-filter":"",clearable:"","hide-details":"","hide-selected":"","append-icon":"$pfdownsmall","clear-icon":"$pfcancel","return-object":""},on:{"update:searchInput":function(e){t.locationSearchText=e},"update:search-input":function(e){t.locationSearchText=e}},scopedSlots:t._u([{key:"prepend-inner",fn:function(){return[e(h.a,{staticClass:"svgicondef",staticStyle:{margin:"2px"},attrs:{size:"20px"}},[t._v("$pfsearch")])]},proxy:!0}]),model:{value:t.model,callback:function(e){t.model=e},expression:"model"}}),t._v(" "),e(f.a),t._v(" "),e(r.a,{attrs:{icon:"",dark:""},on:{click:function(e){t.show=!1}}},[e(h.a,{staticClass:"svgicondef"},[t._v("$pfcancel")])],1)],1)],1),t._v(" "),e("pfmap")],1)],1)}),[],!1,null,null,null);e.default=component.exports},666: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(47),{components:{pfexportpopup:n(582).default},props:{value:Boolean},data:function(){return{closed:!0,width:500,height:500,fullscreen:!1,model:null,allcalc:!1,search:"",totalVisiblePeaks:0,visiblePeaks:[],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.$emit("input",t)}},headerinfo:function(){return[{text:this.$t("name"),value:"name",align:"start",sortable:!0},{text:"",value:"showme",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")},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.visiblePeaks=data.items,this.totalVisiblePeaks=data.total,this.loading=!this.allcalc,this.allcalc||setTimeout((function(){t.getDataFromApi()}),2e3)},onShowmeClick:function(t){this.show=!1;var e=window.pfwasmModule;e&&e._displayShowme(t)},onExportClick:function(t,e){console.log("export "+t+" "+e),window.pfwasmModule.cwrap("writeVisiblePeaks","",["string","number","string","number"])("visiblepois."+e,t,"",0)},wasmApiCall:function(){var t=this.options,e=t.sortBy,n=t.sortDesc,o=[],r=0,l=window.pfwasmModule;if(l){this.allcalc=l._visiblePoisLoad();var c=this.getSortNumber(e,n);(r=l.cwrap("visiblePoisSearch","number",["boolean","number","string"])(!0,c,this.search))>256&&(r=256);for(var d=l.cwrap("visiblePoiNameElevation","string",["number"]),h=l.cwrap("visiblePoiDetails","string",["number"]),i=0;i