pages/dream/js/app.d9e1be55.js

2 lines
54 KiB
JavaScript
Raw Normal View History

(function(t){function e(e){for(var n,o,s=e[0],u=e[1],l=e[2],h=0,g=[];h<s.length;h++)o=s[h],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&g.push(i[o][0]),i[o]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(t[n]=u[n]);c&&c(e);while(g.length)g.shift()();return a.push.apply(a,l||[]),r()}function r(){for(var t,e=0;e<a.length;e++){for(var r=a[e],n=!0,s=1;s<r.length;s++){var u=r[s];0!==i[u]&&(n=!1)}n&&(a.splice(e--,1),t=o(o.s=r[0]))}return t}var n={},i={app:0},a=[];function o(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=t,o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],u=s.push.bind(s);s.push=e,s=s.slice();for(var l=0;l<s.length;l++)e(s[l]);var c=u;a.push([0,"chunk-vendors"]),r()})({0:function(t,e,r){t.exports=r("56d7")},"034f":function(t,e,r){"use strict";r("85ec")},2006:function(t,e,r){},"22a8":function(t,e,r){},"3d37":function(t,e,r){},5676:function(t,e,r){"use strict";r("a55b")},"56d7":function(t,e,r){"use strict";r.r(e);var n=r("53ca"),i=(r("e260"),r("e6cf"),r("cca6"),r("a79d"),r("d81d"),r("cb29"),r("a9e3"),r("159b"),r("4c53"),r("2b0e")),a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{style:{"--height":t.$store.windowHeight+"px"}},[t.$store.cycle>=5&&!t.$store.keepPlaying?r("transition",{attrs:{name:"victory"}},[r("div",{staticClass:"victory"},[r("h1",[t._v("You Win!")]),r("h2",[t._v("Congratulations, you beat the game in:"),r("br"),t._v(t._s(t.formatTime(t.$store.timePlayed)))]),r("h3",[t._v("You can keep going if you'd like, but things might get weird")]),r("button",{on:{click:t.keepGoing}},[t._v("Keep Going")])])]):t.$store.started?r("div",{attrs:{id:"app"}},[r("Header"),r("Town"),r("Dream",{ref:"dream"})],1):r("transition",{attrs:{name:"welcome"}},[r("div",{staticClass:"welcome",on:{click:t.start}},[r("img",{attrs:{src:"assets/logo.png",alt:"Dream Hero"}})])])],1)},o=[],s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"header"},[r("h2",[t._v("Dream Hero")]),r("h2",[t._v(t._s(t.formatWhole(t.$store.points)))]),t.$store.dreaming?r("h2",{staticStyle:{color:"var(--hi-color)"}},[t._v("+"+t._s(t.formatWhole(t.$store.tempPoints)))]):t._e(),t.$store.dreaming?r("h2",{staticStyle:{color:"var(--hi-color)"}},[t._v("Cycle "+t._s(t.$store.cycle+1))]):t._e(),t._m(0)])},u=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{attrs:{href:"https://discord.gg/WzejVAx",target:"_blank"}},[r("img",{attrs:{src:"assets/discord.png"}})])}],l={name:"Header"},c=l,h=(r("c667"),r("2877")),g=Object(h["a"])(c,s,u,!1,null,"373683a0",null),p=g.exports,m=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{name:"town"}},[this.$store.dreaming?t._e():r("div",{staticClass:"town-container"},[r("panZoom",{on:{init:t.onInit}},[r("div",{staticClass:"town"},[r("h1",{staticClass:"background"},[t._v("World Map")]),r("div",{class:{building:!0,highlight:t.$store.tutorialOne},staticStyle:{top:"500px",left:"700px"},on:{pointerdown:function(e){return t.$actions.openBuilding("Cot")}}},[t._v(" Cot ")]),t.$store.tutorialOne?t._e():r("div",{staticClass:"building",staticStyle:{top:"200px",left:"600px"},on:{pointerdown:function(e){return t.$actions.openBuilding("Bank")}}},[t._v(" Bank ")]),t.$store.tutorialOne?t._e():r("div",{
//# sourceMappingURL=app.d9e1be55.js.map