PageSourceSearch

https://stage-izumi-park-town.web.app/js/app.d3f6f737.js

js stage-izumi-park-town.web.app collected 2026-10-03 12:36:40 UTC 136,812 bytes, 9 lines download raw bytes

1(function(t){function e(e){for(var i,n,r=e[0],c=e[1],l=e[2],p=0,u=[];p<r.length;p++)n=r[p],Object.prototype.hasOwnProperty.call(a,n)&&a[n]&&u.push(a[n][0]),a[n]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(t[i]=c[i]);d&&d(e);while(u.length)u.shift()();return o.push.apply(o,l||[]),s()}function s(){for(var t,e=0;e<o.length;e++){for(var s=o[e],i=!0,r=1;r<s.length;r++){var c=s[r];0!==a[c]&&(i=!1)}i&&(o.splice(e--,1),t=n(n.s=s[0]))}return t}var i={},a={app:0},o=[];function n(e){if(i[e])return i[e].exports;var s=i[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=i,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,function(e){return t[e]}.bind(null,i));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],c=r.push.bind(r);r.push=e,r=r.slice();for(var l=0;l<r.length;l++)e(r[l]);var d=c;o.push([0,"chunk-vendors"]),s()})({0:function(t,e,s){t.exports=s("56d7")},"0079":function(t,e,s){},"04af":function(t,e,s){"use strict";s("4956")},1:function(t,e){},10:function(t,e){},"100a":function(t,e,s){},11:function(t,e){},12:function(t,e){},13:function(t,e){},"135d":function(t,e,s){},14:function(t,e){},1590:function(t,e,s){"use strict";s("777d")},2:function(t,e){},"232f":function(t,e,s){},2496:function(t,e,s){"use strict";s("d62f")},"29ac":function(t,e,s){},"2af2":function(t,e,s){},"2b88":function(t,e,s){},"2f21":function(t,e,s){"use strict";s("e63c")},"2fc4":function(t,e,s){},3:function(t,e){},3141:function(t,e,s){"use strict";s("7cf6")},"324b":function(t,e,s){"use strict";s("ae56")},4:function(t,e){},"412a":function(t,e,s){},42506:function(t,e,s){"use strict";s("7ef4")},"42aa":function(t,e,s){"use strict";s("8bd9")},"461e":function(t,e,s){"use strict";s("d938")},4678:function(t,e,s){var i={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(t){var e=o(t);return s(e)}function o(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}a.keys=function(){return Object.keys(i)},a.resolve=o,t.exports=a,a.id="4678"},4956:function(t,e,s){},"4c0f":function(t,e,s){"use strict";s("2af2")},"4ce1":function(t,e,s){"use strict";s("d242")},"4e54":function(t,e,s){"use strict";s("0079")},5:function(t,e){},"50e6":function(t,e,s){"use strict";s("100a")},"56d7":function(t,e,s){"use strict";s.r(e);var i={};s.r(i),s.d(i,"VOnsAlertDialog",(function(){return sn["a"]})),s.d(i,"VOnsAlertDialogButton",(function(){return an["a"]})),s.d(i,"VOnsBackButton",(function(){return on["a"]})),s.d(i,"VOnsButton",(function(){return nn["a"]})),s.d(i,"VOnsCard",(function(){return rn["a"]})),s.d(i,"VOnsCarousel",(function(){return cn["a"]})),s.d(i,"VOnsCarouselItem",(function(){return ln["a"]})),s.d(i,"VOnsCol",(function(){return dn["a"]})),s.d(i,"VOnsFab",(function(){return pn["a"]})),s.d(i,"VOnsIcon",(function(){return un["a"]})),s.d(i,"VOnsList",(function(){return hn["a"]})),s.d(i,"VOnsListHeader",(function(){return mn["a"]})),s.d(i,"VOnsListItem",(function(){return gn["a"]})),s.d(i,"VOnsListTitle",(function(){return fn["a"]})),s.d(i,"VOnsModal",(function(){return vn["a"]})),s.d(i,"VOnsNavigator",(function(){return _n["a"]})),s.d(i,"VOnsPage",(function(){return bn["a"]})),s.d(i,"VOnsProgressCircular",(function(){return In["a"]})),s.d(i,"VOnsRipple",(function(){return kn["a"]})),s.d(i,"VOnsRow",(function(){return wn["a"]})),s.d(i,"VOnsSelect",(function(){return yn["a"]})),s.d(i,"VOnsSpeedDial",(function(){return Cn["a"]})),s.d(i,"VOnsSpeedDialItem",(function(){return xn["a"]})),s.d(i,"VOnsSplitter",(function(){return Sn["a"]})),s.d(i,"VOnsSplitterContent",(function(){return jn["a"]})),s.d(i,"VOnsSplitterMask",(function(){return Pn["a"]})),s.d(i,"VOnsSplitterSide",(function(){return $n["a"]})),s.d(i,"VOnsTab",(function(){return Ln["a"]})),s.d(i,"VOnsTabbar",(function(){return zn["a"]})),s.d(i,"VOnsToolbar",(function(){return An["a"]})),s.d(i,"VOnsToolbarButton",(function(){return Mn["a"]}));s("7f10"),s("22c1"),s("f89d"),s("e11e"),s("6cc5"),s("a8b7"),s("2fc4");var a=s("2b0e"),o=s("8eb7"),n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{id:"app",modifier:"main"}},[s("v-ons-splitter",[s("v-ons-splitter-side",{attrs:{collapse:"",side:"right",width:"260px",open:t.menuIsOpen},on:{"update:open":function(e){t.menuIsOpen=e}}},[s("menu-page")],1),s("v-ons-splitter-content",[s("v-ons-page",[s("v-ons-navigator",{attrs:{"page-stack":t.pageStack},on:{prepush:t.navigatorPrePush,postpush:t.navigatorPostPush,prepop:t.navigatorPrePop,postpop:t.navigatorPostPop}})],1)],1)],1),s("loading-screen"),s("cookie-consent"),s("img-gallery")],1)},r=[],c=s("2f62"),l=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{modifier:"sub"}},[s("v-ons-toolbar",{attrs:{modifier:"transparent"}}),s("div",{staticClass:"header"},[s("img",{style:t.logoStyle,attrs:{src:t._f("imgPath")(t.logoFilename),alt:"app-logo"}})]),s("v-ons-list",{attrs:{modifier:"sub"}},[s("v-ons-list-item",{attrs:{modifier:"longdivider sub"}},[s("div",{staticClass:"center"},[t._v("Language")]),s("div",{staticClass:"right"},[s("v-ons-select",{attrs:{modifier:"sub"},on:{change:t.handleChangeLanguage},model:{value:t.locale,callback:function(e){t.locale=e},expression:"locale"}},t._l(t.langs,(function(e){return s("option",{key:e.id,domProps:{value:e.val}},[t._v(t._s(e.label))])})),0)],1)])],1),s("v-ons-list-title",{attrs:{modifier:"sub"}}),s("v-ons-list",{attrs:{modifier:"sub"}},[t._l(t.pages,(function(e){return[s("v-ons-list-item",{key:e.id,class:{disabled:e.disabled},attrs:{modifier:"sub"},on:{click:function(s){return t.goPage(e)}}},[s("div",{staticClass:"left"},[s("v-ons-icon",{attrs:{icon:e.icon,"fixed-width":""}})],1),s("div",{staticClass:"center"},[t._v(t._s(e.title))])]),"spot"===e.id?s("v-ons-list",{key:e+"_group",attrs:{modifier:"sub"}},t._l(t.groupItems,(function(e){return s("v-ons-list-item",{key:e.id,class:{active:e.active},attrs:{modifier:"sub"}
1,on:{click:function(s){return t.goGroupDetails(e)}}},[s("div",{staticClass:"left"},[t._v(" ")]),s("div",{staticClass:"center"},[t._v(t._s(e.name))])])})),1):t._e()]}))],2),t.relatedLinks.length?s("v-ons-list-title",{staticStyle:{"margin-top":"20px"},attrs:{modifier:"sub"}},[s("small",[t._v("Links")])]):t._e(),s("v-ons-list",{attrs:{modifier:"sub"}},t._l(t.relatedLinks,(function(e){return s("v-ons-list-item",{key:e.id,attrs:{modifier:"sub"},on:{click:function(s){return t.goTo(e.url)}}},[s("div",{staticClass:"center"},[t._v(t._s(e.text))]),s("div",{staticClass:"right"},[s("v-ons-icon",{attrs:{icon:"fa-external-link"}})],1)])})),1),s("v-ons-list-title",{attrs:{modifier:"sub"}}),s("v-ons-list",{attrs:{modifier:"sub"}},[s("v-ons-list-item",{attrs:{modifier:"longdivider sub"}},[s("div",{staticClass:"left"},[s("small",[t._v("ver.")])]),s("div",{staticClass:"center"},[t._v(t._s(t.appVersion))])])],1)],1)},d=[],p=s("c707"),u=s.n(p),h=s("9224");const m="s.1",g=`b.${h.version}(${m})`,f="none",v="/",_=!1,b=!0,I=!1,k=2,w=30,y=!0,C=!0,x=!0,S="logo-izumi.png",j="60%",P="logo-animation.gif",$="100vw",L=!1,z=!1,A=!1,M="group_all",E="group_others",O=!1,D=!1,q="hash",T=!1,B=13,Q=18,G=17,R="",V=12,N=v+"img/position.svg",F=[48,48],H=[24,24],U=v+"img/position-nodir.svg",W=[48,48],Z=[24,24],J=!1,Y=!1,K=!0,X="blink",tt={delay:1500,duration:1500,easing:"linear",iterations:3,magnification:1.65,color:""},et={apiKey:"AIzaSyCPBbikZLXCCPoujFBqQUdzZdFiqQcCB_c",authDomain:"stage-izumi-park-town.firebaseapp.com",projectId:"stage-izumi-park-town"},st="492879698846357";var it={name:"menu-page",computed:{...Object(c["d"])(["version","supportLanguage"]),...Object(c["d"])("group",["groupId"]),...Object(c["c"])("group",["simpleGroups"]),...Object(c["c"])("page",["menu","labels"]),...Object(c["c"])("ons/tabbar",["currentTab"]),...Object(c["c"])("ons/navigator",["currentNav"]),...Object(c["c"])("ext",["links"]),locale:{get(){return this.$store.state.locale},set(t){this.$store.dispatch("updateLocaleAndLang",{locale:t})}},langs(){return u()(this.supportLanguage,"sort_order").map(t=>({id:t.locale,val:t.locale,label:t.name}))},pages(){return this.labels.map(t=>({id:t.id,icon:t.icon,title:t.label,disabled:"main-page"===this.currentNav.name&&t.id===this.currentTab.id}))},groupItems(){return this.simpleGroups.map(t=>({id:t.id,name:t.name,active:t.id===this.groupId}))},relatedLinks(){return this.menu.links.map(t=>{const e=this.links.find(e=>e.id===t);return{...e}})},appVersion(){return g},docVersion(){return this.version},logoFilename(){return S||"logo.svg"},logoStyle(){return{width:j}}},methods:{handleChangeLanguage(){this.$store.dispatch("gtm/sendSelectLocaleEvent",{locale:this.locale}),setTimeout(()=>{this.$store.commit("ons/splitter/toggle")},500)},goPage(t){if(t.disabled)return;const e={home:()=>this.$store.dispatch("page/goHome"),map:()=>this.$store.dispatch("page/goMap"),spot:()=>this.$store.dispatch("page/goSpot"),quiz:()=>this.$store.dispatch("page/goQuiz"),gallery:()=>this.$store.dispatch("page/goGallery")};Object.keys(e).includes(t.id)&&e[t.id]()},goGroupDetails(t){this.$store.commit("group/updateGroupId",{groupId:t.id}),this.$store.dispatch("page/goGroupDetails")},goTo(t){const e=window.open(t,"_blank");e.opener=null,e.location=t}}},at=it,ot=(s("4e54"),s("2877")),nt=Object(ot["a"])(at,l,d,!1,null,"fd582106",null),rt=nt.exports,ct=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.show?s("div",{ref:"screen",staticClass:"loading-screen"},[s("div",{ref:"circle",staticClass:"circle"}),s("div",{ref:"logo",staticClass:"logo",style:t.logoStyle},[s("img",{attrs:{src:t._f("imgPath")(t.filename),alt:"app-logo",width:"100%"}})])]):t._e()},lt=[],dt=s("cffa"),pt={name:"loading-screen",data(){return{show:!1}},computed:{...Object(c["d"])(["isLoading","dataLoaded"]),filename(){return P||"logo-splash.svg"},logoStyle(){return{width:$}}},methods:{open(){this.show=!0,this.$nextTick(()=>{this.openAnimation()})},close(){this.show=!1},openAnimation(){const{circle:t}=this.$refs;dt["a"].to(t,{duration:.6,scale:3}),L&&this.dataLoaded&&this.logoAnimation()},logoAnimation(){const{logo:t}=this.$refs;dt["a"].from(t,{duration:1.2,rotationX:180,rotationY:180,ease:"none"}),dt["a"].from(t,{duration:1.2,scale:.5,x:200,y:-200,opacity:0}
1),dt["a"].to(t,{duration:.6,delay:1.6,y:50,ease:"bounce.out"})},closeAnimation(){const{screen:t,circle:e,logo:s}=this.$refs;dt["a"].set(t,{backgroundColor:"transparent"}),dt["a"].to(s,{duration:.6,y:-30,scale:0,opacity:0,ease:"back.in"}),dt["a"].to(e,{duration:.6,delay:.3,scale:0,onComplete:()=>this.close()})}},watch:{isLoading(t){t?this.open():this.closeAnimation()}}},ut=pt,ht=(s("fe78"),Object(ot["a"])(ut,ct,lt,!1,null,"5b1dfb45",null)),mt=ht.exports,gt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.enabled?s("div",[s("transition",{attrs:{name:"fade"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.openPopup,expression:"openPopup"}],staticClass:"cc-popup"},[s("div",{staticClass:"cc-content"},[s("p",[t._v(t._s(t.content.message))]),s("a",{staticClass:"cc-link",attrs:{href:t.content.href}},[t._v(t._s(t.content.link))]),s("button",{staticClass:"cc-button",on:{click:function(e){return e.preventDefault(),t.handleClick.apply(null,arguments)}}},[t._v(t._s(t.content.consent))])])])])],1):t._e()},ft=[];const vt="cc",_t="consented";var bt={name:"cookie-consent",data(){return{open:!0}},computed:{...Object(c["c"])("page",["default"]),enabled(){return C},openPopup(){return this.open&&!this.consented()},content(){return{message:this.default.cc_message,consent:this.default.cc_consent,link:this.default.cc_link,href:this.default.cc_href}}},methods:{consented(){return _t===window.localStorage.getItem(vt)},handleClick(){this.open=!1,window.localStorage.setItem(vt,_t)}}},It=bt,kt=(s("ec30"),Object(ot["a"])(It,gt,ft,!1,null,"f1e121b2",null)),wt=kt.exports,yt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{ref:"gallery",staticClass:"pswp",attrs:{tabindex:"-1",role:"dialog","aria-hidden":"true"}},[s("div",{staticClass:"pswp__bg gallery-bg"}),s("div",{staticClass:"pswp__scroll-wrap"},[s("div",{staticClass:"pswp__container"},[s("div",{staticClass:"pswp__item",on:{click:function(t){t.preventDefault()},contextmenu:function(t){t.preventDefault()}}}),s("div",{staticClass:"pswp__item",on:{click:function(t){t.preventDefault()},contextmenu:function(t){t.preventDefault()}}}),s("div",{staticClass:"pswp__item",on:{click:function(t){t.preventDefault()},contextmenu:function(t){t.preventDefault()}}})])]),s("img-gallery-controls",{attrs:{visible:t.visibleCtr,prev:0!==t.index,next:t.index!==t.items.length-1},on:{prev:t.handlePrev,next:t.handleNext,close:t.close}})],1)])},Ct=[],xt=s("b24f"),St=s.n(xt),jt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.src&&t.visible?s("div",{staticClass:"gallery-ui"},[s("div",{staticClass:"dismiss",on:{click:function(e){return t.close({animation:!0})}}},[t._v("×")]),s("transition",{attrs:{name:"fade-up"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.isPortrait,expression:"isPortrait"}],staticClass:"title"},[t._v(t._s(t.title))])]),s("transition",{attrs:{name:"fade-down"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.hasCtr&&t.isPortrait,expression:"hasCtr && isPortrait"}],staticClass:"ctr-bar",on:{click:function(t){t.stopPropagation()}}},[t.hasInfo?s("span",{staticClass:"ctr",on:{click:t.handleClickInfo}},[s("i",{staticClass:"fa fa-info"})]):t._e(),t.hasLocation?s("span",{staticClass:"ctr",on:{click:t.handleClickLocation}},[s("i",{staticClass:"fa fa-map-marker"})]):t._e(),t.downloadable?s("span",{staticClass:"ctr",on:{click:t.handleClickDl}},[s("i",{staticClass:"fa fa-download"})]):t._e()])]),s("div",{staticClass:"counter"},[t.isPortrait?s("span",{staticClass:"ctr",on:{click:t.handleClickPrev}},[s("i",{staticClass:"fa fa-angle-left",class:{disabled:!t.prev}})]):t._e(),t._v(" "+t._s(t.counter)+" "),t.isPortrait?s("span",{staticClass:"ctr",on:{click:t.handleClickNext}},[s("i",{staticClass:"fa fa-angle-right",class:{disabled:!t.next}})]):t._e()]),t.isPortrait?t._e():[t.prev?s("div",{staticClass:"arrow prev",on:{click:function(e){return e.stopPropagation(),t.handleClickPrev.apply(null,arguments)}}},[s("i",{staticClass:"fa fa-chevron-left"})]):t._e(),t.next?s("div",{staticClass:"arrow next",on:{click:function(e){return e.stopPropagation(),t.handleClickNext.apply(null,arguments)}}},[s("i",{staticClass:"fa fa-chevron-right"})]):t._e()]],2):t._e()},Pt=[],$t={name:"img-gallery-controls",props:{visible:{type:Boolean,default:!0},prev:{type:Boolean,default:!0},next:{type:Boolean,default:!0}},data(){return{isPortrait:!1}},computed:{...Object(c["c"])("page",["currentPage","gallery"]),...Object(c["c"])("gallery",["src","title","counter","downloadable","spotId","imgIndex","hasLocation"]),dlMessage(){return this.gallery.download_message},hasInfo(){return this.spotId&&"spot-details-page"!==this.currentPage},hasCtr(){return this.downloadable||this.hasLocation||this.hasInfo}},mounted(){this.isPortrait=this.$ons.orientation.isPortrait(),this.$ons.orientation.on("change",t=>{this.isPortrait=t.isPortrait})},methods:{close(t){this.$emit("close",t)},handleClickInfo(){this.$store.dispatch("gtm/sendImgInfoEvent",{spotId:this.spotId,imgSrc:this.src,page:this.$route.fullPath}),this.$store.dispatch("spot/updateSpot",{spotId:this.spotId,imgIndex:this.imgIndex}),this.$store.dispatch("page/goSpotDetails"),this.close({animation:!1})},handleClickLocation(){this.$store.dispatch("gtm/sendImgMkEvent",{spotId:this.spotId,imgSrc:this.src,page:this.$route.fullPath}),this.$store.dispatch("spot/updateSpot",{spotId:this.spotId,imgIndex:this.imgIndex}),this.$store.dispatch("page/goMap"),this.close({animation:!1})},handleClickDl(){this.$ons.notification.confirm(this.dlMessage,{title:"Download"}).then(t=>{if(t){this.$store.dispatch("gtm/sendImgDlEvent",{imgSrc:this.src,page:this.$route.fullPath});const t=document.createElement("a");
1t.setAttribute("href",this.src),t.setAttribute("download",this.src.replace(/(.*\/)?([^/]+)\.(png|gif|jpe?g)$/i,"$2.$3")),t.click()}})},handleClickPrev(){this.prev&&this.$emit("prev")},handleClickNext(){this.next&&this.$emit("next")}}},Lt=$t,zt=(s("3141"),Object(ot["a"])(Lt,jt,Pt,!1,null,"21f69066",null)),At=zt.exports;const Mt={bgOpacty:.96,maxSpreadZoom:3,closeOnScroll:!1,history:!1,showHideOpacity:!0,hideAnimationDuration:600};var Et={name:"img-gallery",components:{ImgGalleryControls:At},data(){return{gallery:null,visibleCtr:!0,pinchCtrHidden:!1}},computed:{...Object(c["d"])("gallery",["index","show","options"]),...Object(c["c"])("gallery",["items","activeItem"]),ptswOptions(){const t={index:this.index};return{...Mt,...this.options,...t}}},methods:{open(){this.gallery=new St.a(this.$refs.gallery,!1,this.items,this.ptswOptions),this.gallery.listen("afterChange",()=>{const t=this.gallery.getCurrentIndex();this.handleAfterChange(t)}),this.gallery.listen("destroy",()=>{this.handleDestroy()}),this.gallery.listen("doubleTap",t=>{const e=this.gallery.currItem;this.gallery.getZoomLevel()!==e.initialZoomLevel?this.gallery.zoomTo(e.initialZoomLevel,t,333):this.gallery.zoomTo(this.gallery.options.getDoubleTapZoom(!1,e),t,333)}),this.setupHidingCtrDuringGestures(),this.gallery.init()},close(t){const{animation:e}=t;this.gallery&&(e||(this.gallery.options.hideAnimationDuration=0),this.gallery.close())},setupHidingCtrDuringGestures(){this.gallery&&(this.gallery.listen("initialZoomIn",()=>{this.visibleCtr=!0}),this.gallery.listen("initialZoomOut",()=>{this.visibleCtr=!1}),this.gallery.listen("onVerticalDrag",t=>{this.visibleCtr&&t<.95?this.visibleCtr=!1:!this.visibleCtr&&t>=.95&&(this.visibleCtr=!0)}),this.gallery.listen("onPinchClose",t=>{this.visibleCtr&&t<.9?(this.visibleCtr=!1,this.pinchCtrHidden=!0):this.pinchCtrHidden&&!this.visibleCtr&&t>.9&&(this.visibleCtr=!0)}),this.gallery.listen("zoomGestureEnded",()=>{this.pinchCtrHidden=!1,this.pinchCtrHidden&&!this.visibleCtr&&(this.visibleCtr=!0)}))},handleAfterChange(t){this.$store.commit("gallery/updateIndex",{index:t}),"onAfterChange"in this.ptswOptions&&this.ptswOptions.onAfterChange(this.activeItem,this.index)},handleDestroy(){this.$store.dispatch("gallery/close"),this.gallery=null,"onDestroy"in this.ptswOptions&&this.ptswOptions.onDestroy(),this.$store.dispatch("log/info","gallery destroyed")},handlePrev(){this.gallery&&this.gallery.prev()},handleNext(){this.gallery&&this.gallery.next()}},watch:{show(t){t&&this.open()}}},Ot=Et,Dt=(s("f546"),Object(ot["a"])(Ot,yt,Ct,!1,null,"7cc49d76",null)),qt=Dt.exports,Tt={name:"app",components:{MenuPage:rt,LoadingScreen:mt,CookieConsent:wt,ImgGallery:qt},mounted(){window.addEventListener("load",()=>{this.$store.dispatch("log/info","DOM loaded"),this.$store.commit("domLoaded")},!1),this.$store.dispatch("log/info",{msg:"App env",data:Object({NODE_ENV:"production",VUE_APP_BUILD:"s.1",VUE_APP_URL:"https://stage-izumi-park-town.web.app",VUE_APP_BASE_URL:"/",VUE_APP_GTM_ID:"",VUE_APP_FACEBOOK_APP_ID:"492879698846357",VUE_APP_FB_API_KEY:"AIzaSyCPBbikZLXCCPoujFBqQUdzZdFiqQcCB_c",VUE_APP_FB_AUTH_DOMAIN:"stage-izumi-park-town.firebaseapp.com",VUE_APP_FB_PROJECT_ID:"stage-izumi-park-town",VUE_APP_FB_APP_ID:"1:1028714402094:web:1aa5e0b21663b21b9a2abf",VUE_APP_NAME:"泉パークタウン",VUE_APP_SHORT_NAME:"泉パークタウン",VUE_APP_THEME_COLOR:"#E22349",VUE_APP_BG_COLOR:"#E22349",BASE_URL:"/"})}),this.init()},computed:{...Object(c["d"])({locale:t=>t.locale,pageStack:t=>t.ons.navigator.pageStack,open:t=>t.ons.splitter.open,spotId:t=>t.spot.spotId,groupId:t=>t.group.groupId}),...Object(c["c"])("page",["currentPage"]),menuIsOpen:{get(){return this.open},set(t){this.$store.commit("ons/splitter/toggle",t)}},route(){return this.$route.path}},methods:{init(){this.$store.dispatch("log/info","App init start"),this.$store.commit("startLoading"),this.setLang(),this.setState(),this.$store.dispatch("gtm/addListenerA2hs"),this.sendSignEvent(),this.$store.dispatch("quiz/checkSeason"),this.$store.dispatch("quiz/loadScore"),this.$store.dispatch("audio/stop")},setLang(){this.$store.dispatch("log/info","** setLang"),this.$store.dispatch("fetchSupportLangs").then(()=>{const t=window.navigator.language;this.$store.dispatch("changeLangAndLocale",{lang:t}),this.$store.dispatch("gtm/sendAutoLocaleEvent",{locale:this.locale})})},setState(){this.$store.dispatch("log/info","** fetchData"),this.$store.dispatch("fetchData").then(()=>{this.$store.dispatch("log/info","Data loaded"),this.$store.commit("dataLoaded"),this.updateStateFromRoute(),setTimeout(()=>{this.$store.commit("endLoading")},2e3)}
1).catch(()=>{this.$store.commit("endLoading")})},updateStateFromRoute(){this.$store.dispatch("page/updateStateFromRoute")},isMatchedURL(){let t=!1;const{page:e,id:s}=this.$route.params;return e&&s?(t=this.currentPage===e+"-details-page",t=t&&(this.spotId===s||this.groupId===s)):t=e?this.currentPage===e+"-page":"home-page"===this.currentPage,this.$store.dispatch("log/info","** isMatchedURL: "+t),t},sendSignEvent(){"sign"in this.$route.query&&this.$store.dispatch("gtm/sendSignEvent",{sign:this.$route.query.sign,url:this.$route.fullPath})},...Object(c["b"])("page",["navigatorPrePop","navigatorPostPop","navigatorPrePush","navigatorPostPush"]),test(){this.$store.commit("startLoading")},test2(){this.$store.commit("endLoading")}},watch:{locale(t,e){this.$store.dispatch("log/info",`locale changed: ${e} -> ${t}`),this.$store.commit("startLoading"),this.$store.dispatch("fetchI18nData").then(()=>{this.$store.dispatch("ons/tabbar/changeLabels"),this.$store.dispatch("page/updateMeta"),setTimeout(()=>{this.$store.commit("endLoading")},2e3)})},currentPage(t,e){this.$store.dispatch("log/info",`page changed: ${e} -> ${t}`)},route(t,e){this.$store.dispatch("log/info",`route changed: ${e} -> ${t}`),this.isMatchedURL()||(this.sendSignEvent(),this.updateStateFromRoute())}}},Bt=Tt,Qt=(s("42506"),Object(ot["a"])(Bt,n,r,!1,null,null,null)),Gt=Qt.exports,Rt=s("9483");Object(Rt["a"])("/service-worker.js",{ready(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered(){console.log("Service worker has been registered.")},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(){console.log("New content is available; please refresh.")},offline(){console.log("No internet connection found. App is running in offline mode.")},error(t){console.error("Error during service worker registration:",t)}});var Vt=s("8c4f");const Nt=[{path:"/",name:"home"},{path:"/:page"},{path:"/:page/:id"}];var Ft=Nt;a["a"].use(Vt["a"]);const Ht=q||"hash",Ut=new Vt["a"]({mode:Ht,routes:Ft,base:"/"});var Wt=Ut,Zt=(s("14d9"),s("59ca")),Jt=s.n(Zt);s("e71f");class Yt{constructor(t){const{apiKey:e,authDomain:s,projectId:i}=t;Jt.a.initializeApp({apiKey:e,authDomain:s,projectId:i}),this.fs=Jt.a.firestore(),this.fs.enablePersistence({synchronizeTabs:!0}).then(()=>{console.log("firestore enabled persistence: synchronizeTabs")}).catch(t=>{console.log("firestore disabled persistence",t),"failed-precondition"===t.code?console.log("If multiple tabs open, it will not be available offline."):"unimplemented"===t.code&&console.log("The current browser does not supprot offline.")}),this.refs={app:this.fs.collection("app"),spots:this.fs.collection("spots"),quizes:this.fs.collection("quizes"),plants:this.fs.collection("plants"),links:this.fs.collection("links"),movies:this.fs.collection("movies"),groups:this.fs.collection("groups"),langs:this.fs.collection("i18n"),i18nApp:t=>this.fs.collection("i18n").doc(t).collection("app"),i18nSpots:t=>this.fs.collection("i18n").doc(t).collection("spots"),i18nQuizes:t=>this.fs.collection("i18n").doc(t).collection("quizes"),i18nPlants:t=>this.fs.collection("i18n").doc(t).collection("plants"),i18nLinks:t=>this.fs.collection("i18n").doc(t).collection("links"),i18nMovies:t=>this.fs.collection("i18n").doc(t).collection("movies"),i18nGroups:t=>this.fs.collection("i18n").doc(t).collection("groups")}}static get lbFields(){return["name","description","address","contact","title"]}static replaceLineBreak(t){return t?t.replace(/(\\n|\\r|\\r\\n)/g,"\n"):""}static prepareData(t){const e=t.data();return Yt.lbFields.forEach(t=>{t in e&&(e[t]=Yt.replaceLineBreak(e[t]))}),e}static getItems(t){return t.get().then(t=>{const e=[];return t.forEach(t=>{const s=Yt.prepareData(t);e.push({id:t.id,...s})}),e}).catch(t=>console.log(t))}getAppData(){return Yt.getItems(this.refs.app)}getSpots(){return this.refs.spots.get().then(t=>{const e=[];return t.forEach(t=>{const s=Yt.prepareData(t);"location"in s&&(s.lat=s.location.latitude,s.lng=s.location.longitude),e.push({id:t.id,...s})}),e}).catch(t=>console.log(t))}getQuizes(){return Yt.getItems(this.refs.quizes)}getPlants(){return Yt.getItems(this.refs.plants)}getLinks(){return Yt.getItems(this.refs.links)}getMovies(){return Yt.getItems(this.refs.movies)}getGroups(){return Yt.getItems(this.refs.groups)}getLangs(){return Yt.getItems(this.refs.langs)}getI18nAppData(t="en"){return this.refs.i18nApp(t).get().then(t=>{const e={};return t.forEach(t=>{const s=Yt.prepareData(t);e[t.id]=s}),e}).catch(t=>console.log(t))}getI18nSpots(t="en"){return Yt.getItems(this.refs.i18nSpots(t))}getI18nQuizes(t="en"){return Yt.getItems(this.refs.i18nQuizes(t))}getI18nPlants(t="en"){return Yt.getItems(this.refs.i18nPlants(t))}getI18nLinks(t="en"){return Yt.getItems(this.refs.i18nLinks(t))}getI18nMovies(t="en"){return Yt.getItems(this.refs.i18nMovies(t))}getI18nGroups(t="en"){return Yt.getItems(this.refs.i18nGroups(t))}}var Kt=Yt,Xt=s("1c46"),te=s.n(Xt);const ee="57370674110616266e576770548a8c3aa15f2dbbfbf94e347464ecaaaf902472",se="58d19f01daa8c2fabea9d3dee285665ea76810990e824f7f7320282e45f1f1c6";class ie{constructor(){this.storage=window.localStorage}static enc(t){const e=te.a.createCipher("aes192",ee);let s=e.update(t,"utf8","hex");return s+=e.final("hex"),s}static dec(t){const e=te.a.createDecipher("aes192",ee);let s=e.update(t,"hex","utf8");return s+=e.final("utf8"),s}static hash(t){const e=te.a.createHash("sha1");return e.update(t),e.digest("hex")}setItem(t,e){const s=ie.enc(e);this.storage.setItem(t,s)}getItem(t){const e=this.storage.getItem(t);return e?ie.dec(e):null}removeItem(t){this.storage.removeItem(t)}setScore(t){this.setItem(se,JSON.stringify(t))}getScore(){return JSON.parse(this.getItem(se))}removeScore(){this.removeItem(se)}}var ae=ie,oe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{modifier:"main"}},[s("v-ons-toolbar",{attrs:{modifier:"main"}},[s("div",{staticClass:"center"},[t._v(t._s(t._f("noDeco")(t.title)))]),s("div",{staticClass:"right"},[s("v-ons-toolbar-button",{attrs:{modifier:"main"},on:{click:t.handleClick}},[s("v-ons-icon",{attrs:{icon:"fa-bars"}})],1)],1)]),s("v-ons-tabbar",{attrs:{modifier:"main","hide-tabs":t.hideTabs,index:t.index,tabs:t.filteredTabs},on:{"update:index":function(e){t.index=e},prechange:t.tabbarPreChange,postchange:t.tabbarPostChange}})],1)},ne=[],re={name:"main-page",computed:{...Object(c["c"])("ons/tabbar",["filteredTabs","currentTab"]),...Object(c["c"])("page",["title"]),index:{get(){return this.$store.state.ons.tabbar.index},set(t){this.$store.commit("ons/tabbar/updateIndex",t)}},hideTabs(){return z}},methods:{...Object(c["b"])("page",["tabbarPreChange","tabbarPostChange"]),handleClick(){this.$store.commit("ons/splitter/toggle")}}},ce=re,le=Object(ot["a"])(ce,oe,ne,!1,null,null,null),de=le.exports,pe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{modifier:"main"}},[s("div",{staticClass:"page-container"},[s("parallax",[s("img-slider",{ref:"slider",attrs:{images:t.images,index:t.index,max:10,loop:"",cover:""},on:{"update:index":function(e){t.index=e}}})],1),s("div",{staticClass:"content"},[t.hideTitle?t._e():[s("p",{staticClass:"title"},[s("text-decoration",{attrs:{text:t.home.title||""}})],1),s("div",{staticClass:"title-bar"})],s("p",{staticClass:"description"},[s("text-decoration",{attrs:{text:t.home.description||""}})],1),t.home.comment?s("p",{staticClass:"comment"},[s("text-decoration",{attrs:{text:t.home.comment||""}})],1):t._e()],2),s("external-movie-list",{attrs:{movies:t.relatedMovies}}),s("external-link-list",{attrs:{links:t.relatedLinks}}),t.hasInfo?s("ul",{staticClass:"info"},[s("v-ons-list-header",{attrs:{modifier:"main"}},[t._v("Info.")]),t.home.address?s("li",[s("i",{staticClass:"fa fa-map-marker fa-fw"}),t._v(" "+t._s(t.home.address)+" ")]):t._e(),t.home.contact?s("li",[s("i",{staticClass:"fa fa-phone fa-fw"}),t._v(" "+t._s(t.home.contact)+" ")]):t._e(),t.home.open?s("li",[s("i",{staticClass:"fa fa-hourglass-half fa-fw"}),t._v(" "+t._s(t.home.open)+" ")]):t._e()],1):t._e()],1)])},ue=[];const he="|",me={strong:t=>t.match(/^\*\*(.*)/),em:t=>t.match(/^__(.*)/)},ge={strong:t=>t.match(/(.*)\*\*$/),em:t=>t.match(/(.*)__$/)};var fe,ve,_e={name:"text-decoration",props:{tag:{type:String,default:"span"},text:{type:String,required:!0}},methods:{mdash(t){return t.replace(/--/g,"—")},strong(t){return t.replace(/(\*\*.*?\*\*)/g,he+"$1"+he)},em(t){return t.replace(/(__.*?__)/g,he+"$1"+he)},ruby(t){return t.replace(/(\[.*?\]\(.*?\))/g,he+"$1"+he)},parseText(){let t=this.text;return t=this.mdash(t),t=this.strong(t),t=this.em(t),t=this.ruby(t),t.split(he).filter(t=>""!==t)},makeRenderObj(t,e){const s={tag:e,props:{class:"text-"+e},children:[]};let i=!1,a=[],o="";return t.forEach(t=>{let e=t;if(!i){const t=this.startCheck(e);t&&(i=!0,o=t.tag,e=t.val)}const n=this.endCheck(o,e);if(n)return i=!1,void(a.length?(a.push(n.val),s.children.push(this.makeRenderObj(a,o)),a=[]):s.children.push({tag:o,props:{class:"text-"+o},children:[n.val]}));i?a.push(e):s.children.push(e)}),s},startCheck(t){let e=null,s="";return Object.keys(me).forEach(i=>
1{e||(s=i,e=me[i](t))}),e?{tag:s,val:e[1]}:null},endCheck(t,e){if(!Object.keys(ge).includes(t))return null;const s=ge[t](e);return s?{val:s[1]}:null},makeRender(t,e){const{tag:s,props:i,children:a}=e;return t(s,i,a.map(e=>"object"===typeof e?this.makeRender(t,e):this.makeRubyRender(t,e)))},makeRubyRender(t,e){const s=e.match(/\[(.*?)\]\((.*?)\)/);if(s){const e=s[1],i=this.excludeAudioMark(s[2]);return t("ruby",[e,t("rt",i)])}return e},excludeAudioMark(t){return t.replace("!","")}},render(t){if(!this.text)return t(this.tag);const e=this.makeRenderObj(this.parseText(this.text),this.tag);return this.makeRender(t,e)}},be=_e,Ie=Object(ot["a"])(be,fe,ve,!1,null,null,null),ke=Ie.exports,we=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.links.length?s("div",{staticStyle:{"margin-bottom":"20px"}},[s("v-ons-list-header",{directives:[{name:"show",rawName:"v-show",value:t.title,expression:"title"}],attrs:{modifier:"main"}},[t._v(t._s(t.title))]),s("v-ons-list",{attrs:{modifier:"main"}},t._l(t.links,(function(e){return s("v-ons-list-item",{key:e.id,attrs:{modifier:"main"},on:{click:function(s){return t.goTo(e)}}},[s("div",{staticClass:"left"},[s("v-ons-icon",{attrs:{"fixed-width":"",icon:t._f("toIcon")(e.url)}})],1),s("div",{staticClass:"center"},[t._v(t._s(e.text))]),s("div",{staticClass:"right"},[s("v-ons-icon",{attrs:{icon:"fa-external-link"}})],1)])})),1)],1):t._e()},ye=[],Ce={name:"external-link-list",props:{title:{type:String,default:"Links"},links:{type:Array,default:()=>[]}},filters:{toIcon(t){let e="fa-info";return t?(t.match(/facebook/)&&(e="fa-facebook"),t.match(/twitter/)&&(e="fa-twitter"),t.match(/instagram/)&&(e="fa-instagram"),t.match(/access/)&&(e="fa-car"),e):e}},methods:{goTo(t){const{url:e,text:s}=t;this.$store.dispatch("gtm/sendClickExLinkEvent",{url:e,text:s,page:this.$route.fullPath});const i=window.open(e,"_blank");i.opener=null,i.location=e}}},xe=Ce,Se=Object(ot["a"])(xe,we,ye,!1,null,null,null),je=Se.exports,Pe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.movies.length?s("div",[t.domLoaded?s("div",t._l(t.movies,(function(e){return s("div",{key:e.id},[e.title?s("small",{staticStyle:{padding:"8px 16px"}},[s("i",{staticClass:"fa fa-film"}),t._v(" "+t._s(e.title)+" ")]):t._e(),"YouTube"===e.type?[s("you-tube",{attrs:{url:e.url}})]:t._e()],2)})),0):s("div",{staticClass:"loading"},[s("i",{staticClass:"fa fa-spinner fa-pulse fa-2x"})])]):t._e()},$e=[],Le=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticStyle:{"margin-bottom":"20px"}},[s("div",{staticClass:"youtube"},[t.ytPlay?s("iframe",{attrs:{src:t.url,width:"100%",height:"274.5",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}}):s("div",{staticClass:"video-img"},[s("img",{attrs:{src:t.defaultImg,alt:"YouTube video"}}),s("button",{staticClass:"play-btn",on:{click:function(e){e.stopPropagation(),t.ytPlay=!0}}},[s("i",{staticClass:"fa fa-play"})])])])])},ze=[],Ae={name:"you-tube",props:{url:{type:String,required:!0}},data(){return{ytPlay:!1}},computed:{id(){return this.url.match(/[/?=]([a-zA-Z0-9_-]{11})[&?]?/)[1]},defaultImg(){return`https://img.youtube.com/vi/${this.id}/0.jpg`}}},Me=Ae,Ee=(s("4c0f"),Object(ot["a"])(Me,Le,ze,!1,null,"2c2213ec",null)),Oe=Ee.exports,De={name:"external-movie-list",components:{YouTube:Oe},props:{movies:{type:Array,default:()=>[]}},computed:{...Object(c["d"])(["domLoaded"])}},qe=De,Te=(s("2f21"),Object(ot["a"])(qe,Pe,$e,!1,null,"7e261a4e",null)),Be=Te.exports,Qe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"slider",staticClass:"img-slider",class:{"has-indicator":t.indicator}},[s("v-ons-carousel",{attrs:{swipeable:"","auto-scroll":"",overscrollable:"",fullscreen:"",index:t.idx},on:{"update:index":function(e){t.idx=e}}},t._l(t.images,(function(e,i){return s("v-ons-carousel-item",{key:i},[s("img-animation",{attrs:{name:"zoom-out"}},[s("img-box",{attrs:{src:t._f("imgPath")(e.src),width:t.width,height:t.height,cover:t.cover},on:{click:function(s){return t.handleClickImg(i,e)}}})],1)],1)})),1),t.showPrev()?s("div",{staticClass:"arrow prev",on:{click:function(e){return e.stopPropagation(),t.handleClickPrev.apply(null,arguments)}}},[s("i",{staticClass:"fa fa-chevron-left"})]):t._e(),t.showNext()?s("div",{staticClass:"arrow next",on:{click:function(e){return e.stopPropagation(),t.handleClickNext.apply(null,arguments)}}},[s("i",{staticClass:"fa fa-chevron-right"})]):t._e(),t.indicator&&t.images.length>1?s("div",{staticClass:"dots center"},t._l(t.images.length,(function(e){return s("div",{key:e,staticClass:"dot",class:{active:t.index===e-1}})})),0):t._e()],1)},Ge=[],Re=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"image-container",class:t.name},[t._t("default")],2)},Ve=[],Ne={name:"img-animation",props:{name:{type:String,default:"zoom
1-out"}}},Fe=Ne,He=(s("fc05"),Object(ot["a"])(Fe,Re,Ve,!1,null,"6e6e5006",null)),Ue=He.exports,We=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"img-box",style:t.style,on:{click:function(e){return e.preventDefault(),t.handleClick.apply(null,arguments)},contextmenu:function(t){t.preventDefault()},dragstart:function(t){t.preventDefault()}}})},Ze=[],Je={name:"img-box",props:{src:{type:String,required:!0},width:{type:String,default:"100vw"},height:{type:String,default:"75vw"},cover:{type:Boolean,default:!1}},computed:{style(){return{width:this.width,height:this.height,backgroundImage:`url(${this.src})`,backgroundSize:this.cover?"cover":"contain"}}},methods:{handleClick(){this.$emit("click")}}},Ye=Je,Ke=(s("d18f"),Object(ot["a"])(Ye,We,Ze,!1,null,"05e20c09",null)),Xe=Ke.exports,ts={name:"img-slider",components:{ImgAnimation:Ue,ImgBox:Xe},props:{images:{type:Array,required:!0},index:{type:Number,default:0},interval:{type:Number,default:5},loop:{type:Boolean,default:!1},max:{type:Number,default:3},indicator:{type:Boolean,default:!1},width:{type:String,default:"100vw"},height:{type:String,default:"75vw"},cover:{type:Boolean,default:!1}},data(){return{count:0,reqAnimId:0,frTime:0,elasped:0,showArrow:!1}},computed:{idx:{get(){return this.index},set(t){this.updateIndex(t)}}},mounted(){this.setupGestures(),this.startSlide()},beforeDestroy(){this.stopSlide()},methods:{slideAnimation(){this.reqAnimId=window.requestAnimationFrame(this.slideAnimation.bind(this));const t=(new Date).getTime()-this.frTime;this.elasped+=t/1e3,this.frTime=(new Date).getTime(),this.elasped>=this.interval&&(this.stepSlide(),this.elasped=0)},startSlide(){this.elasped=0,this.frTime=(new Date).getTime(),this.slideAnimation(),this.showArrow=!1},stepSlide(){this.index===this.images.length-1?this.endAction():this.updateIndex(this.index+1)},stopSlide(){this.reqAnimId&&(window.cancelAnimationFrame(this.reqAnimId),this.reqAnimId=0,this.showArrow=!0,this.$store.dispatch("log/info","img slider stoped"))},endAction(){this.loop&&this.count<this.max?(this.updateIndex(0),this.count+=1):this.stopSlide()},updateIndex(t){this.$emit("update:index",t)},handleClickImg(t,e){this.$emit("click:image",{index:t,image:e})},handleClickPrev(){this.index>0&&this.updateIndex(this.index-1)},handleClickNext(){this.index<this.images.length-1&&this.updateIndex(this.index+1)},showPrev(){return this.showArrow&&0!==this.index},showNext(){return this.showArrow&&this.index!==this.images.length-1},setupGestures(){const t=new this.$ons.GestureDetector(this.$refs.slider);t.on("swipe",()=>{this.stopSlide()}),t.on("dragstart",()=>{this.stopSlide()})}}},es=ts,ss=(s("9806"),Object(ot["a"])(es,Qe,Ge,!1,null,"0a51350e",null)),is=ss.exports,as=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"parallax-container",style:{height:t.height}},[s("div",{ref:"parallax",staticClass:"parallax"},[t._t("default")],2)])},os=[],ns={name:"parallax",props:{height:{type:String,default:"75vw"},speed:{type:Number,default:.5}},data(){return{direction:1,offsetTop:0,pageElm:null}},mounted(){this.pageElm=this.$refs.parallax.closest(".page-container"),this.pageElm.addEventListener("scroll",this.handleScroll.bind(this),!1),setTimeout(()=>{const t=this.$refs.parallax.getBoundingClientRect();this.offsetTop=t.top},0)},beforeDestroy(){this.pageElm.removeEventListener("scroll",this.handleScroll.bind(this),!1)},methods:{animate(){const t=this.offsetTop-this.getOffsetTop(this.$refs.parallax),e=t*this.speed,s=e*this.direction;this.$refs.parallax.style.transform=`translate3d(0, ${s}px, 0)`},getOffsetTop(t){const e=t.getBoundingClientRect();return e.top},inView(t){const e=t.getBoundingClientRect();return e.bottom>=0&&e.top<=(window.innerHeight||document.documentElement.clientHeight)},handleScroll(){window.requestAnimationFrame(()=>{this.inView(this.$refs.parallax)&&this.animate()})}}},rs=ns,cs=(s("fe3f"),Object(ot["a"])(rs,as,os,!1,null,"1044abcb",null)),ls=cs.exports,ds={name:"home-page",components:{TextDecoration:ke,ExternalLinkList:je,ExternalMovieList:Be,ImgSlider:is,Parallax:ls},data(){return{index:0}},computed:{...Object(c["c"])("page",["home","currentPage"]),...Object(c["c"])("ext",["links","movies"]),hasInfo(){return this.home.address||this.home.contact||this.home.open},hideTitle(){return A},images(){return this.home.images.map((t,e)=>({title:e>0?`${this.home.title} ${e+1}`:this.home.title,src:t}))},relatedLinks(){return this.home.links.map(t=>{const e=this.links.find(e=>e.id===t);return{...e}})},relatedMovies(){return this.home.movies.map(t=>{const e=this.movies.find(e=>e.id===t);return{...e}})}},watch:{currentPage(t){"home-page"===t?this.$refs.slider.startSlide():this.$refs.slider.stopSlide()}}},ps=ds,us=(s("50e6"),Object(ot["a"])(ps,pe,ue,!1,null,"6e0f712c",null)),hs=us.exports,ms=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{modifier:"main"}},[s("div",{staticClass:"container-wrap"},[s("div",{staticClass:"map-container"},[s("div",{ref:"map",staticClass:"map map-bg"})]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.spotId,expression:"spotId"}],staticClass:"map-info-window"},[s("map-info",{on:{delete:t.handleDeleteMapInfo}})],1),t.mapPage.attribution?s("div",{staticClass:"map-attribution"},[t._v(t._s(t.mapPage.attribution))]):t._e(),s("div",{staticClass:"marker-btn-group"},t._l(t.markers,(function(e){return s("button",{key:e.id,staticClass:"icon-btn",class:{active:e.active},on:{click:function(s){return t.handleClickMarkerBtn(e)}}},[s("img",{staticClass:"icon",attrs:{src:e.icon}})])})),0),t.firstAccessed?s("div",{staticClass:"option-box"},[s("p",{directives:[{name:"show",rawName:"v-show",value:t.legendTitle,expression:"legendTitle"}],staticClass:"box-title"},[t._v(t._s(t.legendTitle))]),t.layers.length?s("div",{staticClass:"layer-btn-group"},t._l(t.layers,(function(e){return s("button",{key:e.id,staticClass:"icon-btn",class:{active:e.active},on:{click:function(s){return t.handleClickLayerBtn(e)}}},[s("img",{staticClass:"icon",attrs:{src:e.icon}})])})),0):t._e(),t.courses.length?s("div",{staticClass:"course-select"},[t.courseIcon?s("img",{staticClass:"icon",staticStyle:{"margin-right":"4px"},attrs:{src:t.courseIcon}}):s("img",{staticClass:"icon",staticStyle:{"margin-right":"4px"},attrs:{src:"/img/icon-walk.svg"}}),s("v-ons-select",{attrs:{modifier:"sub"},model:{value:t.courseId,callback:function(e){t.courseId=e},expression:"courseId"}},[s("option",{attrs:{value:""}},[t._v(t._s(t.courseDefault||" -- Routes -- "))]),t._l(t.courses,(function(e){return s("option",{key:e.id,domProps:{value:e.id}},[s("text-decoration",{attrs:{text:t._f("noDeco")(e.name)}})],1)}))],2)],1):t._e()]):t._e()]),s("v-ons-fab",{attrs:{modifier:"main",position:"bottom right",disabled:!t.inBounds},on:{click:t.handleClick}},[s("v-ons-icon",{attrs:{icon:"fa-compass"}})],1)],1)},gs=[],fs=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.hasLocation?s("div",{staticClass:"map-info",on:{click:t.handleClick}},[s("v-ons-ripple"),s("span",{staticClass:"caption trancate"},[t._v(t._s(t._f("noDeco")(t.name)))]),s("img-box",{attrs:{cover:"",src:t._f("imgPath")(t.img),width:"100%",height:"100%"}}),s("div",{staticClass:"delete-icon",on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.handleClickDelete.apply(null,arguments)}}},[t._v("×")])],1):t._e()},vs=[],_s={name:"map-info",components:{ImgBox:Xe},computed:{...Object(c["d"])("spot",["imgIndex"]),...Object(c["c"])("spot",["spot"]),name(){return this.spot.name}
1,img(){return this.spot.images[this.imgIndex||0]},hasLocation(){return this.spot&&this.spot.lat&&this.spot.lng}},methods:{handleClick(){"quiz"!==this.spot.type?(this.$store.dispatch("gtm/sendImgInfoEvent",{imgSrc:this.img,spotId:this.spot.id,page:this.$route.fullPath}),this.$store.dispatch("page/goSpotDetails")):this.$store.dispatch("page/goQuiz")},handleClickDelete(){this.$emit("delete")}}},bs=_s,Is=(s("8fc5"),Object(ot["a"])(bs,fs,vs,!1,null,"bef2e724",null)),ks=Is.exports,ws={name:"map-page",components:{MapInfo:ks,TextDecoration:ke},data(){return{firstAccessed:!1}},computed:{...Object(c["d"])(["dataLoaded","mapLoaded"]),...Object(c["d"])("spot",["spotId"]),...Object(c["d"])("map",["position","heading","compassAllowed","compassDenied","activeCourseId"]),...Object(c["c"])("map",["inBounds","markers","courses","activeCourse","layers"]),...Object(c["c"])("page",["mapPage","currentPage"]),courseId:{get(){return this.activeCourseId},set(t){t?this.$store.commit("map/updateActiveCourseId",{id:t}):this.$store.commit("map/clearActiveCourseId")}},courseIcon(){return this.activeCourse&&"icon"in this.activeCourse?this.activeCourse.icon:""},courseDefault(){return"course_default"in this.mapPage?this.mapPage.course_default:""},legendTitle(){return"legend_title"in this.mapPage?this.mapPage.legend_title:""}},created(){this.init()},methods:{init(){this.$store.dispatch("log/info","Map init start");const{mapImg:t,southWest:e,northEast:s,markers:i}=this.$store.state.map,a=this.$options.filters.imgPath(t);this.$store.dispatch("map/init",{mapImgPath:a,southWest:e,northEast:s,markers:i,onDeactivateSpot:this.handleDeactivateSpot.bind(this),onSelectedSpot:this.handleSelectedSpot.bind(this),onLoadMapImage:this.handleLoadMapImage.bind(this)})},load(){this.$store.dispatch("log/info","Map load"),this.$store.dispatch("map/create",{elm:this.$refs.map}).then(()=>{this.$store.dispatch("map/loadFeatures"),this.$store.dispatch("map/displayMarkers"),this.$store.dispatch("log/info","Map loaded"),this.$store.commit("mapLoaded")})},firstAccess(){this.spotId||setTimeout(()=>{R?this.$store.dispatch("map/flyTo",R):this.$store.dispatch("map/flyToBounds"),this.compassDenied||this.$store.dispatch("map/CheckCompass")},500),this.firstAccessed=!0},handleClick(){this.compassAllowed||this.compassDenied||this.$store.dispatch("map/DeviceOrientationRequestPermission"),this.$store.dispatch("map/flyToPosition"),this.$store.dispatch("map/startGeoMonitoring")},handleDeactivateSpot(){this.$store.commit("spot/clearSpotId")},handleSelectedSpot(t){const e=t.id;this.$store.dispatch("gtm/sendClickMarkerEvent",{spotId:e,page:this.$route.fullPath}),this.$store.dispatch("spot/updateSpot",{spotId:e,imgIndex:0})},handleLoadMapImage(){this.$store.dispatch("map/displayCourse",!1),this.$store.dispatch("map/displayLayers")},handleClickMarkerBtn(t){this.$store.dispatch("map/toggleMarkerActive",{id:t.id}),this.$store.dispatch("map/toggleMarkerLayer",{id:t.id})},handleClickLayerBtn(t){this.$store.dispatch("map/toggleLayerActive",{id:t.id})},toggleCourseActive(){if(this.activeCourse){if("spotId"in this.activeCourse){const{spotId:t}=this.activeCourse;this.$store.dispatch("spot/updateSpot",{spotId:t,imgIndex:0}),this.$store.dispatch("map/flyToSpot"),this.$store.dispatch("map/displayCourse")}}else this.$store.dispatch("spot/clearSpot"),this.$store.dispatch("map/clearCourse")},handleDeleteMapInfo(){this.$store.dispatch("map/deactivateSpot")}},watch:{dataLoaded(){this.load()},mapLoaded(){"map-page"!==this.currentPage||this.firstAccessed||this.firstAccess()},currentPage(t,e){if("map-page"===t){if(this.mapLoaded&&!this.firstAccessed&&this.firstAccess(),this.spotId){this.$store.dispatch("map/flyToSpot");const t=this.courses.find(t=>t.spotId===this.spotId);t&&this.$store.commit("map/updateActiveCourseId",{id:t.id})}J||this.$store.dispatch("map/startGeoMonitoring")}J||"map-page"===t||"map-page"!==e||this.$store.dispatch("map/stopGeoMonitoring")},activeCourseId(){window.setTimeout(()=>{this.toggleCourseActive()},500)}}},ys=ws,Cs=(s("42aa"),Object(ot["a"])(ys,ms,gs,!1,null,"219a7ab9",null)),xs=Cs.exports,Ss=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{modifier:"main"}},[s("div",{staticClass:"page-container",staticStyle:{"padding-bottom":"80px"}},[s("group-select-header"),s("transition-group",{attrs:{name:"list",tag:"v-ons-list",modifier:"main"}},t._l(t.groupedViewSpots,(function(e){return s("v-ons-list-item",{key:e.id,staticClass:"list-item",attrs:{modifier:"longdivider main",tappable:""},on:{click:function(s){return t.handleClick(e)}}},[s("div",{staticClass:"center"},[s("span",{staticClass:"list-item__title spot-title"},[s("text-decoration",{attrs:{text:e.name}})],1),s("span",{staticClass:"list-item__subtitle trancate-2l"},[t._v(t._s(t._f("noDeco")(e.description)))])]),s("div",{staticClass:"right"},[s("img-box",{staticClass:"spot-thumbnail",attrs:{src:t._f("imgPath")(e.images[0]),width:"92px",height:"69px",cover:""}})],1)])})),1)],1),t.showQRbtn?[s("v-ons-fab",{attrs:{modifier:"main",position:"bottom right"},on:{click:t.handleClickQr}},[s("i",{staticClass:"fa fa-qrcode"})])]:t._e()],2)},js=[],Ps=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.groups.length?s("div",{staticClass:"group group-header-bg"},[t._m(0),s("v-ons-select",{staticClass:"selector",attrs:{modifier:"main"},model:{value:t.groupId,callback:function(e){t.groupId=e},expression:"groupId"}},t._l(t.groups,(function(e){return s("option",{key:e.id,domProps:{value:e.id}},[t._v(t._s(e.name))])})),0)],1):t._e()},$s=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",{staticClass:"caret"},[s("i",{staticClass:"fa fa-caret-down"})])}],Ls={name:"group-select-header",computed:{...Object(c["c"])("group",["groups"]),groupId:{get(){return this.$store.state.group.groupId},set(t){this.$store.commit("group/updateGroupId",{groupId:t})}}}},zs=Ls,As=(s("f163"),Object(ot["a"])(zs,Ps,$s,!1,null,null,null)),Ms=As.exports,Es={name:"spot-page",components:{GroupSelectHeader:Ms,TextDecoration:ke,ImgBox:Xe},computed:{...Object(c["c"])("spot",["groupedViewSpots"]),showQRbtn(){return y}},methods:{handleClick(t){this.$store.dispatch("spot/updateSpot",{spotId:t.id,imgIndex:0}),this.$store.dispatch("page/goSpotDetails")},handleClickQr(){this.$store.dispatch("page/goCamera")}}},Os=Es,Ds=(s("1590"),Object(ot["a"])(Os,Ss,js,!1,null,"1b6b5214",null)),qs=Ds.exports,Ts=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{modifier:"main"}},[s("div",{staticClass:"page-container",staticStyle:{"padding-bottom":"80px"}},[s("div",{staticClass:"result"},[t._l(t.seasonQuizes.length,(function(e){return[e<=t.correctedQuizes.length?s("i",{key:"star-"+e,staticClass:"result-icon fa fa-star shine"}):s("i",{key:"star-o-"+e,staticClass:"result-icon fa fa-star-o"})]})),s("div",{staticClass:"score"},[t._v(" "+t._s(t.correctedQuizes.length)+" / "+t._s(t.seasonQuizes.length)+" "),t.answeredQuizes.length?s("button",{staticClass:"reset-btn",on:{click:t.handleClickReset}},[t._v(t._s(t.quizPage.reset_btn))]):t._e()])],2),s("transition-group",{attrs:{name:"list",tag:"v-ons-list",modifier:"main"}},t._l(t.seasonQuizes,(function(e,i){return s("v-ons-list-item",{key:i+"-"+e.id,staticClass:"list-item",attrs:{modifier:"longdivider main",tappable:""},on:{click:function(s){return t.handleClick(e)}}},[s("div",{staticClass:"left"},[t.hasPassed(e)?s("i",{staticClass:"result-icon fa fa-star"}):t.answered(e)?s("i",{staticClass:"result-icon fa fa-star-o"}):t.accessible?s("i",{staticClass:"default-icon fa fa-star-o"}):s("i",{staticClass:"default-icon fa fa-search"})]),s("div",{staticClass:"center"},[s("span",{staticClass:"list-item__title quiz-title"},[s("span",{staticClass:"quiz-number"},[t._v(t._s(i+1)+". ")]),s("text-decoration",{attrs:{text:e.title}}
1)],1)])])})),1)],1),t.showQRbtn?[s("v-ons-fab",{attrs:{modifier:"main",position:"bottom right"},on:{click:t.handleClickQr}},[s("i",{staticClass:"fa fa-qrcode"})])]:t._e()],2)},Bs=[],Qs={name:"quiz-page",components:{TextDecoration:ke},computed:{...Object(c["c"])("page",["quizPage"]),...Object(c["d"])("quiz",["correctedQuizes","answeredQuizes"]),...Object(c["c"])("quiz",["seasonQuizes"]),accessible(){return 1===this.quizPage.mode},showQRbtn(){return y}},methods:{hasPassed(t){return this.correctedQuizes.includes(t.id)},answered(t){return this.answeredQuizes.includes(t.id)},handleClick(t){this.$store.dispatch("spot/updateSpot",{spotId:t.spotId,imgIndex:0}),this.accessible||this.answered(t)?this.$store.dispatch("page/goQuizDetails"):this.$store.dispatch("page/goMap")},handleClickReset(){this.$ons.notification.confirm(this.quizPage.reset_message).then(t=>{t&&this.$store.dispatch("quiz/resetScore")})},handleClickQr(){this.$store.dispatch("page/goCamera")}}},Gs=Qs,Rs=(s("324b"),Object(ot["a"])(Gs,Ts,Bs,!1,null,"1401e936",null)),Vs=Rs.exports,Ns=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{modifier:"main","infinite-scroll":t.handleScroll}},[s("group-select-header"),s("transition-group",{staticClass:"gallery-container",class:t.columns,attrs:{tag:"div",name:"fade"}},t._l(t.chunkedImages,(function(e,i){return s("div",{key:e.id,staticClass:"thumb-image",on:{click:function(s){return t.handleClick(i,e)}}},[t.domLoaded?s("img-box",{attrs:{src:t._f("imgPath")(e.src),width:"100%",height:"100%",cover:""}}):s("span",[s("i",{staticClass:"fa fa-spinner fa-pulse"})])],1)})),0),s("div",{directives:[{name:"show",rawName:"v-show",value:t.imgLoading,expression:"imgLoading"}],staticClass:"img-loading"},[s("i",{staticClass:"fa fa-spinner fa-pulse"})])],1)},Fs=[],Hs=s("4d8c"),Us=s.n(Hs),Ws={name:"gallery-page",components:{GroupSelectHeader:Ms,ImgBox:Xe},data(){return{animation:!1,chunks:1,imgLoading:!1}},computed:{...Object(c["d"])(["domLoaded"]),...Object(c["c"])("spot",["groupedViewSpots"]),columns(){return 2===k?"col-2":"col-3"},images(){const t=this.groupedViewSpots.map(t=>t.images.map((e,s)=>({id:`${t.id}_${e}`,src:e,title:s>0?`${t.name} ${s+1}`:t.name,hasLocation:t.lat&&t.lng})));return Us()(t)},threshold(){return w*this.chunks},chunkedImages(){return this.images.filter((t,e)=>e<this.threshold)}},methods:{handleClick(t,e){this.$store.dispatch("gtm/sendImgViewEvent",{imgSrc:e.src,page:this.$route.fullPath}),this.$store.dispatch("gallery/open",{index:t,items:this.images,options:{getThumbBoundsFn:this.getThumbBoundsFn.bind(this),onAfterChange:this.onAfterChange.bind(this)}})},getThumbBoundsFn(t){const e=document.querySelectorAll(".thumb-image")[t];if(!e)return null;let s=e.getBoundingClientRect();const i=window.innerHeight-s.height-50;return s.top>i?(e.scrollIntoView(!1),s=e.getBoundingClientRect()):s.top<0&&(e.scrollIntoView(!0),s=e.getBoundingClientRect()),{x:s.left,y:s.top,w:s.width}},onAfterChange(t,e){const s=e+1-this.threshold;s>0&&(this.chunks+=Math.ceil(s/w))},handleScroll(t){this.threshold<this.images.length&&(this.imgLoading||(this.imgLoading=!0,setTimeout(()=>{this.chunks+=1,this.imgLoading=!1},500))),t()}},watch:{groupedViewSpots(){this.chunks=1}}},Zs=Ws,Js=(s("461e"),Object(ot["a"])(Zs,Ns,Fs,!1,null,"385a50a0",null)),Ys=Js.exports;const Ks={default:{cc_message:"On this site, access data is acquired by using cookies etc. to grasp usage situation and improve convenience when browsing the site. For details on the use and setting of cookie and opt-out, please see the privacy policy.",cc_consent:"I agree",cc_link:"Privacy policy",cc_href:"https://www.aboc.co.jp/field-sign-project/products/signsense-pwa/privacy.html"},menu:{links:["link_1","link_2"]},home:{title:"Kamakura Chuo Park",label:"Home",description:"Located in the center of Kamakura city, it is situated in a blessed environment with abundant nature and also functions as a disaster prevention park such as a wide-area evacuation place at the time of disaster.",comment:"",links:[],movies:[],images:["spot_6_1.jpg","spot_2_1.jpg","spot_3_2.jpg","spot_44_2.jpg","spot_39_1.jpg"],address:"",contact:"",open:""},map:{filename:"izumi-park-town.svg",northEast:{lat:38.366666,lng:140.875},southWest:{lat:38.325,lng:140.8},activeMarkers:["m1"],markers:[{id:"m1",type:"restaurant",icon:v+"img/pin-eat-01.svg",activeIcon:v+"img/pin-eat-02.svg",iconSize:[18,25],iconAnchor:[9,25],courseId:""},{id:"m2",type:"park",icon:v+"img/pin-park-01.svg",activeIcon:v+"img/pin-park-02.svg",iconSize:[18,25],iconAnchor:[9,25],courseId:""}],activeCourseId:"",courses:[],activeLayers:[],layers:[]},mapPage:{title:"Field Map",label:"",attribution:"This map uses processed GSI Maps.",course_default:"",legend_title:""}
1,spotPage:{title:"Top Viewing Sites",label:"",text_hanapedia_links:"Plants found around here",text_list_link:"List of Top Viewing Sites",text_map_link:"Locate on Map"},quizPage:{title:"Quiz List",label:"",reset_btn:"Reset",reset_message:"Do you want to reset the score and restart the quiz?",mode:0},gallery:{title:"Photo Gallery",label:"",download_message:"Agree to download?"},camera:{title:"QRcode Reader",label:"",error_message:"Camera access is not supported."},groupId:M,group:{id:0,name:"",sort_order:9999,spots:[],image:""},viewSpotTypes:["view","restaurant","park"],spot:{id:"",type:"view",group:"",name:"...",description:"...",comment:"",lat:0,lng:0,zoom:G,links:[],images:[],movies:[],sort_order:0,spots:[],quizes:[],pedia:[],plants:[]},quiz:{id:"",type:"normal",cat:"",title:"",images:[],q:"",a:"",choices:[],sort_order:0},choice:{id:"",text:"",img:"",sort_order:0},link:{text:"...",url:"...",sort_order:0},movie:{title:"",type:"",url:"",sort_order:0},image:{filename:"...",title:"...",sort_order:0},plant:{id:0,name:"",url:"",sort_order:0},i18nData:{default:null,menu:null,home:null,map:null,spot:null,quiz:null,gallery:null,camera:null},pageStack:[de],tabs:[{id:"home",icon:"fa-home",page:hs},{id:"map",icon:"fa-map",page:xs},{id:"spot",icon:"fa-map-marker",page:qs},{id:"quiz",icon:"fa-question",page:Vs},{id:"gallery",icon:"fa-picture-o",page:Ys}],defaultLocale:"en",defaultLang:"en-US",supportLanguage:[{locale:"ja",name:"日本語",lang:"ja-JP",sort_order:10},{locale:"en",name:"English",lang:"en-US",sort_order:20}],links:[{id:"link_1",text:"Terms of service",url:"https://www.aboc.co.jp/field-sign-project/products/signsense-pwa/terms-of-service.html",sort_order:10},{id:"link_2",text:"Privacy policy",url:"https://www.aboc.co.jp/field-sign-project/products/signsense-pwa/privacy.html",sort_order:20}],movies:[],images:[{id:1,filename:"spot_1_1.jpg",w:1280,h:1280,spotId:"spot_1",imgIndex:0},{id:2,filename:"spot_1_2.jpg",w:1281,h:960,spotId:"spot_1",imgIndex:1},{id:3,filename:"spot_1_3.jpg",w:960,h:1280,spotId:"spot_1",imgIndex:2},{id:4,filename:"spot_2_1.jpg",w:1280,h:1280,spotId:"spot_2",imgIndex:0},{id:5,filename:"spot_2_2.jpg",w:1281,h:960,spotId:"spot_2",imgIndex:1},{id:6,filename:"spot_2_3.jpg",w:1280,h:1280,spotId:"spot_2",imgIndex:2},{id:7,filename:"spot_3_1.jpg",w:1280,h:1280,spotId:"spot_3",imgIndex:0},{id:8,filename:"spot_3_2.jpg",w:1280,h:960,spotId:"spot_3",imgIndex:1},{id:9,filename:"spot_3_3.jpg",w:960,h:1281,spotId:"spot_3",imgIndex:2},{id:10,filename:"spot_4_1.jpg",w:1281,h:960,spotId:"spot_4",imgIndex:0},{id:11,filename:"spot_4_2.jpg",w:1281,h:960,spotId:"spot_4",imgIndex:1},{id:12,filename:"spot_4_3.jpg",w:1281,h:960,spotId:"spot_4",imgIndex:2},{id:13,filename:"spot_5_1.jpg",w:1280,h:1280,spotId:"spot_5",imgIndex:0},{id:14,filename:"spot_5_2.jpg",w:1280,h:1280,spotId:"spot_5",imgIndex:1},{id:15,filename:"spot_5_3.jpg",w:1280,h:960,spotId:"spot_5",imgIndex:2},{id:16,filename:"spot_6_1.jpg",w:960,h:1281,spotId:"spot_6",imgIndex:0},{id:17,filename:"spot_6_2.jpg",w:1280,h:960,spotId:"spot_6",imgIndex:1},{id:18,filename:"spot_6_3.jpg",w:960,h:1281,spotId:"spot_6",imgIndex:2},{id:19,filename:"spot_7_1.jpg",w:720,h:1280,spotId:"spot_7",imgIndex:0},{id:20,filename:"spot_7_2.jpg",w:1280,h:1280,spotId:"spot_7",imgIndex:1},{id:21,filename:"spot_7_3.jpg",w:1280,h:960,spotId:"spot_7",imgIndex:2},{id:22,filename:"spot_8_1.jpg",w:1280,h:960,spotId:"spot_8",imgIndex:0},{id:23,filename:"spot_8_2.jpg",w:1280,h:960,spotId:"spot_8",imgIndex:1},{id:24,filename:"spot_8_3.jpg",w:1280,h:960,spotId:"spot_8",imgIndex:2},{id:25,filename:"spot_9_1.jpg",w:1280,h:1280,spotId:"spot_9",imgIndex:0},{id:26,filename:"spot_9_2.jpg",w:1280,h:960,spotId:"spot_9",imgIndex:1},{id:27,filename:"spot_9_3.jpg",w:1280,h:960,spotId:"spot_9",imgIndex:2},{id:28,filename:"spot_10_1.jpg",w:1280,h:1280,spotId:"spot_10",imgIndex:0},{id:29,filename:"spot_10_2.jpg",w:1280,h:960,spotId:"spot_10",imgIndex:1},{id:30,filename:"spot_10_3.jpg",w:1280,h:960,spotId:"spot_10",imgIndex:2},{id:31,filename:"spot_11_1.jpg",w:1280,h:960,spotId:"spot_11",imgIndex:0},{id:32,filename:"spot_11_2.jpg",w:1280,h:960,spotId:"spot_11",imgIndex:1},{id:33,filename:"spot_11_3.jpg",w:1280,h:960,spotId:"spot_11",imgIndex:2},{id:34,filename:"spot_12_1.jpg",w:1280,h:960,spotId:"spot_12",imgIndex:0},{id:35,filename:"spot_12_2.jpg",w:1280,h:1280,spotId:"spot_12",imgIndex:1},{id:36,filename:"spot_12_3.jpg",w:1280,h:960,spotId:"spot_12",imgIndex:2},{id:37,filename:"spot_13_1.jpg",w:1280,h:1280,spotId:"spot_13",imgIndex:0},{id:38,filename:"spot_13_2.jpg",w:1280,h:1280,spotId:"spot_13",imgIndex:1},{id:39,filename:"spot_13_3.jpg",w:1280,h:1280,spotId:"spot_13",imgIndex:2},{id:40,filename:"spot_14_1.jpg",w:1280,h:1280,spotId:"spot_14",imgIndex:0},{id:41,filename:"spot_14_2.jpg",w:1280,h:1280,spotId:"spot_14",imgIndex:1},{id:42,filename:"spot_14_3.jpg",w:1280,h:1280,spotId:"spot_14",imgIndex:2},{id:43,filename:"spot_15_1.jpg",w:1280,h:960,spotId:"spot_15",imgIndex:0},{id:44,filename:"spot_15_2.jpg",w:1280,h:960,spotId:"spot_15",imgIndex:1},{id:45,filename:"spot_15_3.jpg",w:1280,h:960,spotId:"spot_15",imgIndex:2},{id:46,filename:"spot_16_1.jpg",w:1280,h:960,spotId:"spot_16",imgIndex:0},{id:47,filename:"spot_16_2.jpg",w:960,h:1280,spotId:"spot_16",imgIndex:1},{id:48,filename:"spot_16_3.jpg",w:1280,h:960,spotId:"spot_16",imgIndex:2},{id:49,filename:"spot_17_1.jpg",w:1280,h:960,spotId:"spot_17",imgIndex:0},{id:50,filename:"spot_17_2.jpg",w:960,h:1280,spotId:"spot_17",imgIndex:1},{id:51,filename:"spot_17_3.jpg",w:1280,h:960,spotId:"spot_17",imgIndex:2},{id:52,filename:"spot_18_1.jpg",w:1280,h:960,spotId:"spot_18",imgIndex:0},{id:53,filename:"spot_18_2.jpg",w:1280,h:960,spotId:"spot_18",imgIndex:1},{id:54,filename:"spot_18_3.jpg",w:1280,h:960,spotId:"spot_18",imgIndex:2},{id:55,filename:"spot_19_1.jpg",w:1280,h:960,spotId:"spot_19",imgIndex:0},{id:56,filename:"spot_19_2.jpg",w:1280,h:960,spotId:"spot_19",imgIndex:1},{id:57,filename:"spot_20_1.jpg",w:1280,h:960,spotId:"spot_20",imgIndex:0},{id:58,filename:"spot_20_2.jpg",w:1280,h:960,spotId:"spot_20",imgIndex:1},{id:59,filename:"spot_21_1.jpg",w:1280,h:960,spotId:"spot_21",imgIndex:0},{id:60,filename:"spot_21_2.jpg",w:1280,h:960,spotId:"spot_21",imgIndex:1},{id:61,filename:"spot_21_3.jpg",w:1280,h:960,spotId:"spot_21",imgIndex:2},{id:62,filename:"spot_22_1.jpg",w:1280,h:960,spotId:"spot_22",imgIndex:0},{id:63,filename:"spot_23_1.jpg",w:1280,h:960,spotId:"spot_23",imgIndex:0},{id:64,filename:"spot_23_2.jpg",w:1280,h:960,spotId:"spot_23",imgIndex:1},{id:65,filename:"spot_24_1.jpg",w:1280,h:960,spotId:"spot_24",imgIndex:0},{id:66,filename:"spot_24_2.jpg",w:1280,h:960,spotId:"spot_24",imgIndex:1},{id:67,filename:"spot_24_3.jpg",w:1280,h:960,spotId:"spot_24",imgIndex:2},{id:68,filename:"spot_25_1.jpg",w:1280,h:960,spotId:"spot_25",imgIndex:0},{id:69,filename:"spot_26_1.jpg",w:1280,h:960,spotId:"spot_26",imgIndex:0},{id:70,filename:"spot_27_1.jpg",w:1280,h:960,spotId:"spot_27",imgIndex:0},{id:71,filename:"spot_27_2.jpg",w:1280,h:960,spotId:"spot_27",imgIndex:1},{id:72,filename:"spot_28_1.jpg",w:960,h:1280,spotId:"spot_28",imgIndex:0},{id:73,filename:"spot_29_1.jpg",w:1280,h:960,spotId:"spot_29",imgIndex:0},{id:74,filename:"spot_29_2.jpg",w:1280,h:960,spotId:"spot_29",imgIndex:1},{id:75,filename:"spot_29_3.jpg",w:1280,h:960,spotId:"spot_29",imgIndex:2},{id:76,filename:"spot_30_1.jpg",w:1280,h:960,spotId:"spot_30",imgIndex:0},{id:77,filename:"spot_31_1.jpg",w:1280,h:960,spotId:"spot_31",imgIndex:0},{id:78,filename:"spot_32_1.jpg",w:1280,h:960,spotId:"spot_32",imgIndex:0},{id:79,filename:"spot_32_2.jpg",w:1280,h:960,spotId:"spot_32",imgIndex:1},{id:80,filename:"spot_33_1.jpg",w:1280,h:960,spotId:"spot_33",imgIndex:0},{id:81,filename:"spot_33_2.jpg",w:1280,h:960,spotId:"spot_33",imgIndex:1},{id:82,filename:"spot_33_3.jpg",w:1280,h:960,spotId:"spot_33",imgIndex:2},{id:83,filename:"spot_34_1.jpg",w:1280,h:960,spotId:"spot_34",imgIndex:0},{id:84,filename:"spot_34_2.jpg",w:1280,h:960,spotId:"spot_34",imgIndex:1},{id:85,filename:"spot_35_1.jpg",w:1280,h:960,spotId:"spot_35",imgIndex:0},{id:86,filename:"spot_35_2.jpg",w:1280,h:960,spotId:"spot_35",imgIndex:1},{id:87,filename:"spot_36_1.jpg",w:1280,h:960,spotId:"spot_36",imgIndex:0},{id:88,filename:"spot_36_2.jpg",w:1280,h:960,spotId:"spot_36",imgIndex:0},{id:89,filename:"spot_37_1.jpg",w:1280,h:960,spotId:"spot_37",imgIndex:0},{id:90,filename:"spot_37_2.jpg",w:1280,h:960,spotId:"spot_37",imgIndex:1},{id:91,filename:"spot_37_3.jpg",w:1280,h:960,spotId:"spot_37",imgIndex:2},{id:92,filename:"spot_38_1.jpg",w:1280,h:960,spotId:"spot_38",imgIndex:0},{id:93,filename:"spot_38_2.jpg",w:1280,h:960,spotId:"spot_38",imgIndex:1},{id:94,filename:"spot_38_3.jpg",w:1280,h:960,spotId:"spot_38",imgIndex:2},{id:95,filename:"spot_39_1.jpg",w:1280,h:960,spotId:"spot_39",imgIndex:0},{id:96,filename:"spot_39_2.jpg",w:1280,h:960,spotId:"spot_39",imgIndex:1},{id:97,filename:"spot_40_1.jpg",w:1280,h:960,spotId:"spot_40",imgIndex:0},{id:98,filename:"spot_40_2.jpg",w:1280,h:960,spotId:"spot_40",imgIndex:1},{id:99,filename:"spot_41_1.jpg",w:1280,h:960,spotId:"spot_41",imgIndex:0},{id:100,filename:"spot_41_2.jpg",w:1280,h:960,spotId:"spot_41",imgIndex:1},{id:101,filename:"spot_42_1.jpg",w:1280,h:960,spotId:"spot_42",imgIndex:0},{id:102,filename:"spot_42_2.jpg",w:1280,h:960,spotId:"spot_42",imgIndex:1},{id:103,filename:"spot_42_3.jpg",w:1280,h:960,spotId:"spot_42",imgIndex:2},{id:104,filename:"spot_43_1.jpg",w:1280,h:960,spotId:"spot_43",imgIndex:0},{id:105,filename:"spot_43_2.jpg",w:1280,h:960,spotId:"spot_43",imgIndex:1},{id:106,filename:"spot_44_1.jpg",w:1280,h:960,spotId:"spot_44",imgIndex:0},{id:107,filename:"spot_44_2.jpg",w:1280,h:960,spotId:"spot_44",imgIndex:1},{id:108,filename:"spot_45_1.jpg",w:1280,h:960,spotId:"spot_45",imgIndex:0},{id:109,filename:"spot_45_2.jpg",w:1280,h:960,spotId:"spot_45",imgIndex:1},{id:110,filename:"spot_45_3.jpg",w:1280,h:960,spotId:"spot_45",imgIndex:2}]};var Xs=Ks;const ti={fetchData({dispatch:t}){return Promise.all([t("fetchApp"),t("fetchSpots"),t("fetchQuizes"),t("fetchPlants"),t("fetchLinks"),t("fetchMovies")])},fetchI18nData({dispatch:t}){return Promise.all([t("fetchI18nApp"),t("fetchI18nSpots"),t("fetchI18nQuizes"),t("fetchI18nPlants"),t("fetchI18nLinks"),t("fetchI18nMovies"),t("fetchI18nGroups")])},fetchApp({state:t,commit:e,dispatch:s}){return t.db.getAppData().then(t=>{s("log/info","fetchApp successed: ");const i={default:t=>{e("page/updateDefault",t),e("updateVersion",t.version)},home:t=>e("page/updateHome",t),menu:t=>e("page/updateMenu",t),map:t=>e("page/updateMapPage",t),spot:t=>e("page/updateSpotPage",t),quiz:t=>e("page/updateQuizPage",t),gallery:t=>e("page/updateGallery",t),camera:t=>e("page/updateCamera",t)};t.forEach(t=>{t.id in i&&(s("log/info","  -- item: "+t.id),i[t.id](t))})})},fetchSpots({state:t,commit:e,dispatch:s}){return t.db.getSpots().then(t=>(s("log/info","fetchSpots successed: "),s("log/info","  -- total: "+t.length),e("spot/updateSpots",t),s("fetchGroups")))},fetchSupportLangs({state:t,commit:e,dispatch:s}){return t.db.getLangs().then(t=>{s("log/info","fetchI18n successed: "),e("updateSupportLanguage",t)})},fetchQuizes({state:t,commit:e,dispatch:s}){return t.db.getQuizes().then(t=>{s("log/info","fetchQuizes successed: "),s("log/info","  -- total: "+t.length),e("quiz/updateQuizes",t)})},fetchPlants({state:t,commit:e,dispatch:s}){return t.db.getPlants().then(t=>{s("log/info","fetchPlants successed: "),s("log/info","  -- total: "+t.length),e("pedia/updatePlants",t)})},fetchLinks({state:t,commit:e,dispatch:s}){return t.db.getLinks().then(t=>{s("log/info","fetchLinks successed: "),s("log/info","  -- total: "+t.length),e("ext/updateLinks",t)})},fetchMovies({state:t,commit:e,dispatch:s}){return t.db.getMovies().then(t=>{s("log/info","fetchMovies successed: "),s("log/info","  -- total: "+t.length),e("ext/updateMovies",t)})},fetchGroups({state:t,dispatch:e}){return t.db.getGroups().then(t=>{e("log/info","fetchGroups successed: "),e("log/info","  -- total: "+t.length),e("group/setGroups",t)})},fetchI18nApp({state:t,commit:e,dispatch:s}){return t.db.getI18nAppData(t.locale).then(t=>{s("log/info","fetchI18nApp successed: "),e("page/updateI18nData",t)})},fetchI18nSpots({state:t,commit:e,dispatch:s}){return t.db.getI18nSpots(t.locale).then(t=>{s("log/info","fetchI18nSpots successed: "),s("log/info","  -- total: "+t.length),e("spot/clearI18nSpots"),e("spot/updateI18nSpots",t)})},fetchI18nQuizes({state:t,commit:e,dispatch:s}){return t.db.getI18nQuizes(t.locale).then(t=>{s("log/info","fetchI18nQuizes successed: "),s("log/info","  -- total: "+t.length),e("quiz/clearI18nQuizes"),e("quiz/updateI18nQuizes",t)})},fetchI18nPlants({state:t,commit:e,dispatch:s}){return t.db.getI18nPlants(t.locale).then(t=>{s("log/info","fetchI18nPlants successed: "),s("log/info","  -- total: "+t.length),e("pedia/clearI18nPlants"),e("pedia/updateI18nPlants",t)})},fetchI18nLinks({state:t,commit:e,dispatch:s}){return t.db.getI18nLinks(t.locale).then(t=>{s("log/info","fetchI18nLinks successed: "),s("log/info","  -- total: "+t.length),e("ext/clearI18nLinks"),e("ext/updateI18nLinks",t)})},fetchI18nMovies({state:t,commit:e,dispatch:s}){return t.db.getI18nMovies(t.locale).then(t=>{s("log/info","fetchI18nMovies successed: "),s("log/info","  -- total: "+t.length),e("ext/clearI18nMovies"),e("ext/updateI18nMovies",t)})},fetchI18nGroups({state:t,commit:e,dispatch:s}){return t.db.getI18nGroups(t.locale).then(t=>{s("log/info","fetchI18nGroups successed: "),s("log/info","  -- total: "+t.length),e("group/clearI18nGroups"),e("group/updateI18nGroups",t)})},changeLangAndLocale({state:t,commit:e,dispatch:s},{lang:i}){let a=i||"en-US",o=a.substr(0,2);"zh-TW"===a&&(o="zh-TW"),"zh"===o&&(o="zh-CN");const n=t.supportLanguage.map(t=>t.locale),r=n.includes("zh-CN"),c=n.includes(o);!c&&r&&"zh-TW"===o?o="zh-CN":c||(o="en",a="en-US"),e("updateLocale",{locale:o}),e("updateLang",{lang:a}),s("log/info",`changeLangAndLocale: ${o}, ${a}`)},updateLocaleAndLang({state:t,commit:e,dispatch:s},{locale:i}){e("updateLocale",{locale:i});const a=t.supportLanguage.find(t=>t.locale===i);a&&"lang"in a?(e("updateLang",{lang:a.lang}),s("log/info",`updateLocaleAndLang: ${i}, ${a.lang}`)):s("log/info",`updateLocaleAndLang: ${i}, no...`)}};var ei=ti;const si={namespaced:!0,state:{open:!1},mutations:{toggle(t,e){t.open="boolean"===typeof e?e:!t.open}},actions:{delayClose({state:t,commit:e}){t.open&&setTimeout(()=>{e("toggle",!1)},300)}}};var ii=si;const ai={namespaced:!0,state:{index:0,tabs:[].concat(Xs.tabs)},mutations:{updateIndex(t,e){t.index=e},updateTabLabel(t,e){const{id:s,label:i}=e,a=t.tabs.find(t=>
1t.id===s);a&&"label"in a&&(a.label=i)}},getters:{filteredTabs(t){return t.tabs.filter(t=>!("quiz"===t.id&&!_||"gallery"===t.id&&!b))},currentTab(t,e){return e.filteredTabs[t.index]}},actions:{changeTab({getters:t,commit:e},{id:s}){const i=t.filteredTabs.findIndex(t=>"id"in t&&t.id===s);-1!==i&&e("updateIndex",i)},changeLabels({commit:t,rootGetters:e}){const s=e["page/labels"];s.forEach(e=>{t("updateTabLabel",e)})}}};var oi=ai;const ni={namespaced:!0,state:{pageStack:[].concat(Xs.pageStack)},mutations:{pushPage(t,{page:e}){t.pageStack.push(e)},popPage(t){t.pageStack.pop()}},getters:{currentNav(t){return t.pageStack[t.pageStack.length-1]}},actions:{goMain({getters:t,commit:e,dispatch:s}){"main-page"!==t.currentNav.name&&(e("popPage"),s("goMain"))}}};var ri=ni;const ci={namespaced:!0,modules:{splitter:ii,tabbar:oi,navigator:ri}};var li=ci,di=s("c1df"),pi=s.n(di);class ui{constructor(t=null){const{mode:e}=t;this.mode=e||"console"}write(t,e){"none"!==this.mode&&"console"===this.mode&&(e?console.log(t,e):console.log(t))}static formatLog(t="INFO",e="--"){return`${pi()().format("YYYY-MM-DD ddd HH:mm:ss")} [${t}]: ${e}\n`}static convData(t){return t}info(t,e){this.write(ui.formatLog("INFO",t),ui.convData(e))}warning(t,e){this.write(ui.formatLog("WARN",t),ui.convData(e))}error(t,e){this.write(ui.formatLog("ERR",t),ui.convData(e))}}var hi=ui;const mi={namespaced:!0,state:{logger:new hi({mode:f})},actions:{info({state:t},e){if(e&&"string"===typeof e&&t.logger.info(e),e&&"object"===typeof e){const{msg:s,data:i}=e;t.logger.info(s,i)}},warning({state:t},e){if(e&&"string"===typeof e&&t.logger.warning(e),e&&"object"===typeof e){const{msg:s,data:i}=e;t.logger.warning(s,i)}},error({state:t},e){if(e&&"string"===typeof e&&t.logger.error(e),e&&"object"===typeof e){const{msg:s,data:i}=e;t.logger.error(s,i)}}}};var gi=mi,fi=(s("d9e2"),s("b047c")),vi=s.n(fi),_i=s("df7c"),bi=s.n(_i);class Ii{constructor(){if(!("L"in window))throw new Error("not found Leaflet libray.");this.L=window.L,this.options=null,this.map=null,this.mapBounds=null,this.mapImageOverlay=null,this.markers=[],this.markerIcons=null,this.activeSpotMarker=null,this.groupLayers=null,this.isSvg=!1,this.mapSvgElm=null,this.defaultOptions={zoomControl:!0,attributionControl:!1,minZoom:B,maxZoom:Q,zoom:G,zoomAnimation:!1,fadeAnimation:!1,markerZoomAnimation:!1,inertia:!0,inertiaDeceleration:1e3}}init(t=null){this.options=t;const{mapImgPath:e,southWest:s,northEast:i,markers:a}=this.options;if(!(e&&s&&i))throw new Error("mapImgPath, southWest, northEast are required.");a&&a.length&&(this.markers=this.markers.concat(a)),".svg"===bi.a.extname(e)&&(this.isSvg=!0);const o=this.L.latLng(s),n=this.L.latLng(i);if(this.mapBounds=this.L.latLngBounds(o,n),this.isSvg){const t=document.createElement("object");t.id="overlay-map",t.data=e,t.type="image/svg+xml",this.mapImageOverlay=this.L.svgOverlay(t,this.mapBounds)}else this.mapImageOverlay=this.L.imageOverlay(e,this.mapBounds);this.activeSpotMarker=this.L.marker(this.mapBounds.getCenter()).on("click",this.handleClickActiveSpot.bind(this)),this.currentPositionMarker=this.L.marker(this.mapBounds.getCenter(),{icon:this.L.icon({iconUrl:U,iconSize:W,iconA
1nchor:Z})}),this.markerIcons={default:{normal:this.L.icon(),active:this.L.icon()}},this.markers.forEach(t=>{const{icon:e,activeIcon:s,iconSize:i,iconAnchor:a}=t;this.markerIcons[t.type]={normal:this.L.icon({iconSize:i,iconAnchor:a,iconUrl:e}),active:this.L.icon({iconSize:i,iconAnchor:a,iconUrl:s})}})}isReady(){return!!this.map}createMap(t,e=null){const s={maxBounds:this.mapBounds,center:this.mapBounds.getSouthEast()};this.map=this.L.map(t,Object.assign(s,this.defaultOptions,e)),this.map.zoomControl.setPosition("topright"),this.isSvg&&this.mapImageOverlay.on("add",()=>{this.mapSvgElm=document.getElementById("overlay-map"),this.mapSvgElm.addEventListener("load",()=>{"onLoadMapImage"in this.options&&"function"===typeof this.options.onLoadMapImage&&this.options.onLoadMapImage()})}),this.mapImageOverlay.addTo(this.map),this.map.on("zoomend",vi()(()=>{this.handleZoomend(this.map.getZoom())},800))}loadFeatures(t){this.groupLayers={},this.markers.forEach(e=>{this.groupLayers[e.type]=this.createGroupLayer(t,e.type)})}createGroupLayer(t,e){return this.L.geoJson(t,{filter:t=>{const s="type"in t.properties?t.properties.type:"defalt";return s===e},pointToLayer:(t,e)=>{const s=this.getMarkerIcon(t);return this.L.marker(e,{icon:s})},style:t=>"LineString"===t.geometry.type?{color:t.properties.stroke||"#3388ff",weight:t.properties["stroke-width"]||3,opacity:t.properties["stroke-opacity"]||1}:{},onEachFeature:(t,e)=>{e.on({click:this.handleClickSpot.bind(this)})}})}getMarkerIcon(t){if(t&&"properties"in t&&"type"in t.properties){const{type:e}=t.properties;if(e in this.markerIcons)return this.markerIcons[e].normal}return this.markerIcons.default.normal}showGroupLayers(t){this.groupLayers&&this.markers.forEach(e=>{const s=t.includes(e.id),i=this.groupLayers[e.type];i&&s&&!this.map.hasLayer(i)&&i.addTo(this.map),i&&!s&&this.map.hasLayer(i)&&i.remove()})}clearGroupLayers(){Object.keys(this.groupLayers).forEach(t=>{this.groupLayers[t].remove()})}showCourse(t,e=!0){if(this.mapSvgElm&&this.mapSvgElm.contentDocument&&t){const s=this.mapSvgElm.contentDocument.getElementById(t);s&&(s.style.display="block",K&&e&&Ii.courseAnimate(s))}}showElements(t){this.mapSvgElm&&this.mapSvgElm.contentDocument&&t.length&&t.forEach(t=>{const e=this.mapSvgElm.contentDocument.getElementById(t);e&&(e.style.display="block")})}hideElements(t){this.mapSvgElm&&this.mapSvgElm.contentDocument&&t.length&&t.forEach(t=>{const e=this.mapSvgElm.contentDocument.getElementById(t);e&&(e.style.display="none")})}static courseAnimate(t,e){"trace"===X&&"path"===t.tagName.toLowerCase()?Ii.pathTraceAnimate(t,e):"blink"===X&&Ii.elmBlinkAnimate(t,e)}static pathTraceAnimate(t,e){const s=t.getTotalLength();t.setAttribute("stroke-dasharray",String(s)),t.setAttribute("stroke-dashoffset",String(s)),t.animate([{strokeDashoffset:String(s)},{strokeDashoffset:0}],{...tt,...e,fill:"forwards"})}static elmBlinkAnimate(t,e){Array.from(t.children).forEach((t,s)=>{const i=window.getComputedStyle(t).getPropertyValue("stroke-width"),{magnification:a,color:o}=tt,n=a||1.65,r=i?parseFloat(i)*n:1,c=o||"",l=[{opacity:1,strokeWidth:r},{opacity:0,strokeWidth:r},{opacity:1,strokeWidth:r}],d=[{opacity:1,stroke:c,strokeWidth:r},{opacity:0,strokeWidth:r},{opacity:1,stroke:c,strokeWidth:r}];t.animate(c?d:l,{...tt,...e})})}activateSpot(t,e,s){if(!this.activeSpotMarker)return;const i=this.L.latLng(e,s),a=t in this.markerIcons?this.markerIcons[t]:this.markerIcons.default;this.activeSpotMarker.setLatLng(i).setIcon(a.active).setZIndexOffset(100).addTo(this.map)}deactivateSpot(){this.activeSpotMarker&&(this.activeSpotMarker.remove(),"onDeactivateSpot"in this.options&&"function"===typeof this.options.onDeactivateSpot&&this.options.onDeactivateSpot())}activateSpotByGeoF(t){if("Point"!==t.geometry.type)return;const e=t.geometry.coordinates,s="type"in t.properties?t.properties.type:"default";this.activateSpot(s,e[1],e[0])}updateCurrentPositionMarker(t,e,s=0){if(!this.currentPositionMarker)return;const i=this.L.latLng(t,e);this.currentPositionMarker.setLatLng(i).setRotationAngle(s).addTo(this.map)}removeCurrentPositionMarker(){this.currentPositionMarker&&this.currentPositionMarker.remove()}setDirectionOfCurrentPositionMarker(){this.currentPositionMarker&&this.currentPositionMarker.setIcon(this.L.icon({iconUrl:N,iconSize:F,iconAnchor:H}))}inBounds(t,e){const s=this.L.latLng(t,e);return this.mapBounds.contains(s)}inBoundsOnRect(t,e,s){const i=this.L.latLng(t.coords.latitude,t.coords.longitude),a=this.L.latLngBounds(e,s);return a.contains(i)}flyTo(t,e,s=G){setTimeout(()=>{this.map.flyTo(this.L.latLng(t,e),s)},500)}flyToBounds(){this.map.flyToBounds(this.mapBounds)}panTo(t,e){setTimeout(()=>{this.map.panTo(this.L.latLng(t,e))},500)}PanToByGeoF(t){if("Point"!==t.geometry.type)return;const e=t.geometry.coordinates;this.panTo(e[1],e[0])}handleClickActiveSpot(t){this.deactivateSpot()}handleClickSpot(t){const e=t.target;this.deactivateSpot(),this.activateSpotByGeoF(e.feature),this.map.getZoom()>this.map.getMinZoom()&&this.PanToByGeoF(e.feature),"onSelectedSpot"in this.options&&"function"===typeof this.options.onSelectedSpot&&this.options.onSelectedSpot(e.feature)}handleZoomend(t){t<V&&this.clearGroupLayers()}createDummyMap(t,e=null){const s=this.mapBounds.getCenter(),i=s.toBounds(6e6);this.mapBounds=i;const a={center:s,maxBounds:i,minZoom:3,maxZoom:20,zoom:12};this.map=this.L.map(t,Object.assign(this.defaultOptions,a,e)),this.map.zoomControl.setPosition("topright");const o="https://tile.openstreetmap.jp/{z}/{x}/{y}.png",n=this.L.tileLayer(o,{attribution:'Map data © <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'});n.addTo(this.map),this.map.on("zoomend",vi()(()=>{this.handleZoomend(this.map.getZoom())},800))}}var ki=Ii;class wi{constructor(){this.geolocation=window.navigator.geolocation,this.geolocationDefaultOptions={enableHighAccuracy:!0},this.compassDefaultOptions={frequency:300},this.watchPositionID=0,this.headingCallback=null}getCurrentPosition(){if(!this.geolocation){const t=new Error("not found window.navigator.geolocation.");return Promise.reject(t)}return new Promise((t,e)=>this.geolocation.getCurrentPosition(t,e,this.geolocationDefaultOptions))}watchPosition(t,e){this.geolocation&&(this.watchPositionID=this.geolocation.watchPosition(t,e,this.geolocationDefaultOptions))}clearWatchPosition(){this.geolocation&&this.geolocation.clearWatch(this.watchPositionID)}getCurrentHeading(){return new Promise((t,e)=>{const s=e=>{window.removeEventListener("deviceorientation",s,!0),t(wi.compassHeading(e))};window.addEventListener("deviceorientation",s,!0)})}watchHeading(t,e){this.headingCallback||(this.headingCallback=e=>{setTimeout(()=>{t(wi.compassHeading(e))},this.compassDefaultOptions.frequency)}),window.addEventListener("deviceorientation",this.headingCallback,!0)}clearWatchHeading(){this.headingCallback&&(window.removeEventListener("deviceorientation",this.headingCallback,!0),this.headingCallback=null)}static compassHeading(t){if("webkitCompassHeading"in t)return t.webkitCompassHeading;const{alpha:e,beta:s,gamma:i}=t,a=Math.PI/180,o=s?s*a:0,n=i?i*a:0,r=e?e*a:0,c=(Math.cos(o),Math.cos(n)),l=Math.cos(r),d=Math.sin(o),p=Math.sin(n),u=Math.sin(r),h=-l*p-u*d*c,m=-u*p+l*d*c;let g=Math.atan(h/m);return m<0?g+=Math.PI:h<0&&(g+=2*Math.PI),g*(180/Math.PI)}}var yi=wi;const Ci={init({state:t},e){t.mm.init(e)},create({state:t},{elm:e,options:s}){T?t.mm.createDummyMap(e,s):t.mm.createMap(e,s)},loadFeatures({state:t,rootGetters:e}){const s=e["spot/featuresGeoJson"];s&&t.mm.loadFeatures(s)},flyToBounds({state:t}){t.mm.flyToBounds()},flyTo({state:t},{lat:e,lng:s,zoom:i}){t.mm.flyTo(e,s,i)},flyToPosition({state:t}){if(t.position){const{latitude:e,longitude:s}=t.position.coords;t.mm.panTo(e,s)}}
1,flyToSpot({state:t,rootGetters:e,dispatch:s}){const{type:i,lat:a,lng:o,zoom:n}=e["spot/spot"];if(a&&o){const e=t.markers.find(t=>t.type===i);e&&(s("showMarkersOnly",{type:i}),t.mm.activateSpot(i,a,o)),t.mm.flyTo(a,o,n)}},getGeoInfo({dispatch:t}){return Promise.all([t("getCurrentPosition")])},getCurrentPosition({state:t,commit:e,dispatch:s}){return t.gm.getCurrentPosition().then(t=>{const{latitude:i,longitude:a,accuracy:o}=t.coords;return s("log/info",`getCurrentPosition: (${i}, ${a}, ${o})`,{root:!0}),e("updatePosition",{position:t}),t}).catch(t=>{s("log/error","getCurrentPosition failed: "+t,{root:!0})})},getCurrentHeading({state:t,commit:e,dispatch:s}){return t.gm.getCurrentHeading().then(t=>(s("log/info","getCurrentHeading: "+t,{root:!0}),e("updateHeading",{heading:t}),t)).catch(t=>{s("log/error","getCurrentHeading failed: "+t,{root:!0})})},startGeoMonitoring({state:t,getters:e,commit:s,dispatch:i}){i("log/info","startGeoMonitoring",{root:!0}),i("getCurrentPosition").then(()=>{e.inBounds?(t.gm.watchPosition(t=>{s("updatePosition",{position:t}),i("positionCallback")},t=>{throw i("logError","watchPosition error: "+t),new Error(t)}),t.gm.watchHeading(t=>{s("updateHeading",{heading:t}),i("headingCallback")},t=>{throw i("logError","watchHeading error: "+t),new Error(t)})):i("log/info","not in bounds...",{root:!0})})},stopGeoMonitoring({state:t,dispatch:e}){e("log/info","stopGeoMonitoring",{root:!0}),t.gm.clearWatchPosition(),t.gm.clearWatchHeading()},positionCallback({state:t,getters:e,dispatch:s}){const{latitude:i,longitude:a,accuracy:o}=t.position.coords;s("log/info",`watchPosition: (${i}, ${a}, ${o})`,{root:!0}),e.inBounds?t.mm.updateCurrentPositionMarker(i,a,t.heading):t.mm.removeCurrentPositionMarker()},headingCallback({state:t,getters:e,dispatch:s}){if(s("log/info","watchHeading: "+t.heading,{root:!0}),e.inBounds){const{latitude:e,longitude:s}=t.position.coords;t.mm.updateCurrentPositionMarker(e,s,t.heading)}},clearMarkers({state:t}){t.mm.clearGroupLayers()},displayMarkers({state:t}){t.mm.showGroupLayers(t.activeMarkers)},toggleMarkerActive({state:t,commit:e,dispatch:s},{id:i}){i&&(t.activeMarkers.includes(i)?e("removeActiveMarkers",{id:i}):e("pushActiveMarkers",{id:i}),s("displayMarkers"))},clearCourse({state:t}){const e=t.courses.map(t=>t.elId);t.mm.hideElements(e)},displayCourse({state:t,dispatch:e},s=!0){if(e("clearCourse"),t.activeCourseId){const e=t.courses.find(e=>e.id===t.activeCourseId);t.mm.showCourse(e.elId,s)}},toggleMarkerLayer({state:t,commit:e,dispatch:s},{id:i}){const a=t.markers.find(t=>t.id===i);a.layerId&&(t.activeMarkers.includes(i)?e("pushActiveLayers",{id:a.layerId}):e("removeActiveLayers",{id:a.layerId}),s("displayLayers"))},clearLayers({state:t}){const e=t.layers.map(t=>t.elId);t.mm.hideElements(e)},displayLayers({state:t,dispatch:e}){e("clearLayers");const s=t.activeLayers.map(e=>{const s=t.layers.find(t=>t.id===e);return s.elId});t.mm.showElements(s)},toggleLayerActive({state:t,commit:e,dispatch:s},{id:i}){i&&(t.activeLayers.includes(i)?e("removeActiveLayers",{id:i}):e("pushActiveLayers",{id:i}),s("displayLayers"))},showMarkersOnly({state:t,commit:e,dispatch:s},{type:i}){const a=t.markers.find(t=>t.type===i);a&&(e("clearActiveMarkers"),e("pushActiveMarkers",{id:a.id}),s("displayMarkers"),s("toggleMarkerLayer",{id:a.id}))},deactivateSpot({state:t}){t.mm.deactivateSpot()},CheckCompass({state:t,getters:e,commit:s,dispatch:i}){i("log/info","Check Compass",{root:!0}),i("getCurrentHeading").then(a=>{if(a&&(i("log/info","Check Compass - OK",{root:!0}),s("updateCompassAllowed",!0),t.mm.setDirectionOfCurrentPositionMarker(),i("log/info","-- set DirPosMarker",{root:!0}),e.inBounds)){const{latitude:e,longitude:s}=t.position.coords;t.mm.updateCurrentPositionMarker(e,s,t.heading)}})},DeviceOrientationRequestPermission({commit:t,dispatch:e}){window.DeviceOrientationEvent&&"function"===typeof window.DeviceOrientationEvent.requestPermission&&window.DeviceOrientationEvent.requestPermission().then(s=>{e("log/info",`DeviceOrientationRequestPermission: (${s})`,{root:!0}),"granted"===s?e("CheckCompass"):t("updateCompassDenied",!0)}).catch(t=>{e("log/error","DeviceOrientationRequestPermission failed: "+t,{root:!0})})}};var xi=Ci;const Si={mm:new ki,gm:new yi,position:null,heading:0,mapImg:Xs.map.filename,southWest:{...Xs.map.southWest},northEast:{...Xs.map.northEast},markers:[].concat(Xs.map.markers),activeMarkers:[].concat(Xs.map.activeMarkers),courses:[].concat(Xs.map.courses),activeCourseId:Xs.map.activeCourseId,layers:[].concat(Xs.map.layers),activeLayers:[].concat(Xs.map.activeLayers),compassAllowed:!1,compassDenied:Y},ji={updatePosition(t,{position:e}){t.position=e},updateHeading(t,{heading:e}){t.heading=e},updateMapInfo(t,e){const{filename:s,southWest:i,northEast:a}=e;s&&(t.filename=s),i&&"location"in i&&(t.southWest={lat:i.location.latitude,lng:i.location.longitude}),a&&"location"in a&&(t.northEast={lat:a.location.latitude,lng:a.location.longitude})},pushActiveMarkers(t,{id:e}){e&&!t.activeMarkers.includes(e)&&t.activeMarkers.push(e)},removeActiveMarkers(t,{id:e}){e&&(t.activeMarkers=t.activeMarkers.filter(t=>t!==e))},clearActiveMarkers(t){t.activeMarkers=[]},updateActiveCourseId(t,{id:e}){t.activeCourseId=e},clearActiveCourseId(t){t.activeCourseId=""},pushActiveLayers(t,{id:e}){e&&!t.activeLayers.includes(e)&&t.activeLayers.push(e)},removeActiveLayers(t,{id:e}){e&&(t.activeLayers=t.activeLayers.filter(t=>t!==e))},updateCompassAllowed(t,e){t.compassAllowed=e},updateCompassDenied(t,e){t.compassDenied=e}},Pi={inBounds(t){if(!t.position)return!1;if(!t.mm.isReady())return!1;const e=t.position.coords.latitude,s=t.position.coords.longitude;return t.mm.inBounds(e,s)},markers(t){return t.markers.map(e=>({...e,active:t.activeMarkers.includes(e.id)}
1))},courses(t,e,s,i){const a=t.courses.map(t=>{const e=i["spot/spots"].find(e=>e.id===t.spotId);return{...t,name:e?e.name:t.id,sort_order:e?e.sort_order:t.sortOrder}});return u()(a,"sort_order")},activeCourse(t){return t.courses.find(e=>e.id===t.activeCourseId)},layers(t){return t.layers.map(e=>{const{id:s,icon:i}=e;return{id:s,icon:i,active:t.activeLayers.includes(s)}})}},$i={namespaced:!0,state:Si,mutations:ji,getters:Pi,actions:xi};var Li=$i,zi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.spot?s("v-ons-page",{attrs:{modifier:"main"}},[s("v-ons-toolbar",{attrs:{modifier:"main"}},[s("div",{staticClass:"left"},[s("v-ons-back-button",{attrs:{modifier:"main"},on:{click:function(e){return e.preventDefault(),t.handleClickBackBtn.apply(null,arguments)}}})],1),s("div",{staticClass:"center"},[t._v(t._s(t._f("noDeco")(t.spot.name)))]),s("div",{staticClass:"right"},[s("v-ons-toolbar-button",{attrs:{modifier:"main"},on:{click:t.handleClickMenu}},[s("v-ons-icon",{attrs:{icon:"fa-bars"}})],1)],1)]),s("div",{ref:"page",staticClass:"page-container",staticStyle:{"padding-bottom":"40px"}},[s("div",{staticClass:"spot-img",attrs:{id:"spot-img-box"}},[0===t.images.length?s("img",{attrs:{src:t._f("imgPath")(null),alt:t._f("noDeco")(t.spot.name)}}):s("img-slider",{ref:"slider",attrs:{loop:"",indicator:"",cover:"",images:t.images,index:t.index},on:{"update:index":function(e){t.index=e},"click:image":t.handleClickImg}}),t.hasLocation?s("v-ons-fab",{staticStyle:{bottom:"-20px"},attrs:{modifier:"main",position:"bottom right"},on:{click:t.handleClickLocation}},[s("v-ons-icon",{attrs:{icon:"fa-map-marker"}})],1):t._e()],1),s("div",{staticClass:"content"},[s("p",{staticClass:"title"},[s("text-decoration",{attrs:{text:t.spot.name||""}})],1),s("div",{staticClass:"title-bar"}),s("p",{staticClass:"description"},[s("text-decoration",{attrs:{text:t.spot.description||""}})],1),t.spot.comment?s("p",{staticClass:"comment"},[s("text-decoration",{attrs:{text:t.spot.comment||""}})],1):t._e()]),s("div",{staticClass:"spot-links"},[s("v-ons-list",t._l(t.relatedSpots,(function(e){return s("v-ons-list-item",{key:e.id,attrs:{modifier:"main",tappable:""},on:{click:function(s){return t.handleClickSpot(e.id)}}},[s("div",{staticClass:"left"},[s("v-ons-icon",{attrs:{icon:"fa-map-marker"}})],1),s("div",{staticClass:"center"},[t._v(" "+t._s(t._f("noDeco")(e.name))+" ")])])})),1)],1),s("pedia-link-list",{attrs:{items:t.relatedPlants,title:t.spotPage.text_hanapedia_links}}),s("external-movie-list",{attrs:{movies:t.relatedMovies}}),s("external-link-list",{attrs:{links:t.relatedLinks}}),s("div",{staticClass:"social-btns"},[s("social-buttons")],1),s("ul",{staticClass:"internal-links"},[t.hasLocation?s("li",[s("v-ons-button",{attrs:{modifier:"quiet main"},on:{click:t.handleClickMapLink}},[s("i",{staticClass:"fa fa-arrow-left",staticStyle:{"margin-right":"10px"}}),t._v(" "+t._s(t.spotPage.text_map_link)+" ")])],1):t._e(),s("li",[s("v-ons-button",{attrs:{modifier:"quiet main"},on:{click:t.handleClickSpotLink}},[s("i",{staticClass:"fa fa-arrow-left",staticStyle:{"margin-right":"10px"}}),t._v(" "+t._s(t.spotPage.text_list_link)+" ")])],1)])],1),s("audio-fab",{on:{play:t.handleAudioPlay,pause:t.handleAudioPause,resume:t.handleAudioResume,stop:t.handleAudioStop}})],1):t._e()},Ai=[],Mi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.isSupported?s("v-ons-speed-dial",{attrs:{position:"bottom right",direction:"left",open:t.open},on:{"update:open":function(e){t.open=e},click:t.play}},[s("v-ons-fab",{attrs:{modifier:"main"}},[s("v-ons-icon",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],attrs:{icon:"fa-volume-up"}}),s("v-ons-icon",{directives:[{name:"show",rawName:"v-show",value:!t.open,expression:"!open"}],attrs:{icon:"fa-volume-down"}})],1),s("v-ons-speed-dial-item",{attrs:{modifier:"sub",disabled:!t.paused},on:{click:t.resume}},[s("v-ons-icon",{attrs:{icon:"fa-play",size:"20px"}})],1),s("v-ons-speed-dial-item",{attrs:{modifier:"sub",disabled:t.paused},on:{click:t.pause}},[s("v-ons-icon",{attrs:{icon:"fa-pause",size:"20px"}})],1),s("v-ons-speed-dial-item",{attrs:{modifier:"sub"},on:{click:t.stop}},[s("v-ons-icon",{attrs:{icon:"fa-stop",size:"20px"}})],1)],1):t._e()},Ei=[],Oi={name:"audio-fab",data(){return{open:!1}},computed:{...Object(c["c"])("audio",["isSupported","paused","speaking"])},methods:{play(){this.$store.dispatch("gtm/sendAudioPlayEvent",{locale:this.$store.state.locale,page:this.$route.fullPath}),this.$emit("play")},pause(){this.$store.dispatch("gtm/sendAudioPauseEvent",{locale:this.$store.state.locale,page:this.$route.fullPath}),this.$emit("pause")},resume(){this.$store.dispatch("gtm/sendAudioResumeEvent",{locale:this.$store.state.locale,page:this.$route.fullPath}),this.$emit("resume")},stop(){this.$store.dispatch("gtm/sendAudioStopEvent",{locale:this.$store.state.locale,page:this.$route.fullPath}),this.open=!1,this.$emit("stop")}},watch:{speaking(t){t||(this.open=!1)}}},Di=Oi,qi=Object(ot["a"])(Di,Mi,Ei,!1,null,null,null),Ti=qi.exports,Bi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.items.length?s("div",{staticStyle:{"margin-bottom":"20px"}},[s("v-ons-list-header",{directives:[{name:"show",rawName:"v-show",value:t.title,expression:"title"}],attrs:{modifier:"main"}},[t._v(t._s(t.title))]),s("v-ons-list",{attrs:{modifier:"main"}},t._l(t.items,(function(e){return s("v-ons-list-item",{key:e.id,attrs:{tappable:"",modifier:"main"},on:{click:function(s){return t.handleClick(e)}}},[s("div",{staticClass:"left"},[s("v-ons-icon",{attrs:{"fixed-width":"",icon:"pagelines"}})],1),s("div",{staticClass:"center"},[t._v(t._s(e.name))]),s("div",{staticClass:"right"},[s("v-ons-icon",{attrs:{icon:"fa-external-link"}})],1)])})),1)],1):t._e()},Qi=[],Gi={name:"pedia-link-list",props:{title:{type:String,default:""},items:{type:Array,default:()=>[]}},methods:{handleClick(t){const{url:e,name:s}=t;this.$store.dispatch("gtm/sendClickPediaLinkEvent",{url:e,name:s,page:this.$route.fullPath});const i=window.open(e,"_blank");i.opener=null,i.location=e}}},Ri=Gi,Vi=(s("c90a"),Object(ot["a"])(Ri,Bi,Qi,!1,null,"ab2f2de6",null)),Ni=Vi.exports,Fi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.enabled?s("div",[s("v-ons-button",{staticClass:"mr5 facebook",attrs:{modifier:"material--flat"},on:{click:function(e){return t.goTo("facebook")}}},[s("v-ons-icon",{attrs:{"fixed-width":"",icon:"fa-facebook"}})],1),s("v-ons-button",{staticClass:"mr5 twitter",attrs:{modifier:"material--flat"},on:{click:function(e){return t.goTo("twitter")}}},[s("v-ons-icon",{attrs:{"fixed-width":"",icon:"fa-twitter"}})],1),s("v-ons-button",{staticClass:"mr5 line",attrs:{modifier:"material--flat"},on:{click:function(e){return t.goTo("line")}}},[t._v("LINE")]),t.hasWebShare?s("v-ons-button",{staticClass:"web-share",attrs:{modifier:"material--flat"},on:{click:t.openWebShare}},[s("v-ons-icon",{attrs:{"fixed-width":"",icon:"fa-share-alt"}})],1):t._e()],1):t._e()},Hi=[],Ui=s("b383"),Wi=s.n(Ui),Zi={name:"social-buttons",computed:{...Object(c["c"])("page",["home"]),...Object(c["c"])("spot",["spot"]),enabled(){return x},currentUrl(){return window.location.href},facebookShare(){const t={app_id:st,display:"popup",href:this.currentUrl,mobile_iframe:!0};return"https://www.facebook.com/dialog/share?"+Wi.a.stringify(t)},twitterShare(){const t={url:this.currentUrl};return"https://twitter.com/intent/tweet?"+Wi.a.stringify(t)},lineShare(){const t={url:this.currentUrl};return"https://social-plugins.line.me/lineit/share?"+Wi.a.stringify(t)},hasWebShare(){return"share"in window.navigator},title(){return this.spot?this.spot.name:this.home.title}
1,text(){return this.spot?this.spot.description:this.home.description}},methods:{goTo(t){let e="";switch(t){case"facebook":e=this.facebookShare;break;case"twitter":e=this.twitterShare;break;case"line":e=this.lineShare;break;default:}if(e){this.$store.dispatch("gtm/sendSocialEvent",{network:t,action:"share",target:this.$route.fullPath});const s=window.open(e,"_blank");s.opener=null,s.location=e}},openWebShare(){this.$store.dispatch("gtm/sendSocialEvent",{network:"web share",action:"share",target:this.$route.fullPath}),window.navigator.share({title:this.$options.filters.noDeco(this.title),text:this.$options.filters.noDeco(this.text),url:this.currentUrl})}},mounted(){this.$store.dispatch("log/info",{msg:"Social buttons",data:{facebook:this.facebookShare,twitter:this.twitterShare,line:this.lineShare,web_share:this.hasWebShare}})}},Ji=Zi,Yi=(s("4ce1"),Object(ot["a"])(Ji,Fi,Hi,!1,null,"53a5adce",null)),Ki=Yi.exports,Xi={name:"spot-details-page",components:{TextDecoration:ke,AudioFab:Ti,ImgSlider:is,ExternalMovieList:Be,ExternalLinkList:je,PediaLinkList:Ni,SocialButtons:Ki},computed:{...Object(c["c"])("page",["spotPage"]),...Object(c["c"])("spot",["spot","viewSpots"]),...Object(c["c"])("pedia",["plants"]),...Object(c["c"])("ext",["links","movies"]),index:{get(){return this.$store.state.spot.imgIndex},set(t){this.$store.commit("spot/updateImgIndex",t)}},hasLocation(){return this.spot.lat&&this.spot.lng},images(){return this.spot.images.map((t,e)=>({src:t,title:e>0?`${this.spot.name} ${e+1}`:this.spot.name,hasLocation:this.hasLocation}))},relatedSpots(){return this.spot.spots.map(t=>{const e=this.viewSpots.find(e=>e.id===t);return{id:t,name:e.name}})},relatedPlants(){return this.spot.plants.map(t=>{const e=this.plants.find(e=>e.id===t);return{...e}})},relatedLinks(){return this.spot.links.map(t=>{const e=this.links.find(e=>e.id===t);return{...e}})},relatedMovies(){return this.spot.movies.map(t=>{const e=this.movies.find(e=>e.id===t);return{...e}})}},methods:{openGallery(){this.$store.dispatch("gallery/open",{items:this.images,index:this.index,options:{onAfterChange:this.onAfterChange.bind(this),getThumbBoundsFn:this.getThumbBoundsFn.bind(this)}})},onAfterChange(t){this.$store.dispatch("spot/updateSpot",{spotId:t.spotId,imgIndex:t.imgIndex})},getThumbBoundsFn(){const t=document.querySelector("#spot-img-box");if(!t)return null;const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}},handleClickLocation(){this.$store.dispatch("gtm/sendClickMarkerEvent",{spotId:this.spot.id,page:this.$route.fullPath}),this.$store.dispatch("page/goMap")},handleClickImg(t){const{image:e}=t;this.$store.dispatch("gtm/sendImgViewEvent",{imgSrc:e.src,page:this.$route.fullPath}),this.$refs.slider.stopSlide(),this.openGallery()},handleClickMenu(){this.$store.commit("ons/splitter/toggle")},handleClickBackBtn(){this.$store.dispatch("page/goBackFromSpotDetails")},handleClickSpot(t){this.$store.dispatch("spot/updateSpot",{spotId:t,imgIndex:0}),this.$store.dispatch("page/goSpotDetails")},handleClickSpotLink(){this.$store.dispatch("page/goSpot")},handleClickMapLink(){this.$store.dispatch("page/goMap")},handleAudioPlay(){let t=`${this.spot.name||""}。\n\n${this.spot.description||""}`;t=this.$options.filters.cnvAudioText(t),this.$store.dispatch("audio/textToSpeech",{text:t})},handleAudioPause(){this.$store.dispatch("audio/pause")},handleAudioResume(){this.$store.dispatch("audio/resume")},handleAudioStop(){this.$store.dispatch("audio/stop")}}},ta=Xi,ea=(s("2496"),Object(ot["a"])(ta,zi,Ai,!1,null,"55773a6c",null)),sa=ea.exports,ia=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",[s("v-ons-toolbar",{attrs:{modifier:"main"}},[s("div",{staticClass:"left"},[s("v-ons-back-button",{attrs:{modifier:"main"}})],1),s("div",{staticClass:"center"},[t._v(t._s(t._f("noDeco")(t.title)))]),s("div",{staticClass:"right"},[s("v-ons-toolbar-button",{attrs:{modifier:"main"},on:{click:t.handleClickMenu}},[s("v-ons-icon",{attrs:{icon:"fa-bars"}})],1)],1)]),s("div",{ref:"page",staticClass:"page-container",staticStyle:{"padding-bottom":"80px"}},[s("transition-group",{attrs:{name:"list",tag:"v-ons-list",modifier:"main"}},t._l(t.groupedViewSpots,(function(e){return s("v-ons-list-item",{key:e.id,staticClass:"list-item",attrs:{modifier:"longdivider main",tappable:""},on:{click:function(s){return t.handleClickSpot(e.id)}}},[s("div",{staticClass:"center"},[s("span",{staticClass:"list-item__title spot-title"},[s("text-decoration",{attrs:{text:e.name}})],1),s("span",{staticClass:"list-item__subtitle trancate-2l"},[t._v(t._s(t._f("noDeco")(e.description)))])]),s("div",{staticClass:"right"},[s("img-box",{staticClass:"spot-thumbnail",attrs:{src:t._f("imgPath")(e.images[0]),width:"92px",height:"69px"}})],1)])})),1)],1),t.showQRbtn?[s("v-ons-fab",{attrs:{modifier:"main",position:"bottom right"},on:{click:t.handleClickQr}},[s("i",{staticClass:"fa fa-qrcode"})])]:t._e()],2)}
1,aa=[],oa={name:"group-details-page",components:{TextDecoration:ke,ImgBox:Xe},computed:{...Object(c["c"])("group",["group"]),...Object(c["c"])("spot",["spots","groupedViewSpots"]),title(){return this.group.name},showQRbtn(){return y}},methods:{handleClickSpot(t){this.$store.dispatch("spot/updateSpot",{spotId:t,imgIndex:0}),this.$store.dispatch("page/goSpotDetails")},handleClickMenu(){this.$store.commit("ons/splitter/toggle")},handleClickQr(){this.$store.dispatch("page/goCamera")}}},na=oa,ra=(s("04af"),Object(ot["a"])(na,ia,aa,!1,null,"df3b8714",null)),ca=ra.exports,la=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.quiz?s("v-ons-page",{attrs:{modifier:"main"}},[s("v-ons-toolbar",{attrs:{modifier:"main"}},[s("div",{staticClass:"left"},[s("v-ons-back-button",{attrs:{modifier:"main"}})],1),s("div",{staticClass:"center"},[t._v(t._s(t._f("noDeco")(t.quiz.title)))]),s("div",{staticClass:"right"},[s("v-ons-toolbar-button",{attrs:{modifier:"main"},on:{click:t.handleClickMenu}},[s("v-ons-icon",{attrs:{icon:"fa-bars"}})],1)],1)]),s("div",{staticClass:"page-container",staticStyle:{"padding-bottom":"40px"}},[s("div",{staticClass:"quiz-img"},[0===t.images.length?s("img",{attrs:{src:t._f("imgPath")(null),alt:t._f("noDeco")(t.quiz.title)}}):s("img-slider",{ref:"slider",attrs:{loop:"",indicator:"",images:t.images,index:t.index},on:{"update:index":function(e){t.index=e}}}),t.answered&&t.hasLocation?s("v-ons-fab",{staticStyle:{bottom:"-20px"},attrs:{modifier:"main",position:"bottom left"},on:{click:t.handleClickLocation}},[s("v-ons-icon",{attrs:{icon:"fa-map-marker"}})],1):t._e(),s("audio-fab",{staticStyle:{bottom:"-20px"},attrs:{modifier:"main",position:"bottom right"},on:{play:t.handleAudioPlay,pause:t.handleAudioPause,resume:t.handleAudioResume,stop:t.handleAudioStop}}),t.answered?s("div",{staticClass:"done"},[s("span",{staticClass:"fa-stack"},[s("i",{staticClass:"fa fa-flag fa-stack-2x"}),t.hasPassed?s("i",{staticClass:"fa fa-circle-o fa-stack-1x fa-inverse in-flag"}):s("i",{staticClass:"fa fa-times fa-stack-1x fa-inverse in-flag"})])]):t._e()],1),s("div",{staticClass:"content"},[s("p",{staticClass:"title"},[s("text-decoration",{attrs:{text:t.quiz.title||""}})],1),s("p",{staticClass:"question"},[s("text-decoration",{attrs:{text:t.quiz.q||""}})],1),s("transition",{attrs:{name:"quiz-fade",mode:"out-in"}},[t.choice?s("div",{key:"answered"},[s("quiz-result",{attrs:{answer:t.choice.text,comment:t.quiz.comment,correct:t.isCorrect}})],1):s("div",{key:"choice"},[s("div",{staticClass:"choice"},t._l(t.shuffledChoices,(function(e,i){return s("v-ons-button",{key:i,staticClass:"choice-item",class:{red:i%3===0,blue:i%3===1,green:i%3===2},attrs:{modifier:"large main"},on:{click:function(s){return t.handleClickChoice(e)}}},[s("text-decoration",{attrs:{text:e.text}})],1)})),1)])])],1)]),s("audio",{ref:"correctAudio",attrs:{src:t._f("audioPath")("correct.mp3")}}),s("audio",{ref:"incorrectAudio",attrs:{src:t._f("audioPath")("incorrect.mp3")}})],1):t._e()},da=[],pa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"result"},[s("p",{staticClass:"answer"},[s("text-decoration",{attrs:{text:t.answer}})],1),t.comment?s("p",{staticClass:"quiz-comment"},[s("text-decoration",{attrs:{text:t.comment||""}})],1):t._e(),s("div",{staticClass:"result-mark"},[t.correct?s("i",{staticClass:"fa fa-circle-o correct"}):s("i",{staticClass:"fa fa-times incorrect"})])])},ua=[],ha={name:"quiz-result",components:{TextDecoration:ke},props:{answer:{type:String,required:!0},comment:{type:String,default:""},correct:{type:Boolean,default:!1}},mounted(){this.anmAnswerMark(),this.anmQuizComment()},methods:{anmAnswerMark(){dt["a"].from(".result-mark",{duration:1,opacity:0,rotationY:180})},anmQuizComment(){dt["a"].from(".quiz-comment",{duration:.6,y:120,opacity:0,delay:1})}}},ma=ha,ga=(s("da81"),Object(ot["a"])(ma,pa,ua,!1,null,"df081088",null)),fa=ga.exports,va={name:"quiz-details-page",components:{TextDecoration:ke,AudioFab:Ti,ImgSlider:is,QuizResult:fa},data(){return{index:0,choice:null}},mounted(){this.selectQuiz(this.spot.quizes),this.anmChoiceItem()},computed:{...Object(c["d"])("quiz",["season","correctedQuizes"]),...Object(c["c"])("spot",["spot"]),...Object(c["c"])("quiz",["quiz","answered","hasPassed"]),hasLocation(){return this.spot.lat&&this.spot.lng},images(){return this.quiz.images.map((t,e)=>({spotId:this.quiz.id,hasLocation:this.hasLocation,src:t,title:e>0?`${this.quiz.title} ${e+1}`:this.quiz.title}))},isCorrect(){return this.choice&&this.choice.id===this.quiz.a},shuffledChoices(){const t=[].concat(this.quiz.choices);for(let e=t.length-1;e>0;e-=1){const s=Math.floor(Math.random()*(e+1)),i=t[e];t[e]=t[s],t[s]=i}return t}},methods:{selectQuiz(t){const e=t[this.season];e?this.$store.commit("quiz/updateQuizId",e):this.$store.dispatch("page/goHome")},handleClickLocation(){this.$store.dispatch("gtm/sendClickMarkerEvent",{spotId:this.spot.id,page:this.$route.fullPath}),this.$store.dispatch("page/goMap")},handleClickChoice(t){this.choice=t,setTimeout(()=>{this.playAnsAudio()},500),this.answered||(this.$store.commit("quiz/addAnsweredQuiz",this.quiz.id),this.isCorrect&&this.$store.commit("quiz/addCorrectedQuiz",this.quiz.id),this.$store.dispatch("quiz/saveScore"))},handleClickMenu(){this.$store.commit("ons/splitter/toggle")},handleAudioPlay(){let t=`${this.quiz.title||""}
1。\n\n${this.quiz.q||""}`;this.choice&&(t=`${this.quiz.title||""}。\n\n${this.quiz.q||""}。\n\n${this.choice.text||""}。\n\n${this.quiz.comment||""}`),t=this.$options.filters.cnvAudioText(t),this.$store.dispatch("audio/textToSpeech",{text:t})},handleAudioPause(){this.$store.dispatch("audio/pause")},handleAudioResume(){this.$store.dispatch("audio/resume")},handleAudioStop(){this.$store.dispatch("audio/stop")},playAnsAudio(){let t=null;t=this.isCorrect?this.$refs.correctAudio:this.$refs.incorrectAudio,t&&(t.currentTime=0,t.play())},anmChoiceItem(){dt["a"].from(".choice-item",{duration:.3,x:160,rotationX:180,opacity:0,stagger:.3})}},watch:{spot(){this.selectQuiz(this.spot.quizes)}}},_a=va,ba=(s("b388"),Object(ot["a"])(_a,la,da,!1,null,"0d24ac4e",null)),Ia=ba.exports,ka=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-ons-page",{attrs:{modifier:"main"}},[s("v-ons-toolbar",{attrs:{modifier:"main"}},[s("div",{staticClass:"left"},[s("v-ons-back-button",{attrs:{modifier:"main"}})],1),s("div",{staticClass:"center"},[t._v(t._s(t._f("noDeco")(t.camera.title)))]),s("div",{staticClass:"right"})]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"ctr-bar"},[s("button",{staticClass:"ctr-btn",on:{click:t.handleClickClose}},[s("span",{staticStyle:{"font-size":"1.2"}},[t._v("×")])]),t.showTorchBtn?s("button",{staticClass:"ctr-btn",on:{click:function(e){t.torch=!t.torch}}},[s("i",{staticClass:"fa fa-flash"})]):t._e()]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded&&!t.result,expression:"loaded && !result"}],staticClass:"target-area"},[t.validating?s("div",[s("i",{staticClass:"fa fa-spinner fa-4x fa-pulse fa-fw"})]):t._e()]),s("qrcode-stream",{staticClass:"camera",attrs:{camera:t.qrCamera?"auto":"off",torch:t.torch},on:{decode:t.onDecode,init:t.onInit}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.paused,expression:"paused"}],staticClass:"screen"},[!t.validating&&t.result?s("div",{staticClass:"validation-result"},[s("p",{staticClass:"result"},[t._v(t._s(t.result.content))]),t.result.isUrl?s("div",{staticClass:"valid"},[t.result.isExternal?s("div",[s("v-ons-button",{on:{click:function(e){return t.goTo(t.result.href)}}},[t._v(" Open "),s("i",{staticClass:"fa fa-external-link"})])],1):t._e()]):s("div",{staticClass:"invalid"},[t._v(" This is not a URL... ")])]):t._e()])])],1)},wa=[],ya=(s("88a7"),s("271a"),s("5494"),s("bb6f")),Ca={name:"camera-page",components:{QrcodeStream:ya["QrcodeStream"]},data(){return{result:"",qrCamera:!0,loaded:!1,validating:!1,isValid:!1,showTorchBtn:!1,torch:!1}},computed:{...Object(c["c"])("page",["camera"]),paused(){return!this.qrCamera}},methods:{init(){this.result="",this.qrCamera=!0,this.isValid=!1},onDecode(t){this.$store.dispatch("log/info","decoded: "+t),this.qrCamera=!1,this.validating=!0,this.validate(t).then(t=>{this.validating=!1,this.result=t,this.isValid?this.goPage(t):window.setTimeout(()=>{this.init()},3e3)})},validate(t){return new Promise(e=>{window.setTimeout(()=>{try{const s=new URL(t);this.isValid=!0,e({content:t,isUrl:!0,isExternal:s.hostname!==window.location.hostname,href:s.href,path:s.pathname,params:s.searchParams,hash:s.hash})}catch(s){this.isValid=!1,e({content:t,isUrl:!1})}},1600)})},goPage(t){t.isExternal||("hash"===this.$router.mode?this.$router.push(t.hash.slice(1)):this.$router.push(t.path),this.$store.commit("ons/navigator/popPage"),this.$store.dispatch("page/updateStateFromRoute"))},goTo(t){const e=window.open(t,"_blank");e.opener=null,e.location=t},onInit(t){t.then(t=>{const{capabilities:e}=t;this.showTorchBtn=!!e.torch,this.loaded=!0}).catch(t=>{console.error(t),this.$ons.notification.alert(this.camera.error_message).then(()=>{this.handleClickClose()})})},handleClickClose(){this.$store.commit("ons/navigator/popPage")}},moundted(){this.qrCamera=!0},destroyed(){this.$store.dispatch("log/info","QR-stream destroyed"),this.qrCamera=!1}},xa=Ca,Sa=(s("82c2"),Object(ot["a"])(xa,ka,wa,!1,null,"4825263c",null)),ja=Sa.exports;const Pa={trancate(t,e=30){return e>=t.length?t:t.substr(0,e)+"..."},noDeco(t){return t?t.replace(/[**|__]/g,"").replace(/\[.*?\]\(.*?\)/g,t=>{const e=t.match(/\[(.*?)\]\((.*?)\)/);return e?e[1]:t}):""},cnvAudioText(t){if(!t)return"";const e=t.replace(/[**|__]/g,"");return e.replace(/\[.*?\]\(.*?\)/g,t=>{const e=t.match(/\[(.*?)\]\((.*?)\)/);if(e){const t=e[1],s=e[2].match(/^(.*)!$/);return s?s[1]:t}return t})},imgPath(t){const e="/img/"+t,s="/img/no-image.png";return t?e:s},audioPath(t){return t?"/audio/"+t:""}};var $a=Pa;const La={routerPush({dispatch:t},e){Wt.push(e).catch(e=>{t("log/warning",{msg:"roter.push error:",data:e},{root:!0})})},goTab({dispatch:t,commit:e},{id:s}){t("ons/navigator/goMain",null,{root:!0}),e("clearSpotStack"),t("ons/tabbar/changeTab",{id:s},{root:!0}),t("ons/splitter/delayClose",null,{root:!0})},goHome({dispatch:t}){t("goTab",{id:"home"})},goMap({dispatch:t}){t("goTab",{id:"map"})},goSpot({dispatch:t}){t("goTab",{id:"spot"})},goQuiz({dispatch:t}){t("goTab",{id:"quiz"})},goGallery({dispatch:t}){t("goTab",{id:"gallery"})},goSpotDetails({getters:t,commit:e,dispatch:s,rootState:i}){i.spot.spotId?(e("pushSpot",{spotId:i.spot.spotId}),"spot-details-page"===t.currentPage&&e("ons/navigator/popPage",null,{root:!0}),e("ons/navigator/pushPage",{page:sa},{root:!0}),s("changeSpotDetailsMeta"),s("routerPush",{path:"/spot/"+i.spot.spotId}),s("ons/splitter/delayClose",null,{root:!0})):s("goSpot")},goQuizDetails({getters:t,commit:e,dispatch:s,rootState:i}){i.spot.spotId?("quiz-details-page"!==t.currentPage&&e("ons/navigator/pushPage",{page:
1Ia},{root:!0}),s("changeQuizDetailsMeta"),s("routerPush",{path:"/quiz/"+i.spot.spotId}),s("ons/splitter/delayClose",null,{root:!0})):s("goQuiz")},goCamera({commit:t,dispatch:e}){t("ons/navigator/pushPage",{page:ja},{root:!0}),e("ons/splitter/delayClose",null,{root:!0})},goGroupDetails({getters:t,commit:e,dispatch:s,rootState:i}){i.group.groupId?("group-details-page"===t.currentPage&&e("ons/navigator/popPage",null,{root:!0}),"group-page"!==t.currentPage&&s("goSpot"),e("ons/navigator/pushPage",{page:ca},{root:!0}),s("changeGroupDetailsMeta"),s("routerPush",{path:"/group/"+i.group.groupId}),s("ons/splitter/delayClose",null,{root:!0})):s("goSpot")},goBackFromSpotDetails({state:t,commit:e,dispatch:s}){if(e("popSpot"),t.spotStack.length){const e=t.spotStack[t.spotStack.length-1];s("spot/updateSpot",{spotId:e,imgIndex:0},{root:!0}),s("updateRoute")}else e("ons/navigator/popPage",null,{root:!0})},navigatorPrePush(){},navigatorPrePop(){},navigatorPostPush(){},navigatorPostPop({dispatch:t}){t("updateMeta"),t("updateRoute"),t("audio/stop",null,{root:!0})},tabbarPreChange(){},tabbarPostChange({dispatch:t}){t("updateMeta"),t("updateRoute")},updateRoute({getters:t,dispatch:e,rootState:s}){const i=t.currentPage;if(i){const t={"home-page":()=>e("routerPush",{name:"home"}),"map-page":()=>e("routerPush",{path:"/map"}),"spot-page":()=>e("routerPush",{path:"/spot"}),"quiz-page":()=>e("routerPush",{path:"/quiz"}),"group-page":()=>e("routerPush",{path:"/group"}),"gallery-page":()=>e("routerPush",{path:"/gallery"}),"spot-details-page":()=>e("routerPush",{path:"/spot/"+s.spot.spotId}),"group-details-page":()=>e("routerPush",{path:"/group/"+s.group.groupId})};i in t&&t[i]()}},updateStateFromRoute({commit:t,dispatch:e}){e("log/info","** updateStateFromRouting",{root:!0});const{page:s,id:i}=Wt.currentRoute.params,{query:a}=Wt.currentRoute;e("log/info",`  -> route params - page: ${s}, id: ${i}`,{root:!0});const o={default:()=>e("goHome"),map:()=>e("goMap"),spot:s=>s?(t("spot/updateSpotId",s,{root:!0}),e("goSpotDetails")):e("goSpot"),quiz:s=>s?(t("spot/updateSpotId",s,{root:!0}),e("goQuizDetails")):e("goQuiz"),gallery:()=>e("goGallery"),group:s=>s?(t("group/updateGroupId",{groupId:s},{root:!0}),e("goGroupDetails")):e("goSpot")};"spot"in a&&(e("log/info","  -> route params - query: spot, id: "+a.spot,{root:!0}),t("spot/updateSpotId",a.spot,{root:!0})),"group"in a&&(e("log/info","  -> route params - query: group, id: "+a.group,{root:!0}),t("group/updateGroupId",{groupId:a.group},{root:!0})),s in o?o[s](i):o.default()},changeMeta({rootState:t,getters:e,dispatch:s},{title:i,description:a,image:o}){if(s("log/info","changeMeta - "+i,{root:!0}),i){const t=$a.noDeco(i),s=$a.noDeco(e.home.title);window.document.title=t,window.document.head.querySelector("meta[property='og:title']").setAttribute("content",`${t} | ${s}`)}if(a){const t=$a.trancate($a.noDeco(a),100);window.document.head.querySelector("meta[name=description]").setAttribute("content",t),window.document.head.querySelector("meta[property='og:description']").setAttribute("content",t)}if(o){const t=`${window.location.origin}/${$a.imgPath(o)}`;window.document.head.querySelector("meta[property='og:image']").setAttribute("content",t)}window.document.documentElement.lang=t.locale},changeHomeMeta({getters:t,dispatch:e}){const{label:s,description:i,images:a}=t.home;e("changeMeta",{description:i,title:s,image:a.length?a[0]:""})},changeMapMeta({getters:t,dispatch:e}){const{title:s}=t.mapPage,{description:i,images:a}=t.home;e("changeMeta",{title:s,description:i,image:a.length?a[0]:""})},changeSpotMeta({getters:t,dispatch:e}){const{title:s}=t.spotPage,{description:i,images:a}=t.home;e("changeMeta",{title:s,description:i,image:a.length?a[0]:""})},changeSpotDetailsMeta({rootGetters:t,dispatch:e}){const{name:s,description:i,images:a}=t["spot/spot"];e("changeMeta",{description:i,title:s,image:a.length?a[0]:""})},changeQuizMeta({getters:t,dispatch:e}){const{title:s}=t.quizPage,{description:i,images:a}=t.home;e("changeMeta",{title:s,description:i,image:a.length?a[0]:""})},changeQuizDetailsMeta({rootGetters:t,dispatch:e}){const{name:s,description:i,images:a}=t["spot/spot"];e("changeMeta",{description:i,title:s,image:a.length?a[0]:""})},changeGalleryMeta({getters:t,dispatch:e}){const{title:s}=t.gallery,{description:i,images:a}=t.home;e("changeMeta",{title:s,description:i,image:a.length?a[0]:""})},changeGroupMeta({getters:t,dispatch:e}){const{title:s}=t.spotPage,{description:i,images:a}=t.home;e("changeMeta",{title:s,description:i,image:a.length?a[0]:""})}
1,changeGroupDetailsMeta({getters:t,rootGetters:e,dispatch:s}){const{title:i}=t.spotPage,{description:a,images:o}=t.home,{name:n}=e["group/group"];s("changeMeta",{description:a,title:`${i} - ${n}`,image:o.length?o[0]:""})},updateMeta({getters:t,dispatch:e}){const s=t.currentPage;if(s){const t={"home-page":()=>e("changeHomeMeta"),"map-page":()=>e("changeMapMeta"),"spot-page":()=>e("changeSpotMeta"),"spot-details-page":()=>e("changeSpotDetailsMeta"),"quiz-page":()=>e("changeQuizMeta"),"quiz-details-page":()=>e("changeQuizDetailsMeta"),"gallery-page":()=>e("changeGalleryMeta"),"group-page":()=>e("changeGroupMeta"),"group-details-page":()=>e("changeGroupDetailsMeta")};t[s]()}}};var za=La;const Aa={default:{...Xs.default},menu:{...Xs.menu},home:{...Xs.home},mapPage:{...Xs.mapPage},spotPage:{...Xs.spotPage},quizPage:{...Xs.quizPage},gallery:{...Xs.gallery},camera:{...Xs.camera},i18nData:{...Xs.i18nData},spotStack:[]},Ma={currentPage(t,e,s,i){const a=i["ons/navigator/currentNav"],o=i["ons/tabbar/currentTab"];return a&&o?"main-page"===a.name?o.page.name:a.name:""},default(t){return{...t.default,...t.i18nData.default}},home(t){return{...t.home,...t.i18nData.home}},menu(t){return{...t.menu,...t.i18nData.menu}},mapPage(t){return{...t.mapPage,...t.i18nData.map}},spotPage(t){return{...t.spotPage,...t.i18nData.spot}},quizPage(t){return{...t.quizPage,...t.i18nData.quiz}},gallery(t){return{...t.gallery,...t.i18nData.gallery}},camera(t){return{...t.camera,...t.i18nData.camera}},title(t,e,s,i){const a=i["ons/tabbar/currentTab"],o=e[a.id+"Page"]||e[a.id];return o&&"title"in o?o.title:""},labels(t,e,s,i){const a=i["ons/tabbar/filteredTabs"]||[];return a.map(t=>{const s=e[t.id+"Page"]||e[t.id];return{id:t.id,icon:t.icon,label:s?s.label||s.title:""}})}},Ea={updateDefault(t,e){t.default={...Xs.default,...e}},updateMenu(t,e){t.menu={...Xs.menu,...e}},updateHome(t,e){t.home={...Xs.home,...e}},updateMapPage(t,e){t.mapPage={...Xs.mapPage,...e}},updateSpotPage(t,e){t.spotPage={...Xs.spotPage,...e}},updateQuizPage(t,e){t.quizPage={...Xs.quizPage,...e}},updateGallery(t,e){t.gallery={...Xs.gallery,...e}},updateCamera(t,e){t.camera={...Xs.camera,...e}},updateI18nData(t,e){t.i18nData={...Xs.i18nData,...e}},pushSpot(t,{spotId:e}){t.spotStack.push(e)},popSpot(t){t.spotStack.pop()},clearSpotStack(t){t.spotStack=[]}},Oa={namespaced:!0,state:Aa,getters:Ma,mutations:Ea,actions:za};var Da=Oa,qa=s("eed6"),Ta=s.n(qa),Ba=s("ceac"),Qa=s.n(Ba);const Ga={groups:[],groupId:Xs.groupId,i18nGroups:[]},Ra={updateGroupId(t,{groupId:e}){t.groupId=e},clearGroupId(t){t.groupId=""},updateGroups(t,e){Array.isArray(e)&&e.length&&(t.groups=u()(e.map(t=>({...Xs.group,...t})),"sort_order"))},updateI18nGroups(t,e){Array.isArray(e)&&e.length&&(t.i18nGroups=e)},clearI18nGroups(t){t.i18nGroups=[]}},Va={groups(t){return t.groups.map(e=>{const s=t.i18nGroups.find(t=>t.id===e.id);return{...e,...s}}).filter(t=>t.spots.length)},group(t,e){const s=e.groups.find(e=>e.id===t.groupId);return s||null},simpleGroups(t,e){return e.groups.filter(t=>!(t.id===M&&!O)&&!(t.id===E&&!D))},hasGroups(t){return t.groups&&t.groups.length}},Na={setGroups({commit:t,rootGetters:e},s){const i=s.find(t=>t.id===M);i&&(i.spots=e["spot/viewSpots"].map(t=>t.id));const a=s.find(t=>t.id===E);if(a){const t=e["spot/viewSpots"].map(t=>t.id),i=s.filter(t=>t.id!==M).map(t=>t.spots);a.spots=Qa()(t,Ta()(Us()(i)))}t("updateGroups",s)}},Fa={namespaced:!0,state:Ga,mutations:Ra,getters:Va,actions:Na};var Ha=Fa;class Ua{constructor(){this.isSupported=!1,this.utt=null,this.synthes=null,this.speaking=!1,this.paused=!1,this.init()}init(){"speechSynthesis"in window?(this.isSupported=!0,this.synthes=window.speechSynthesis,this.utt=new window.SpeechSynthesisUtterance,this.utt.voiceURI="native",this.utt.volume=1,this.utt.rate=.96,this.utt.pitch=1,this.utt.onend=this.onEnd.bind(this)):(console.log("speechSynthesis is not supported."),this.isSupported=!1)}onEnd(t){console.log(`Finished in ${t.elapsedTime/1e3} seconds.`),this.speaking=!1,this.paused=!1}isSpeaking(){return this.speaking}isPaused(){return this.paused}speak(t,e="ja"){this.isSupported&&(this.utt.lang=e,this.utt.text=t,this.synthes.speak(this.utt),this.speaking=!0)}pause(){this.isSupported&&(this.synthes.pause(),this.paused=!0)}resume(){this.isSupported&&(this.synthes.resume(),this.paused=!1)}stop(){this.isSupported&&(this.synthes.cancel(),this.speaking=!1)}}var Wa=Ua;const Za={speaker:new Wa},Ja={isSupported(t){return t.speaker.isSupported},speaking(t){return t.speaker.speaking},paused(t){return t.speaker.paused}},Ya={textToSpeech({state:t,rootState:e,dispatch:s},{text:i}){i&&!t.speaker.isSpeaking()&&(s("log/info","Audio textToSpeech - lang: "+e.lang,{root:!0}),t.speaker.speak(i,e.lang))},stop({state:t,dispatch:e}){e("log/info","Audio stop",{root:!0}),t.speaker.stop()},pause({state:t,dispatch:e}){e("log/info","Audio pause",{root:!0}),t.speaker.pause()},resume({state:t,dispatch:e}){e("log/info","Audio resume",{root:!0}),t.speaker.resume()}},Ka={namespaced:!0,state:Za,getters:Ja,actions:Ya};var Xa=Ka;const to="app",eo="sns",so="images",io="external links",ao="hanapedia links",oo="audio",no="signs",ro="a2hs",co="markers",lo="locales",po="view",uo="download",ho="info",mo="play",go="pause",fo="resume",vo="stop",_o="auto",bo="select",Io={sendEvent(t,{category:e,action:s,label:i}){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:to,[to]:{category:e,action:s,label:i}})},sendImgViewEvent({dispatch:t},{imgSrc:e,page:s}){t("sendEvent",{category:so,action:po,label:`${e} : ${s}`})},sendImgDlEvent({dispatch:t},{imgSrc:e,page:s}){t("sendEvent",{category:so,action:uo,label:`${e} : ${s}`})},sendImgMkEvent({dispatch:t},{imgSrc:e,spotId:s,page:i}){t("sendEvent",{category:co,action:s,label:`${i} : ${e}`})},sendImgInfoEvent({dispatch:t},{imgSrc:e,spotId:s,page:i}){t("sendEvent",{category:so,action:ho,label:`${e} -> ${s} : ${i}`})},sendAudioPlayEvent({dispatch:t},{locale:e,page:s}){t("sendEvent",{category:oo,action:mo,label:`${e} : ${s}`})},sendAudioPauseEvent({dispatch:t},{locale:e,page:s}){t("sendEvent",{category:oo,action:go,label:`${e} : ${s}`})},sendAudioResumeEvent({dispatch:t},{locale:e,page:s}){t("sendEvent",{category:oo,action:fo,label:`${e} : ${s}`})},sendAudioStopEvent({dispatch:t},{locale:e,page:s}){t("sendEvent",{category:oo,action:vo,label:`${e} : ${s}`})},sendClickExLinkEvent({dispatch:t},{url:e,text:s,page:i}){t("sendEvent",{category:io,action:e,label:`${s} : ${i}`})},sendClickMarkerEvent({dispatch:t},{spotId:e,page:s}){t("sendEvent",{category:co,action:e,label:s})},sendClickPediaLinkEvent({dispatch:t},{url:e,text:s,page:i}){t("sendEvent",{category:ao,action:e,label:`${s} : ${i}`})},sendAutoLocaleEvent({dispatch:t},{locale:e}){t("sendEvent",{category:lo,action:_o,label:e})},sendSelectLocaleEvent({dispatch:t},{locale:e}){t("sendEvent",{category:lo,action:bo,label:e})},sendSignEvent({dispatch:t},{sign:e,url:s}){t("sendEvent",{category:no,action:e,label:s})},addListenerA2hs({dispatch:t}){window.addEventListener("beforeinstallprompt",e=>{e.userChoice.then(e=>{const s="dismissed"===e.outcome?"dismissed":"added";t("sendEvent",{category:ro,action:s})})})},sendSocialEvent(t,{network:e,action:s,target:i}){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:eo,[eo]:{network:e,action:s,target:i}})}},ko={namespaced:!0,actions:Io};var wo=ko;const yo=[[3,4,5],[6,7,8],[9,10,11],[12,1,2]],Co={season:0,quizId:null,answeredQuizes:[],correctedQuizes:[],quizes:[],i18nQuizes:[]},xo={updateSeason(t,e){t.season=e}
1,updateQuizId(t,e){t.quizes.find(t=>t.id===e)&&(t.quizId=e)},clearQuizId(t){t.quizId=""},updateQuizes(t,e){Array.isArray(e)&&e.length&&(t.quizes=u()(e.map(t=>({...Xs.quiz,...t})),"sort_order"))},updateI18nQuizes(t,e){Array.isArray(e)&&e.length&&(t.i18nQuizes=e)},clearI18nQuizes(t){t.i18nQuizes=[]},addAnsweredQuiz(t,e){t.answeredQuizes.push(e)},clearAnsweredQuizes(t){t.answeredQuizes=[]},addCorrectedQuiz(t,e){t.correctedQuizes.push(e)},clearCorrectedQuizes(t){t.correctedQuizes=[]},updateScore(t,e){const{answeredQuizes:s,correctedQuizes:i}=e;s&&(t.answeredQuizes=s),i&&(t.correctedQuizes=i)}},So={quizes(t){return t.quizes.map(e=>{const s=t.i18nQuizes.find(t=>t.id===e.id);return{...e,...s}})},seasonQuizes(t,e,s,i){const a=i["spot/quizSpots"];return a.map(s=>{const i=e.quizes.find(e=>e.id===s.quizes[t.season]);return i&&(i.spotId=s.id),i}).filter(t=>!!t)},quiz(t,e){if(t.quizId){const s=e.quizes.find(e=>e.id===t.quizId);if(s)return s}return null},answered(t){return t.answeredQuizes.includes(t.quizId)},hasPassed(t){return t.correctedQuizes.includes(t.quizId)}},jo={checkSeason({commit:t,dispatch:e}){const s=(new Date).getMonth()+1;let i;yo.some((t,e)=>!!t.includes(s)&&(i=e,!0)),e("log/info","quiz/checkSeason: "+i,{root:!0}),t("updateSeason",i)},resetScore({commit:t,dispatch:e,rootState:s}){t("clearAnsweredQuizes"),t("clearCorrectedQuizes"),s.localStorage.removeScore(),e("log/info","quiz/resetScore",{root:!0})},saveScore({state:t,rootState:e,dispatch:s}){const i={season:t.season,answeredQuizes:t.answeredQuizes,correctedQuizes:t.correctedQuizes};e.localStorage.setScore(i),s("log/info","quiz/saveScore: save - season: "+i.season,{root:!0})},loadScore({state:t,rootState:e,commit:s,dispatch:i}){const a=e.localStorage.getScore();a?a.season===t.season?(i("log/info","quiz/loadScore: load - season: "+a.season,{root:!0}),s("updateScore",a)):(i("log/info","quiz/loadScore: reset - season: "+a.season,{root:!0}),i("resetScore")):i("log/info","quiz/loadScore: no result",{root:!0})}},Po={namespaced:!0,state:Co,mutations:xo,getters:So,actions:jo};var $o=Po;const Lo={spotId:"",imgIndex:0,spots:[],i18nSpots:[],viewSpotTypes:[].concat(Xs.viewSpotTypes)},zo={updateSpotId(t,e){t.spots.find(t=>t.id===e)&&(t.spotId=e)},clearSpotId(t){t.spotId=""},updateImgIndex(t,e){t.imgIndex=Number(e)},updateSpots(t,e){Array.isArray(e)&&e.length&&(t.spots=u()(e.map(t=>({...Xs.spot,...t})),"sort_order"))},updateI18nSpots(t,e){Array.isArray(e)&&e.length&&(t.i18nSpots=e)},clearI18nSpots(t){t.i18nSpots=[]}},Ao={spots(t){return t.spots.map(e=>{const s=t.i18nSpots.find(t=>t.id===e.id);return{...e,...s}})},viewSpots(t,e){return e.spots.filter(e=>t.viewSpotTypes.includes(e.type))},quizSpots(t,e){return e.spots.filter(t=>"quiz"===t.type)},groupedViewSpots(t,e,s,i){if(!i["group/hasGroups"])return e.viewSpots;const a=i["group/group"];return a?e.viewSpots.filter(t=>a.spots.includes(t.id)):[]},spot(t,e){if(t.spotId){const s=e.spots.find(e=>e.id===t.spotId);if(s)return s}return null},featuresGeoJson(t){return{type:"FeatureCollection",features:t.spots.map(t=>({id:t.id,type:"Feature",geometry:{type:"Point",coordinates:[t.lng,t.lat]},properties:{type:t.type}}))}}},Mo={clearSpot({commit:t}){t("clearSpotId"),t("updateImgIndex",0)},updateSpot({state:t,commit:e,dispatch:s},{spotId:i,imgIndex:a}){i&&i!==t.spotId&&(s("clearSpot"),e("updateSpotId",i)),e("updateImgIndex",a)}},Eo={namespaced:!0,state:Lo,mutations:zo,getters:Ao,actions:Mo};var Oo=Eo;const Do={index:0,items:[],options:{},show:!1},qo={updateIndex(t,{index:e}){t.index=Number(e)},updateItems(t,{items:e}){t.items=e},updateOptions(t,{options:e}){t.options=e},updateShow(t,e){t.show=e}},To={items(t){return t.items.map(t=>{const e=Xs.images.find(e=>e.filename===t.src),s=$a.noDeco(t.title),i=$a.imgPath(t.src);return{...t,...e,title:s,src:i}})},activeItem(t,e){return e.items[t.index]},title(t,e){return"title"in e.activeItem?e.activeItem.title:""},counter(t){return t.items.length?`${t.index+1} / ${t.items.length}`:""},downloadable(){return I},src(t,e){return e.activeItem&&"src"in e.activeItem?e.activeItem.src:""},spotId(t,e){return e.activeItem&&"spotId"in e.activeItem?e.activeItem.spotId:""},imgIndex(t,e){return e.activeItem&&"imgIndex"in e.activeItem?e.activeItem.imgIndex:0},hasLocation(t,e){return!(!e.activeItem||!("hasLocation"in e.activeItem))&&!!e.activeItem.hasLocation}},Bo={open({commit:t},{items:e,index:s,options:i}){e&&e.length&&(t("updateItems",{items:e}),t("updateIndex",{index:s}),t("updateOptions",{options:i}),t("updateShow",!0))},close({commit:t}){t("updateIndex",{index:0}),t("updateItems",{items:[]}),t("updateOptions",{options:{}}),t("updateShow",!1)}},Qo={namespaced:!0,state:Do,mutations:qo,getters:To,actions:Bo};
1var Go=Qo;const Ro={plants:[],i18nPlants:[]},Vo={updatePlants(t,e){Array.isArray(e)&&e.length&&(t.plants=u()(e.map(t=>({...Xs.plant,...t})),"sort_order"))},updateI18nPlants(t,e){Array.isArray(e)&&e.length&&(t.i18nPlants=e)},clearI18nPlants(t){t.i18nPlants=[]}},No={plants(t){return t.plants.map(e=>{const s=t.i18nPlants.find(t=>t.id===e.id);return{...e,...s}})}},Fo={namespaced:!0,state:Ro,mutations:Vo,getters:No};var Ho=Fo;const Uo={links:[].concat(Xs.links),movies:[].concat(Xs.movies),i18nLinks:[],i18nMovies:[]},Wo={updateLinks(t,e){Array.isArray(e)&&e.length&&(t.links=e.map(t=>({...Xs.link,...t})))},updateI18nLinks(t,e){Array.isArray(e)&&e.length&&(t.i18nLinks=e)},clearI18nLinks(t){t.i18nLinks=[]},updateMovies(t,e){Array.isArray(e)&&e.length&&(t.movies=e.map(t=>({...Xs.movie,...t})))},updateI18nMovies(t,e){Array.isArray(e)&&e.length&&(t.i18nMovies=e)},clearI18nMovies(t){t.i18nMovies=[]}},Zo={links(t){return u()(t.links.map(e=>{const s=t.i18nLinks.find(t=>t.id===e.id);return{...e,...s}}),"sort_order")},movies(t){return u()(t.movies.map(e=>{const s=t.i18nMovies.find(t=>t.id===e.id);return{...e,...s}}),"sort_order")}},Jo={namespaced:!0,state:Uo,mutations:Wo,getters:Zo};var Yo=Jo;a["a"].use(c["a"]);const Ko={db:new Kt(et),localStorage:new ae,version:"",domLoaded:!1,dataLoaded:!1,mapLoaded:!1,isLoading:!1,locale:Xs.defaultLocale||"en",lang:Xs.defaultLang||"en-US",supp
1ortLanguage:Xs.supportLanguage.concat()},Xo={updateVersion(t,e){t.version=e},domLoaded(t){t.domLoaded=!0},dataLoaded(t){t.dataLoaded=!0},mapLoaded(t){t.mapLoaded=!0},startLoading(t){t.isLoading=!0},endLoading(t){t.isLoading=!1},updateLocale(t,{locale:e}){t.locale=e},updateLang(t,{lang:e}){t.lang=e},updateSupportLanguage(t,e){Array.isArray(e)&&e.length&&(t.supportLanguage=e)}},tn={appIsReady(t){return t.domLoaded&&t.dataLoaded&&t.mapLoaded}};var en=new c["a"].Store({state:Ko,mutations:Xo,getters:tn,actions:ei,modules:{ons:li,log:gi,map:Li,page:Da,group:Ha,audio:Xa,gtm:wo,quiz:$o,spot:Oo,gallery:Go,pedia:Ho,ext:Yo}}),sn=s("e5a1"),an=s("7585"),on=s("70eb"),nn=s("81ce"),rn=s("1743"),cn=s("fef2"),ln=s("959e"),dn=s("a2f4"),pn=s("75c6"),un=s("025c"),hn=s("b0b2"),mn=s("aa11"),gn=s("41dc"),fn=s("e268"),vn=s("c72f"),_n=s("e617"),bn=s("1c71"),In=s("b4ea"),kn=s("3751"),wn=s("a083"),yn=s("8d33"),Cn=s("0f32"),xn=s("d734"),Sn=s("0739"),jn=s("b293"),Pn=s("fb3f"),$n=s("2132"),Ln=s("083f"),zn=s("c121"),An=s("1415"),Mn=s("42b1");
2/*!
3 * Copyright (c) 2019 Aboc Co.,Ltd. All rights reserved.
4 *
5 * This source code or any portion thereof must not be
6 * reproduced or used in any manner whatsoever.
7 */
8a["a"].config.productionTip=!1,Object.keys($a).forEach(t=>a["a"].filter(t,$a[t])),o["a"].platform.select("android"),o["a"].platform.isIPhoneX()&&(document.documentElement.setAttribute("onsflag-iphonex-portrait",""),document.documentElement.setAttribute("onsflag-iphonex-landscape","")),a["a"].use(o["a"]),Object.values(i).forEach(t=>a["a"].component(t.name,t)),new a["a"]({router:Wt,store:en,render:t=>t(Gt)}).$mount("#app")},6:function(t,e){},"669e":function(t,e,s){},7:function(t,e){},"777d":function(t,e,s){},"7cf6":function(t,e,s){},"7ef4":function(t,e,s){},8:function(t,e){},"803d":function(t,e,s){},8203:function(t,e,s){},"82c2":function(t,e,s){"use strict";s("f45e")},8729:function(t,e,s){},"8bd9":function(t,e,s){},"8e98":function(t,e,s){},"8fc5":function(t,e,s){"use strict";s("232f")},9:function(t,e){},9224:function(t){t.exports=JSON.parse('{"name":"signsense-pwa-basic","version":"1.2.8","private":true,"scripts":{"serve":"vue-cli-service serve","build":"vue-cli-service build","build:stage":"NODE_ENV=production vue-cli-service build --mode staging","test:unit":"vue-cli-service test:unit","test:e2e":"vue-cli-service test:e2e","lint":"vue-cli-service lint"},"dependencies":{"core-js":"^3.6.5","firebase":"^7.15.4","font-awesome":"^4.7.0","gsap":"^3.3.4","leaflet":"^1.6.0","leaflet-rotatedmarker":"^0.2.0","lodash":"^4.17.20","moment":"^2.27.0","onsenui":"^2.10.10","photoswipe":"^4.1.3","register-service-worker":"^1.7.1","vue":"~2.6.14","vue-onsenui":"~2.6.2","vue-qrcode-reader":"^3.1.0","vue-router":"^3.2.0","vuex":"^3.4.0"},"devDependencies":{"@vue/cli-plugin-babel":"~4.4.0","@vue/cli-plugin-e2e-cypress":"~4.4.0","@vue/cli-plugin-eslint":"~4.4.0","@vue/cli-plugin-pwa":"~4.4.0","@vue/cli-plugin-router":"~4.4.0","@vue/cli-plugin-unit-mocha":"~4.4.0","@vue/cli-plugin-vuex":"~4.4.0","@vue/cli-service":"~4.4.0","@vue/eslint-config-airbnb":"^5.0.2","@vue/test-utils":"^1.0.3","babel-eslint":"^10.1.0","chai":"^4.1.2","eslint":"^6.7.2","eslint-plugin-import":"^2.20.2","eslint-plugin-vue":"^6.2.2","sass":"^1.26.5","sass-loader":"^8.0.2","vue-template-compiler":"~2.6.14"}}')},9806:function(t,e,s){"use strict";s("803d")},ae56:function(t,e,s){},b388:function(t,e,s){"use strict";s("2b88")},c90a:function(t,e,s){"use strict";s("412a")},d18f:function(t,e,s){"use strict";s("29ac")},d242:function(t,e,s){},d62f:function(t,e,s){},d938:function(t,e,s){},da81:function(t,e,s){"use strict";s("8e98")},e63c:function(t,e,s){},ec30:function(t,e,s){"use strict";s("8203")},f163:function(t,e,s){"use strict";s("669e")},f45e:function(t,e,s){},f546:function(t,e,s){"use strict";s("fcaa")},f633:function(t,e,s){},fc05:function(t,e,s){"use strict";s("8729")},fcaa:function(t,e,s){},fe3f:function(t,e,s){"use strict";s("f633")},fe78:function(t,e,s){"use strict";s("135d")}});
9//# sourceMappingURL=app.d3f6f737.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.